Commit fd3a258c authored by André Simon's avatar André Simon

added vim category; fixed yaml.lang

parent 86cf225a
Pipeline #46616592 passed with stage
in 2 minutes and 45 seconds
......@@ -2,7 +2,9 @@ Description="Ansible YAML"
Categories = {"markup"}
Identifiers=[[ [a-zA-Z_][a-zA-Z_\:]* ]]
Identifiers=[[ ([\w][\S]+?\:) ]]
Digits = [[ [\W](\d*[\.]?\d+(?:[eE][\-\+]\d+)?)(?![\w]) ]]
Keywords={
{
......@@ -86,7 +88,8 @@ Comments={
},
}
Operators=[[\(|\)|\[|\]|<|>|\=|\,|\&|\!|\*|\%|\+|\%|\||or|and|not|true|false|yes|no]]
-- |or|and|not|true|false|yes|no -> keyword group
Operators=[[\(|\)|\[|\]|<|>|\=|\-|\,|\&|\!|\*|\%|\+|\%|\||{|}]]
IgnoreCase=true
......@@ -98,5 +101,6 @@ function OnStateChange(oldState, newState, token, kwgroup)
and not Keywords[1].List[token] and not Keywords[2].List[token] then
return HL_KEYWORD
end
return newState
end
......@@ -106,7 +106,16 @@ void printHelp(const std::string &topic)
cout <<"\n";
cout <<"See README_PLUGINS.adoc for a detailed description and examples of packaged plugins.\n";
} else {
} else if (topic=="test") {
cout <<"SYNTAX TEST HELP:\n\n";
cout <<"The syntax parsing can be validated with test state indicators embedded in comments.\n";
cout <<"These are recognized in files saved as syntax_test_*.\n\n";
cout <<"A test case is defined by two entities: column and expected state.\n";
cout <<"The column is defined by ^ (here) or < (comment start / first column).\n";
cout <<"This indicator points at the tested syntax element of the previous line.\n";
cout <<"The state identifiers match the corresponding HTML output CSS class names.\n\n";
cout <<"See README_TESTCASES.adoc for a detailed description and examples.\n";
}else {
cout<<"USAGE: highlight [OPTIONS]... [FILES]...\n";
cout<<"\n";
cout<<"General options:\n";
......@@ -117,7 +126,7 @@ void printHelp(const std::string &topic)
cout<<" --config-file=<file> set path to a lang or theme file\n";
cout<<" -d, --outdir=<directory> name of output directory\n";
cout<<" -h, --help[=topic] print this help or a topic description\n";
cout<<" <topic> = [syntax, theme, plugin, config]\n";
cout<<" <topic> = [syntax, theme, plugin, config, test]\n";
cout<<" -i, --input=<file> name of single input file\n";
cout<<" -o, --output=<file> name of single output file\n";
cout<<" -P, --progress print progress bar in batch mode\n";
......
......@@ -2,7 +2,7 @@
codegenerator.cpp - description
-------------------
begin : Die Jul 9 2002
copyright : (C) 2002-2018 by Andre Simon
copyright : (C) 2002-2019 by Andre Simon
email : a.simon@mailbox.org
***************************************************************************/
......
Description = "vim aiseered"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#f08080" }
Canvas = { Colour="#400000" }
......
Description = "vim anotherdark"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#99adaf" }
Canvas = { Colour="#323232" }
......
Description = "vim autumn"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#404040" }
Canvas = { Colour="#fff4e8" }
......
Description = "vim baycomb"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#a0b4e0" }
Canvas = { Colour="#11121a" }
......
Description = "vim bclear"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#323232" }
Canvas = { Colour="#ffffff" }
......
Description = "vim biogoo"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#000000" }
Canvas = { Colour="#d6d6d6" }
......
Description = "vim blue and green"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#ffffff" }
Canvas = { Colour="#061A3E" }
......
Description = "vim breeze"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#ffffff" }
Canvas = { Colour="#005c70" }
......
Description = "vim camo"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#ffe4c4" }
Canvas = { Colour="#232323" }
......
Description = "vim candy"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#f0f0f8" }
Canvas = { Colour="#000000" }
......
Description = "vim clarity"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#b2dfee" }
Canvas = { Colour="#1F3055" }
......
Description = "vim dante"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#cdaf96" }
Canvas = { Colour="#000000" }
......
Description = "vim dark bone"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#a0a0c0" }
Canvas = { Colour="#000000" }
......
Description = "vim darkslategray"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#f5deb3" }
Canvas = { Colour="#2f4f4f" }
......
Description = "vim darkspectrum"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#efefef" }
Canvas = { Colour="#2A2A2A" }
......
Description = "vim denim"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#FFFFFF" }
Canvas = { Colour="#000038" }
......
Description = "vim dusk"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#fffff0" }
Canvas = { Colour="#1f3048" }
......
......@@ -2,7 +2,7 @@
Description = "vim earendel"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#000000" }
Canvas = { Colour="#ffffff" }
......
Description="Vim Dark Editor"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#0f930f" }
Canvas = { Colour="#000000" }
......
......@@ -2,7 +2,7 @@
Description="Vim Editor"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#000000" }
Canvas = { Colour="#ffffff" }
......
Description = "vim ekvoli"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#dedede" }
Canvas = { Colour="#001535" }
......
......@@ -2,7 +2,7 @@
Description = "vim fine_blue"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#404048" }
Canvas = { Colour="#f8f8f8" }
......
......@@ -2,7 +2,7 @@
Description = "vim freya"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#dcdccc" }
Canvas = { Colour="#2a2a2a" }
......
......@@ -2,7 +2,7 @@
Description = "vim fruit"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#404040" }
Canvas = { Colour="#f8f8f8" }
......
......@@ -2,7 +2,7 @@
Description = "vim kellys"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#e1e0e5" }
Canvas = { Colour="#2a2b2f" }
......
......@@ -2,7 +2,7 @@
Description = "vim leo256"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#ffffff" }
Canvas = { Colour="#000000" }
......
......@@ -2,7 +2,7 @@
Description = "vim manxome"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#cccccc" }
Canvas = { Colour="#000000" }
......
......@@ -2,7 +2,7 @@
Description = "vim maroloccio"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#8b9aaa" }
Canvas = { Colour="#1a202a" }
......
......@@ -2,7 +2,7 @@
Description = "vim Matrix"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#44cc44" }
Canvas = { Colour="#000000" }
......
......@@ -2,7 +2,7 @@
Description = "vim molokai"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#F8F8F2" }
Canvas = { Colour="#272822" }
......
......@@ -2,7 +2,7 @@
Description = "vim moria"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#d0d0d0" }
Canvas = { Colour="#202020" }
......
......@@ -2,7 +2,7 @@
Description = "vim navajo-night"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#fbfbfb" }
Canvas = { Colour="#243a4d" }
......
......@@ -2,7 +2,7 @@
Description = "vim neon"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#f0f0f0" }
Canvas = { Colour="#303030" }
......
......@@ -2,7 +2,7 @@
Description = "vim night"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#f0f0f8" }
Canvas = { Colour="#303040" }
......
......@@ -2,7 +2,7 @@
Description = "vim nightshimmer"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#e0eee0" }
Canvas = { Colour="#103040" }
......
......@@ -2,7 +2,7 @@
Description = "vim nuvola"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#000000" }
Canvas = { Colour="#F9F5F9" }
......
......@@ -2,7 +2,7 @@
Description = "vim olive"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#D9D9C3" }
Canvas = { Colour="#333300" }
......
......@@ -2,7 +2,7 @@
Description = "vim peaksea"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#000000" }
Canvas = { Colour="#e0e0e0" }
......
......@@ -2,7 +2,7 @@
Description = "vim rdark"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#babdb6" }
Canvas = { Colour="#1e2426" }
......
......@@ -2,7 +2,7 @@
Description = "vim relaxedgreen"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#aaaaaa" }
Canvas = { Colour="#000000" }
......
-- Theme generated by vim2theme
Description = "vim vim unknown"
Description = "vim rootwater"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#babdb6" }
Canvas = { Colour="#151b1d" }
......
......@@ -2,7 +2,7 @@
Description = "vim tabula"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#71D289" }
Canvas = { Colour="#004A41" }
......
......@@ -2,7 +2,7 @@
Description = "vim TCSoft"
Categories = {"light"}
Categories = {"light", "vim"}
Default = { Colour="#000000" }
Canvas = { Colour="#FFFFFF" }
......
......@@ -2,7 +2,7 @@
Description = "vim xoria256"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#d0d0d0" }
Canvas = { Colour="#1c1c1c" }
......
......@@ -2,7 +2,7 @@
Description = "vim zenburn"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#dcdccc" }
Canvas = { Colour="#1f1f1f" }
......
......@@ -2,7 +2,7 @@
Description = "vim zmrok"
Categories = {"dark"}
Categories = {"dark", "vim"}
Default = { Colour="#F8F8F8" }
Canvas = { Colour="#141414" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment