X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fmicro.micro;h=481b31046d9ba561999fdb5aa90c723907b86bc3;hb=f7560c33119f8652c941405f77c18bebfe89e7cb;hp=f445d9eba3dbd67b19a19a1b81cd7035d3a839e4;hpb=c59b1ea387d3ecea88d28329b799e0e1487d5899;p=micro.git diff --git a/runtime/syntax/micro.micro b/runtime/syntax/micro.micro index f445d9eb..481b3104 100644 --- a/runtime/syntax/micro.micro +++ b/runtime/syntax/micro.micro @@ -1,10 +1,13 @@ # Micro syntax by syntax "micro" "\.(micro)$" -color statement "\b(syntax|color|color-link)\b" +color statement "\b(syntax|color(-link)?)\b" color statement "\b(start=|end=)\b" -color identifier "\b(default|comment|identifier|constant|constant|string|constant|number|statement|preproc|type|special|underlined|error|todo|statusline|indent-char|line=number|gutter-error|gutter-warning|cursor-line)\b" -color constant.string ""(\\.|[^"])*"" +color identifier "\b(default|comment|symbol|identifier|constant(.string(.char)?|.number)?|statement|preproc|type|special|underlined|error|todo|statusline|indent-char|(current-)?line-number|gutter-error|gutter-warning|cursor-line|color-column)\b" color constant.number "\b(|h|A|0x)+[0-9]+(|h|A)+\b" color constant.number "\b0x[0-9 a-f A-F]+\b" -color comment "#.*" + +color comment "#.*$" + +color constant.string ""(\\.|[^"])*"" +color constant.number "#[0-9 A-F a-f]+"