]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/c.micro
Merge
[micro.git] / runtime / syntax / c.micro
index 54a417374937ff5af2a756a4ee83ee57048da5c7..6ebfb306adfaad46bf4059d4aacebe5971c88c5a 100644 (file)
@@ -1,6 +1,6 @@
 ## Here is an example for C/C++.
 ##
-syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
+syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
 color identifier "\b[A-Z_][0-9A-Z_]+\b" 
 color type "\b(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\b"
 color type "\b((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\b"
@@ -21,19 +21,20 @@ color statement "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
 #Parenthetical Color
 # color magenta "[(){}]" "\[" "\]"
 
+color constant.number "\b[0-9]+\b"
 
 ##
 ## String highlighting.  You will in general want your brightblacks and
 ## strings to come last, because syntax highlighting rules will be
 ## applied in the order they are read in.
-color constant ""(\\.|[^"])*""
+color constant.string ""(\\.|[^"])*""
 ##
 ## This string is VERY resource intensive!
-#color cyan (s) ""(\\.|[^"])*\\[[:space:]]*$.*?^(\\.|[^"])*""
+#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 
 ## Comment highlighting
 color comment "//.*"
-color comment (s) "/\*.*?\*/"
+color comment start="/\*" end="\*/"
 
 ## Trailing whitespace
 #color ,green "[[:space:]]+$"