diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 14:18:56 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 14:18:56 -0400 |
commit | f90d98c3c451aa5be2979ff05863b5aa8bee9336 (patch) | |
tree | f565281789262225d28dc177ce97640b19dce646 /keywords.py | |
parent | f5bb2118eadc20402e69d575c9be8a02cf673caa (diff) |
cfg syntax highlighting
Diffstat (limited to 'keywords.py')
-rwxr-xr-x | keywords.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keywords.py b/keywords.py index c8f7e9c..2413dd9 100755 --- a/keywords.py +++ b/keywords.py @@ -243,6 +243,9 @@ attributes_html = [ 'srclang','srcset','start','step','style','tabindex','target', 'title','translate','type','usemap','value','width','wrap' ] +constants_config = [ + 'on', 'off', 'yes', 'no', 'true', 'false' +] assert len(attributes_html) == len(set(attributes_html)) @@ -274,4 +277,5 @@ output_keywords(file, cpp_things, 'cpp') output_keywords(file, label(keywords_rust, SYNTAX_KEYWORD) + label(builtins_rust, SYNTAX_BUILTIN) + label(constants_rust, SYNTAX_CONSTANT), 'rust') output_keywords(file, label(keywords_python, SYNTAX_KEYWORD) + label(builtins_python, SYNTAX_BUILTIN), 'python') output_keywords(file, label(builtins_html, SYNTAX_BUILTIN), 'html') +output_keywords(file, label(constants_config, SYNTAX_CONSTANT), 'config') file.close() |