]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/asm.micro
Merge pull request #462 from Theodus/pony-syntax
[micro.git] / runtime / syntax / asm.micro
index ac6af35224a0f27f901a04a6d1a24927bf6c42bc..a0dd3ff79ebf876b07409951552ffcfc166624e4 100644 (file)
@@ -72,9 +72,6 @@ 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"
@@ -84,8 +81,13 @@ color preproc "%+(\+|\?|\?\?|)[a-z A-Z 0-9]+"
 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 ";.*"