File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,18 @@ rules:
1717 - statement : " \\ b(if|then|else)\\ b"
1818 # blocs
1919 - type : " \\ b(begin|end|object|struct|sig|for|while|do|done|to|downto)\\ b"
20+ - type : " '[0-9A-Za-z_]+"
2021 # constantes
2122 - constant.bool : " \\ b(true|false)\\ b"
2223 # modules/classes
2324 - special : " \\ b(include|inherit|initializer)\\ b"
2425 # expr modifiers
2526 - special : " \\ b(new|ref|mutable|lazy|assert|raise)\\ b"
26- - constant.string :
27- start : " '"
28- end : " '"
29- skip : " \\\\ ."
30- rules :
31- - constant.specialChar : " %."
32- - constant.specialChar : " \\\\ [abfnrtv'\\\"\\\\ ]"
33- - constant.specialChar : " \\\\ ([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
27+ # character literal
28+ - constant.string : " '(\\\\ [0-7]{3}|\\\\ x[A-Fa-f0-9]{2}|\\\\ u[A-Fa-f0-9]{4}|\\\\ U[A-Fa-f0-9]{8}|\\\\ [abfnrtv'\\\"\\\\ ]|.)'"
29+ - constant.specialChar : " \\\\ [abfnrtv'\\\"\\\\ ]"
30+ - constant.specialChar : " \\\\ ([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
31+ # string literal
3432 - constant.string :
3533 start : " \" "
3634 end : " \" "
You can’t perform that action at this time.
0 commit comments