feat(queries): add embedded language injections for Bruno blocks

This commit is contained in:
2026-03-11 15:23:44 +02:00
parent 1b1aead30e
commit 7739598c04
7 changed files with 954 additions and 927 deletions

70
src/grammar.json generated
View File

@@ -345,7 +345,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -363,7 +363,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -381,7 +381,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -399,7 +399,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -417,7 +417,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -435,7 +435,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -453,7 +453,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -631,7 +631,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -649,7 +649,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -716,7 +716,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -734,7 +734,7 @@
},
{
"type": "SYMBOL",
"name": "raw_block"
"name": "textblock"
}
]
},
@@ -883,7 +883,7 @@
}
]
},
"raw_block": {
"textblock": {
"type": "SEQ",
"members": [
{
@@ -891,11 +891,16 @@
"value": "{"
},
{
"type": "REPEAT",
"content": {
"type": "SYMBOL",
"name": "raw_fragment"
}
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "rawtext"
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
@@ -903,30 +908,6 @@
}
]
},
"raw_fragment": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "raw_text"
},
{
"type": "SYMBOL",
"name": "raw_block"
}
]
},
"raw_text": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": -1,
"content": {
"type": "PATTERN",
"value": "[^{}]+"
}
}
},
"assert_key": {
"type": "PATTERN",
"value": "[^\\r\\n:]+"
@@ -1012,7 +993,12 @@
],
"conflicts": [],
"precedences": [],
"externals": [],
"externals": [
{
"type": "SYMBOL",
"name": "rawtext"
}
],
"inline": [],
"supertypes": [],
"reserved": {}