Ver código fonte

fix: allow numbers in preproc_directive

pull/150/head
Amaan Qureshi 3 anos atrás
pai
commit
1e6557a90d
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: E67890ADC4227273
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      grammar.js

+ 1
- 1
grammar.js Ver arquivo

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

Carregando…
Cancelar
Salvar