diff options
Diffstat (limited to 'src/grammar.json')
| -rw-r--r-- | src/grammar.json | 108 |
1 files changed, 106 insertions, 2 deletions
diff --git a/src/grammar.json b/src/grammar.json index 02ae1ab..e8ce79a 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1754,7 +1754,7 @@ }, { "type": "SYMBOL", - "name": "_inline" + "name": "_note_inline" }, { "type": "STRING", @@ -1784,7 +1784,7 @@ }, { "type": "SYMBOL", - "name": "_inline" + "name": "_note_inline" }, { "type": "STRING", @@ -1792,6 +1792,110 @@ } ] }, + "_note_inline": { + "type": "REPEAT1", + "content": { + "type": "SYMBOL", + "name": "_note_inline_element" + } + }, + "_note_inline_element": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "emphasis" + }, + { + "type": "SYMBOL", + "name": "bold" + }, + { + "type": "SYMBOL", + "name": "italic" + }, + { + "type": "SYMBOL", + "name": "underline" + }, + { + "type": "SYMBOL", + "name": "citation_mark" + }, + { + "type": "SYMBOL", + "name": "superscript" + }, + { + "type": "SYMBOL", + "name": "subscript" + }, + { + "type": "SYMBOL", + "name": "inserted" + }, + { + "type": "SYMBOL", + "name": "strikethrough" + }, + { + "type": "SYMBOL", + "name": "monospace_inline" + }, + { + "type": "SYMBOL", + "name": "link" + }, + { + "type": "SYMBOL", + "name": "image" + }, + { + "type": "SYMBOL", + "name": "line_break" + }, + { + "type": "ALIAS", + "content": { + "type": "SYMBOL", + "name": "_note_text_word" + }, + "named": true, + "value": "text" + }, + { + "type": "ALIAS", + "content": { + "type": "SYMBOL", + "name": "_note_text_char" + }, + "named": true, + "value": "text" + } + ] + }, + "_note_text_word": { + "type": "TOKEN", + "content": { + "type": "PREC", + "value": -10, + "content": { + "type": "PATTERN", + "value": "[^\\]*!\\/_{}\"^,+#~\\\\\\-]+" + } + } + }, + "_note_text_char": { + "type": "TOKEN", + "content": { + "type": "PREC", + "value": -20, + "content": { + "type": "PATTERN", + "value": "[\\s\\S]" + } + } + }, "_brace_content": { "type": "PATTERN", "value": "[^}]+" |
