浏览代码

fix: comments can have multiple delimiting backslashes

pull/135/head
Amaan Qureshi 3 年前
父节点
当前提交
16456ce9a1
找不到此签名对应的密钥 GPG 密钥 ID: E67890ADC4227273
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      grammar.js

+ 1
- 1
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(
'/*',
/[^*]*\*+([^/*][^*]*\*+)*/,

正在加载...
取消
保存