Fix CPP multiline directives
This commit is contained in:
parent
ab09f5e38f
commit
598d0d3ec2
2 changed files with 10 additions and 4 deletions
|
|
@ -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 ()
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue