diff --git a/grammar.js b/grammar.js index cb56d24..77d68ac 100644 --- a/grammar.js +++ b/grammar.js @@ -1002,7 +1002,7 @@ module.exports = grammar({ // http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890 comment: $ => token(choice( - seq('//', /(\\(.|\r?\n)|[^\\\n])*/), + seq('//', /(\\+(.|\r?\n)|[^\\\n])*/), seq( '/*', /[^*]*\*+([^/*][^*]*\*+)*/,