From cf97e10eae80d4be90a771dcec38ce6b3a119173 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 14 Sep 2024 22:41:18 +0200 Subject: Update the tests --- src/grammar.json | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) (limited to 'src/grammar.json') diff --git a/src/grammar.json b/src/grammar.json index 8fbe7dc..5132fed 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -215,17 +215,21 @@ "value": "#" }, { - "type": "ALIAS", + "type": "FIELD", + "name": "name", "content": { - "type": "IMMEDIATE_TOKEN", + "type": "ALIAS", "content": { - "type": "PATTERN", - "value": "\\p{XID_Start}[-\\p{XID_Continue}]*", - "flags": "u" - } - }, - "named": true, - "value": "ident" + "type": "IMMEDIATE_TOKEN", + "content": { + "type": "PATTERN", + "value": "\\p{XID_Start}[-\\p{XID_Continue}]*", + "flags": "u" + } + }, + "named": true, + "value": "ident" + } } ] }, @@ -237,17 +241,21 @@ "value": "." }, { - "type": "ALIAS", + "type": "FIELD", + "name": "name", "content": { - "type": "IMMEDIATE_TOKEN", + "type": "ALIAS", "content": { - "type": "PATTERN", - "value": "\\p{XID_Start}[-\\p{XID_Continue}]*", - "flags": "u" - } - }, - "named": true, - "value": "ident" + "type": "IMMEDIATE_TOKEN", + "content": { + "type": "PATTERN", + "value": "\\p{XID_Start}[-\\p{XID_Continue}]*", + "flags": "u" + } + }, + "named": true, + "value": "ident" + } } ] }, -- cgit v1.2.3