diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/c/highlights.scm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm index 594826366..e9eee2ab7 100644 --- a/queries/c/highlights.scm +++ b/queries/c/highlights.scm @@ -2,21 +2,16 @@ ((identifier) @variable (#set! "priority" 95)) [ - "const" "default" "enum" - "extern" - "inline" - "static" "struct" "typedef" "union" - "volatile" "goto" - "register" ] @keyword "sizeof" @keyword.operator + "return" @keyword.return [ @@ -34,7 +29,6 @@ "switch" ] @conditional -"#define" @constant.macro [ "#if" "#ifdef" @@ -45,6 +39,8 @@ (preproc_directive) ] @preproc +"#define" @define + "#include" @include [ ";" ":" "," ] @punctuation.delimiter @@ -139,7 +135,12 @@ (type_descriptor) ] @type -(sizeof_expression value: (parenthesized_expression (identifier) @type)) +(storage_class_specifier) @storageclass + +(type_qualifier) @type.qualifier + +(type_definition + declarator: (type_identifier) @type.definition) ((identifier) @constant (#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) |
