Fix shebang js highlighting and js division

Closes #901
Closes #994
This commit is contained in:
Zachary Yedidia
2018-01-17 17:19:03 -05:00
parent 1cf4baa743
commit e26417fd14
2 changed files with 4 additions and 2 deletions

View 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: "\""