]> git.lizzy.rs Git - rust.git/commitdiff
Color `as` as a keyword
authorGeorge Fraser <george@fivetran.com>
Sun, 10 May 2020 18:01:56 +0000 (11:01 -0700)
committerGeorge Fraser <george@fivetran.com>
Sun, 10 May 2020 20:07:28 +0000 (13:07 -0700)
editors/code/rust.tmGrammar.json

index d2752844785175bc20837906464c08b6b25597f5..6fe16d794fe3328ac6a6677c64686f0a004077c0 100644 (file)
                {
                        "comment": "Keyword",
                        "name": "keyword.other.rust",
-                       "match": "\\b(crate|extern|mod|let|ref|use|super|move)\\b"
+                       "match": "\\b(crate|extern|mod|let|ref|use|super|move|as)\\b"
                },
                {
                        "comment": "Reserved keyword",
                {
                        "comment": "Miscellaneous operator",
                        "name": "keyword.operator.misc.rust",
-                       "match": "(=>|::|\\bas\\b)"
+                       "match": "(=>|::)"
                },
                {
                        "comment": "Comparison operator",