highlight hashbang in javascript mode for node.js scripts
This commit is contained in:
parent
1e237415fe
commit
7c92d113b2
1 changed files with 3 additions and 0 deletions
|
|
@ -127,6 +127,9 @@ var JavaScriptHighlightRules = function() {
|
||||||
}, {
|
}, {
|
||||||
token : "rparen",
|
token : "rparen",
|
||||||
regex : "[\\])}]"
|
regex : "[\\])}]"
|
||||||
|
}, {
|
||||||
|
token: "comment",
|
||||||
|
regex: "^#!.*$"
|
||||||
}, {
|
}, {
|
||||||
token : "text",
|
token : "text",
|
||||||
regex : "\\s+"
|
regex : "\\s+"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue