update name parser

This commit is contained in:
Rokas Puzonas 2023-06-27 15:02:54 +03:00
parent fdc69c1a79
commit ed01707ed7

View File

@ -12,7 +12,7 @@ module.exports = grammar(
$.package,
$.config
)),
_name_fragment: $ => /[A-Za-z0-9]+/,
_name_fragment: $ => /[A-Za-z0-9_]+/,
name: $ => choice(
$._name_fragment,
seq('"', $._name_fragment, '"'),