aboutsummaryrefslogtreecommitdiff
path: root/src/grammar.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar.json')
-rw-r--r--src/grammar.json36
1 files changed, 22 insertions, 14 deletions
diff --git a/src/grammar.json b/src/grammar.json
index 9dabb74..2ee7e30 100644
--- a/src/grammar.json
+++ b/src/grammar.json
@@ -283,26 +283,34 @@
"type": "CHOICE",
"members": [
{
- "type": "PATTERN",
- "value": "(\\\\[@}\\\\]|[^@}\\\\\\p{Pattern_White_Space}])((\\\\[@}\\\\]|[^@}\\\\])*(\\\\[@}\\\\]|[^@}\\\\\\p{Pattern_White_Space}]))?",
- "flags": "u"
+ "type": "SYMBOL",
+ "name": "raw_text"
},
{
- "type": "SEQ",
- "members": [
- {
- "type": "STRING",
- "value": "@"
- },
- {
- "type": "SYMBOL",
- "name": "_toplevel"
- }
- ]
+ "type": "SYMBOL",
+ "name": "inline_node"
}
]
}
},
+ "raw_text": {
+ "type": "PATTERN",
+ "value": "(\\\\[@}\\\\]|[^@}\\\\\\p{Pattern_White_Space}])((\\\\[@}\\\\]|[^@}\\\\])*(\\\\[@}\\\\]|[^@}\\\\\\p{Pattern_White_Space}]))?",
+ "flags": "u"
+ },
+ "inline_node": {
+ "type": "SEQ",
+ "members": [
+ {
+ "type": "STRING",
+ "value": "@"
+ },
+ {
+ "type": "SYMBOL",
+ "name": "_toplevel"
+ }
+ ]
+ },
"ident": {
"type": "PATTERN",
"value": "\\p{XID_Start}[-\\p{XID_Continue}]*",