소스 검색

fix: disallow `/` after `\S` to better handle comments in preproc_arg

pull/156/head
Amaan Qureshi 3 년 전
부모
커밋
5890e77d2d
No known key found for this signature in database GPG 키 ID: E67890ADC4227273
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      grammar.js

+ 1
- 1
grammar.js 파일 보기

@ -148,7 +148,7 @@ module.exports = grammar({
...preprocIf('', $ => $._block_item),
...preprocIf('_in_field_declaration_list', $ => $._field_declaration_list_item),
preproc_arg: _ => token(prec(-1, /\S(.|\\\r?\n)*/)),
preproc_arg: _ => token(prec(-1, /\S([^/\n]|\\\r?\n)*/)),
preproc_directive: _ => /#[ \t]*[a-zA-Z0-9]\w*/,
_preproc_expression: $ => choice(

불러오는 중...
취소
저장