diff options
author | Akshay <[email protected]> | 2024-07-23 20:26:43 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2024-07-23 20:26:43 +0100 |
commit | ddc6f72c5b1cf6916ef2705b226d0c53950b9386 (patch) | |
tree | 56b1d651dfe18a5e45b8cc6477ff8cb49991d98c /after/syntax |
init
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/python.vim | 6 | ||||
-rw-r--r-- | after/syntax/scheme.vim | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/after/syntax/python.vim b/after/syntax/python.vim new file mode 100644 index 0000000..278cdc2 --- /dev/null +++ b/after/syntax/python.vim | |||
@@ -0,0 +1,6 @@ | |||
1 | syntax keyword pyNiceLambda lambda conceal cchar=λ | ||
2 | highlight link pyNiceLambda secondAccent | ||
3 | |||
4 | highlight! link Conceal Noise | ||
5 | |||
6 | setlocal conceallevel=1 | ||
diff --git a/after/syntax/scheme.vim b/after/syntax/scheme.vim new file mode 100644 index 0000000..9a2972b --- /dev/null +++ b/after/syntax/scheme.vim | |||
@@ -0,0 +1,19 @@ | |||
1 | syntax keyword scmNiceLambda lambda conceal cchar=λ | ||
2 | |||
3 | syntax clear schemeFunction | ||
4 | |||
5 | syntax match scmNiceOperator "<=" conceal cchar=≤ | ||
6 | syntax match scmNiceOperator ">=" conceal cchar=≥ | ||
7 | |||
8 | syn region scmNiceQuote matchgroup=secondAccent start=/'[`']*/ end=/[ \t\n()\[\]";]/me=e-1 | ||
9 | syn region scmNiceQuote matchgroup=secondAccent start=/'['`]*"/ skip=/\\[\\"]/ end=/"/ | ||
10 | syn region scmNiceQuote matchgroup=secondAccent start=/'['`]*|/ skip=/\\[\\|]/ end=/|/ | ||
11 | syn region scmNiceQuote matchgroup=secondAccent start=/'['`]*#\?(/ end=/)/ contains=ALLBUT,schemeQuasiquote,schemeQuasiquoteForm,schemeUnquote,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster | ||
12 | |||
13 | highlight link scmNiceLambda schemeSyntax | ||
14 | highlight link scmNiceOperator Noise | ||
15 | highlight link scmNiceQuote secondAccent | ||
16 | |||
17 | highlight! link Conceal Noise | ||
18 | |||
19 | setlocal conceallevel=1 | ||