Skip to content

Commit

Permalink
fix highlighting of powershell v2 multiline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Oct 26, 2012
1 parent c88ca19 commit 93fe50c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions lib/ace/mode/powershell_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ var PowershellHighlightRules = function() {
{
token : "comment",
regex : "#.*$"
}, {
token : "comment.start",
regex : "<#",
next : "comment"
}, {
token : "string", // single line
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
Expand Down Expand Up @@ -118,13 +122,21 @@ var PowershellHighlightRules = function() {
],
"comment" : [
{
token : "comment", // closing comment
regex : ".*?\\*\\/",
token : "comment.end",
regex : "#>",
next : "start"
}, {
token : "comment", // comment spanning whole line
token : "doc.comment.tag",
merge : true,
regex : "^\\.\\w+"
}, {
token : "comment",
merge : true,
regex : "\\w+"
}, {
token : "comment",
merge : true,
regex : ".+"
regex : "."
}
]
};
Expand Down

0 comments on commit 93fe50c

Please sign in to comment.