Kaynağa Gözat

fix: allow numbers in preproc_directive

pull/150/head
Amaan Qureshi 3 yıl önce
ebeveyn
işleme
1e6557a90d
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: E67890ADC4227273
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      grammar.js

+ 1
- 1
grammar.js Dosyayı Görüntüle

@ -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,

Yükleniyor…
İptal
Kaydet