fix(grammar): make brace and keyword separately queryable
This commit is contained in:
Generated
+51
-13
@@ -48,9 +48,17 @@
|
||||
"block_open": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "{"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_block_open_start"
|
||||
"name": "block_keyword"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ":"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
@@ -77,9 +85,21 @@
|
||||
"block_close": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "{"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "/"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_block_close_start"
|
||||
"name": "block_keyword"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ":"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
@@ -94,9 +114,17 @@
|
||||
"lang_tag": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "{"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_lang_start"
|
||||
"name": "lang_keyword"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ":"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
@@ -250,17 +278,27 @@
|
||||
"type": "PATTERN",
|
||||
"value": "[^}]+"
|
||||
},
|
||||
"_block_open_start": {
|
||||
"type": "PATTERN",
|
||||
"value": "\\{[Bb][Ll][Oo][Cc][Kk]:"
|
||||
"block_keyword": {
|
||||
"type": "TOKEN",
|
||||
"content": {
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[Bb][Ll][Oo][Cc][Kk]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"_block_close_start": {
|
||||
"type": "PATTERN",
|
||||
"value": "\\{\\/[Bb][Ll][Oo][Cc][Kk]:"
|
||||
},
|
||||
"_lang_start": {
|
||||
"type": "PATTERN",
|
||||
"value": "\\{[Ll][Aa][Nn][Gg]:"
|
||||
"lang_keyword": {
|
||||
"type": "TOKEN",
|
||||
"content": {
|
||||
"type": "PREC",
|
||||
"value": 1,
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[Ll][Aa][Nn][Gg]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"_space": {
|
||||
"type": "PATTERN",
|
||||
|
||||
Reference in New Issue
Block a user