Files
WRNexusJS/editors/vscode/syntaxes/wrn.injection.tmLanguage.json
Clintchiz 2c960fc1dc
Quality / quality (ubuntu-latest) (push) Failing after 9m49s
Quality / quality (windows-latest) (push) Canceled after 0s
refactor: migrate legacy wire namespace to wrn
2026-08-12 18:51:15 +05:30

21 lines
773 B
JSON

{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "WrNexus attributes",
"scopeName": "wrn.attributes.injection",
"injectionSelector": "L:meta.tag -comment -string",
"patterns": [{ "include": "#wrn-event" }, { "include": "#wrn-directive" }],
"repository": {
"wrn-event": {
"match": "(@)([A-Za-z][A-Za-z0-9_-]*)",
"captures": {
"1": { "name": "punctuation.definition.keyword.wrn" },
"2": { "name": "entity.other.attribute-name.wrn.event" }
}
},
"wrn-directive": {
"match": "\\b(data-(?:component|scope|for|text|show|slot|on-[A-Za-z0-9_-]+|wrn-[A-Za-z0-9_-]+|wrnexus-[A-Za-z0-9_-]+))\\b",
"name": "entity.other.attribute-name.wrn.directive"
}
}
}