]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/asm.micro
Merge
[micro.git] / runtime / syntax / asm.micro
index 262686985fd86b8ab51687b62c3b147ee4a6d069..a0dd3ff79ebf876b07409951552ffcfc166624e4 100644 (file)
@@ -72,20 +72,22 @@ color identifier "\b(?i)(ymm0|ymm1|ymm2|ymm3|ymm4|ymm5|ymm6|ymm7|ymm8|ymm9|ymm10
 color identifier "\b(?i)(zmm0|zmm1|zmm2|zmm3|zmm4|zmm5|zmm6|zmm7|zmm8|zmm9|zmm10|zmm11|zmm12|zmm13|zmm14|zmm15|zmm16|zmm17|zmm18|zmm19|zmm20|zmm21|zmm22|zmm23|zmm24|zmm25|zmm26|zmm27|zmm28|zmm29|zmm30|zmm31)(?-i)\b"
 
 ## Constants
-# String
-color constant.string ""(\\.|[^"])*""
-color constant.string "'(\\.|[^'])*'"
 # Number - it works
 color constant.number "\b(|h|A|0x)+[0-9]+(|h|A)+\b"
 color constant.number "\b0x[0-9 a-f A-F]+\b"
 
 ## Preprocessor (NASM)
 color preproc "%+(\+|\?|\?\?|)[a-z A-Z 0-9]+"
-color preproc "%\[.*|[a-z][A-Z]*\]"
+color preproc "%\[[. a-z A-Z 0-9]*\]"
 
 ## Other
-color statement "\b(?i)(segment|\.text|\.data|\.bss)(?-i)\b"
+color statement "\b(?i)(extern|global|section|segment|_start|\.text|\.data|\.bss)(?-i)\b"
 color statement "\b(?i)(db|dw|dd|dq|dt|ddq|do)(?-i)\b"
+color identifier "[a-z A-Z 0-9 _]+:"
+
+# String
+color constant.string ""(\\.|[^"])*""
+color constant.string "'(\\.|[^'])*'"
 
 ## Comments
 color comment ";.*"