Fix CPP multiline directives

This commit is contained in:
Garen Torikian 2013-02-04 17:00:37 -08:00
commit 598d0d3ec2
2 changed files with 10 additions and 4 deletions

View file

@ -145,6 +145,10 @@ var c_cppHighlightRules = function() {
token : "constant.other.multiline",
regex : /\\/
},
{
token : "constant.other.multiline",
regex : /.*\\/
},
{
token : "constant.other",
regex : "\\s*<.+?>",
@ -160,10 +164,6 @@ var c_cppHighlightRules = function() {
regex : "\\s*['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']",
next : "start"
},
{
token : "constant.other.multiline",
regex : /.*\\/
},
// "\" implies multiline, while "/" implies comment
{
token : "constant.other",