]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/c.micro
Merge pull request #447 from samdmarshall/objective-c-syntax
[micro.git] / runtime / syntax / c.micro
index 86d945d28e56bfa09621ef579bd8a3ff940db0d9..035df1ca42f74be255619d17cc9733ac68416e36 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,6 +21,7 @@ color statement "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
 #Parenthetical Color
 # color magenta "[(){}]" "\[" "\]"
 
+color constant.number "\b[0-9]+\b" "\b0x[0-9A-Fa-f]+\b"
 
 ##
 ## String highlighting.  You will in general want your brightblacks and