aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-23 09:42:29 +0000
committerBlaž Hrastnik2021-04-23 09:42:29 +0000
commit77db3599ba4eaaae3e03217abd57416f09834536 (patch)
tree1c773548f1e70aee817a629a60271aea3ce62a1a /runtime
parent7e9ea30a0b4eee08322d689450efebe74dec8097 (diff)
Fix C highlighting inconsistencies.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/c/highlights.scm26
1 files changed, 15 insertions, 11 deletions
diff --git a/runtime/queries/c/highlights.scm b/runtime/queries/c/highlights.scm
index 04d9a04f..36fe47d9 100644
--- a/runtime/queries/c/highlights.scm
+++ b/runtime/queries/c/highlights.scm
@@ -1,3 +1,5 @@
+"goto" @keyword
+"register" @keyword
"break" @keyword
"case" @keyword
"const" @keyword
@@ -20,15 +22,17 @@
"volatile" @keyword
"while" @keyword
-"#define" @keyword
-"#elif" @keyword
-"#else" @keyword
-"#endif" @keyword
-"#if" @keyword
-"#ifdef" @keyword
-"#ifndef" @keyword
-"#include" @keyword
-(preproc_directive) @keyword
+[
+ "#define"
+ "#elif"
+ "#else"
+ "#endif"
+ "#if"
+ "#ifdef"
+ "#ifndef"
+ "#include"
+ (preproc_directive)
+] @keyword.directive
"--" @operator
"-" @operator
@@ -47,8 +51,8 @@
">" @operator
"||" @operator
-"." @delimiter
-";" @delimiter
+"." @punctuation.delimiter
+";" @punctuation.delimiter
(string_literal) @string
(system_lib_string) @string