Migrate jqhtml slot syntax from <#name> to <Slot:name>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
18
node_modules/@jqhtml/vscode-extension/syntaxes/jqhtml.tmLanguage.json
generated
vendored
18
node_modules/@jqhtml/vscode-extension/syntaxes/jqhtml.tmLanguage.json
generated
vendored
@@ -237,33 +237,35 @@
|
||||
]
|
||||
},
|
||||
"slot-tag": {
|
||||
"comment": "Slot tags <#slotname> for defining named content areas",
|
||||
"comment": "Slot tags <Slot:slotname> for defining named content areas",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "Opening slot tag <#name> or self-closing <#name />",
|
||||
"comment": "Opening slot tag <Slot:name> or self-closing <Slot:name />",
|
||||
"name": "meta.tag.slot.jqhtml",
|
||||
"match": "(<)(#)(\\w+)\\s*([^>]*?)(/?>)",
|
||||
"match": "(<)(Slot)(:)(\\w+)\\s*([^>]*?)(/?>)",
|
||||
"captures": {
|
||||
"1": { "name": "punctuation.definition.tag.begin.jqhtml" },
|
||||
"2": { "name": "keyword.control.slot.jqhtml" },
|
||||
"3": { "name": "keyword.control.slot.jqhtml" },
|
||||
"4": {
|
||||
"4": { "name": "keyword.control.slot.jqhtml" },
|
||||
"5": {
|
||||
"patterns": [
|
||||
{ "include": "#tag-attributes" }
|
||||
]
|
||||
},
|
||||
"5": { "name": "punctuation.definition.tag.end.jqhtml" }
|
||||
"6": { "name": "punctuation.definition.tag.end.jqhtml" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "Closing slot tag </#name>",
|
||||
"comment": "Closing slot tag </Slot:name>",
|
||||
"name": "meta.tag.slot.close.jqhtml",
|
||||
"match": "(</)(#)(\\w+)(>)",
|
||||
"match": "(</)(Slot)(:)(\\w+)(>)",
|
||||
"captures": {
|
||||
"1": { "name": "punctuation.definition.tag.begin.jqhtml" },
|
||||
"2": { "name": "keyword.control.slot.jqhtml" },
|
||||
"3": { "name": "keyword.control.slot.jqhtml" },
|
||||
"4": { "name": "punctuation.definition.tag.end.jqhtml" }
|
||||
"4": { "name": "keyword.control.slot.jqhtml" },
|
||||
"5": { "name": "punctuation.definition.tag.end.jqhtml" }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user