]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/coffeescript.yaml
Merge pull request #1412 from tommyshem/batSyntaxHighlighting
[micro.git] / runtime / syntax / coffeescript.yaml
index 30ae1dc1dc56884a594ca6cd8045614489c29442..d9b374836df37c46ce3d53264eb35fe6cf46a847 100644 (file)
@@ -4,19 +4,20 @@ detect:
     filename: "\\.coffee$"
 
 rules:
-    - statement: "[!&|=/*+-<>]|\\b(and|or|is|isnt|not)\\b"
-    - identifier: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)"
-    - statement: "[()]"
+    - symbol.operator: "[!&|=/*+-<>]|\\b(and|or|is|isnt|not)\\b"
+    - identifier.class: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)"
+    - symbol.brackets: "[()]"
     - statement:  "\\b(for|of|continue|break|isnt|null|unless|this|else|if|return)\\b"
     - statement:  "\\b(try|catch|finally|throw|new|delete|typeof|in|instanceof)\\b"
     - statement:  "\\b(debugger|switch|while|do|class|extends|super)\\b"
     - statement:  "\\b(undefined|then|unless|until|loop|of|by|when)\\b"
-    - constant:  "\\b(true|false|yes|no|on|off)\\b"
-    - preproc: "@[A-Za-z0-9_]*"
+    - constant.bool:  "\\b(true|false|yes|no|on|off)\\b"
+    - identifier: "@[A-Za-z0-9_]*"
 
     - constant.string:
         start: "\""
         end: "\""
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
 
@@ -25,3 +26,4 @@ rules:
         end: "$"
         rules:
             - todo: "(TODO|XXX|FIXME):?"
+