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

@ -16,6 +16,12 @@
#include <boost/asio/io_service.hpp> #include <boost/asio/io_service.hpp>
#include "boost/asio/io_service.hpp" #include "boost/asio/io_service.hpp"
#include \
\
"iostream" \
"string" \
<vector>
using namespace std; using namespace std;
int main () int main ()

View file

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