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 \
|
||||
\
|
||||
"iostream" \
|
||||
"string" \
|
||||
<vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main ()
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue