From 626026057f3ccaed548bef394bf6fe76ae69d5d6 Mon Sep 17 00:00:00 2001 From: "alexbodn@gmail.com" Date: Mon, 18 May 2020 18:26:24 +0300 Subject: [PATCH] added little support for asciidoc. it does almost all i intended (althought i don't know much). --- misc/syntax/asciidoc.syntax | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 misc/syntax/asciidoc.syntax diff --git a/misc/syntax/asciidoc.syntax b/misc/syntax/asciidoc.syntax new file mode 100644 index 000000000..f6c385833 --- /dev/null +++ b/misc/syntax/asciidoc.syntax @@ -0,0 +1,55 @@ +# asciidoc syntax highlighting + +context default lightgray + keyword whole linestart '*' white black + spellcheck + +context linestart _Note_: \n\n green + spellcheck + +context linestart ==== \n cyan + spellcheck + +context linestart === \n yellow + spellcheck + +context linestart == \n green + spellcheck + +context linestart = \n red + spellcheck + +context linestart \s \n\n black white + spellcheck + +context //// //// brown + spellcheck + +context [[ ]] red + spellcheck + +context [ ] green + spellcheck + +#context \s__ __ lightgray + +context \s_ _ brown + +context \s\*_ _\* green + +#context **__ __** lightgray + +# the following context results in a yellow space + a yellow * but not further +# to the next *. see line 362 in README.adoc +# the space is needed, to avoid highlighting all the file beginning to the * +# on line 399. +context \s\* \* yellow + +#context ** ** lightgray + +#context ``**__ __**`` lightgray + +context `\*_ _\*` red + +context ` ` cyan +