diff --git a/grammar.js b/grammar.js index 7764a6c..1dbf62b 100644 --- a/grammar.js +++ b/grammar.js @@ -30,10 +30,10 @@ module.exports = grammar({ $._end ), - label: ($) => choice($.string, $._unquoted_string), - identifier: ($) => $._identifier, + label: ($) => choice($.string, $._unquoted_string), + attr_value: ($) => choice($.string, $._unquoted_string), _root_attribute: ($) => diff --git a/src/grammar.json b/src/grammar.json index 2d09c3e..da84d96 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -167,6 +167,10 @@ } ] }, + "identifier": { + "type": "SYMBOL", + "name": "_identifier" + }, "label": { "type": "CHOICE", "members": [ @@ -180,10 +184,6 @@ } ] }, - "identifier": { - "type": "SYMBOL", - "name": "_identifier" - }, "attr_value": { "type": "CHOICE", "members": [ diff --git a/src/parser.c b/src/parser.c index 471d95c..1ab4615 100644 Binary files a/src/parser.c and b/src/parser.c differ