Fix C highlighting inconsistencies.

pull/11/head
Blaž Hrastnik 4 years ago
parent 7e9ea30a0b
commit 77db3599ba

@ -1,3 +1,5 @@
"goto" @keyword
"register" @keyword
"break" @keyword "break" @keyword
"case" @keyword "case" @keyword
"const" @keyword "const" @keyword
@ -20,15 +22,17 @@
"volatile" @keyword "volatile" @keyword
"while" @keyword "while" @keyword
"#define" @keyword [
"#elif" @keyword "#define"
"#else" @keyword "#elif"
"#endif" @keyword "#else"
"#if" @keyword "#endif"
"#ifdef" @keyword "#if"
"#ifndef" @keyword "#ifdef"
"#include" @keyword "#ifndef"
(preproc_directive) @keyword "#include"
(preproc_directive)
] @keyword.directive
"--" @operator "--" @operator
"-" @operator "-" @operator
@ -47,8 +51,8 @@
">" @operator ">" @operator
"||" @operator "||" @operator
"." @delimiter "." @punctuation.delimiter
";" @delimiter ";" @punctuation.delimiter
(string_literal) @string (string_literal) @string
(system_lib_string) @string (system_lib_string) @string

@ -1,12 +1,13 @@
"attribute" = "#dbbfef" # lilac "attribute" = "#dbbfef" # lilac
"keyword" = "#eccdba" # almond "keyword" = "#eccdba" # almond
"keyword.directive" = "#dbbfef" # lilac -- preprocessor comments (#if in C)
"punctuation" = "#a4a0e8" # lavender "punctuation" = "#a4a0e8" # lavender
"punctuation.delimiter" = "#a4a0e8" # lavender "punctuation.delimiter" = "#a4a0e8" # lavender
"operator" = "#dbbfef" # lilac "operator" = "#dbbfef" # lilac
# "property" = "#a4a0e8" # lavender # "property" = "#a4a0e8" # lavender
"property" = "#ffffff" # white "property" = "#ffffff" # white
# "variable" = "#a4a0e8" # lavender "variable" = "#a4a0e8" # lavender
"variable" = "#eccdba" # almond # "variable" = "#eccdba" # almond TODO: metavariables only
"variable.parameter" = "#a4a0e8" # lavender "variable.parameter" = "#a4a0e8" # lavender
# TODO distinguish type from type.builtin? # TODO distinguish type from type.builtin?
"type" = "#ffffff" # white "type" = "#ffffff" # white

Loading…
Cancel
Save