update name parser

This commit is contained in:
Rokas Puzonas 2023-06-27 14:51:39 +03:00
parent fdc69c1a79
commit 78a67a257c

View File

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