From fcaf13a267b7bacd26ad8b2e952a793645e42bba Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 15 Feb 2021 14:22:32 +0530 Subject: init --- after/syntax/python.vim | 6 ++++++ after/syntax/scheme.vim | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 after/syntax/python.vim create mode 100644 after/syntax/scheme.vim (limited to 'after/syntax') 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 @@ +syntax keyword pyNiceLambda lambda conceal cchar=λ +highlight link pyNiceLambda secondAccent + +highlight! link Conceal Noise + +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 @@ +syntax keyword scmNiceLambda lambda conceal cchar=λ + +syntax clear schemeFunction + +syntax match scmNiceOperator "<=" conceal cchar=≤ +syntax match scmNiceOperator ">=" conceal cchar=≥ + +syn region scmNiceQuote matchgroup=secondAccent start=/'[`']*/ end=/[ \t\n()\[\]";]/me=e-1 +syn region scmNiceQuote matchgroup=secondAccent start=/'['`]*"/ skip=/\\[\\"]/ end=/"/ +syn region scmNiceQuote matchgroup=secondAccent start=/'['`]*|/ skip=/\\[\\|]/ end=/|/ +syn region scmNiceQuote matchgroup=secondAccent start=/'['`]*#\?(/ end=/)/ contains=ALLBUT,schemeQuasiquote,schemeQuasiquoteForm,schemeUnquote,schemeForm,schemeDatumCommentForm,schemeImport,@schemeImportCluster,@schemeSyntaxCluster + +highlight link scmNiceLambda schemeSyntax +highlight link scmNiceOperator Noise +highlight link scmNiceQuote secondAccent + +highlight! link Conceal Noise + +setlocal conceallevel=1 -- cgit v1.2.3