]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/javascript.yaml
Merge pull request #998 from JoshuaRLi/select-line-action
[micro.git] / runtime / syntax / javascript.yaml
index 01553321c25617ade30b0cfbd79cca64fb9d864b..84f9d2754b78419d420140187d02ac798d038d59 100644 (file)
@@ -25,8 +25,10 @@ rules:
     - constant: "\\b(true|false)\\b"
     - type: "\\b(Array|Boolean|Date|Enumerator|Error|Function|Math)\\b"
     - type: "\\b(Number|Object|RegExp|String)\\b"
-    - constant: "/[^*]([^/]|(\\\\/))*[^\\\\]/[gim]*"
+    - constant: "/[^*]([^/]|(\\\\/))*[^\\\\]/[gim]*"
     - constant: "\\\\[0-7][0-7]?[0-7]?|\\\\x[0-9a-fA-F]+|\\\\[bfnrt'\"\\?\\\\]"
+    - comment: "^#!.*/(env +)?node( |$)"
+
 
     - constant.string:
         start: "\""