Im working a syntax highlighter for coldfusion, and want to implement paired tags which also name the scope of the tag specifically for themselves.
It is straight forward to use a capture from the begin regex in the end regex, but can it also be done in the scope name?
"pairedtag": {
"begin": "(<cf(^\\s>]+)(^>]*)>)",
"beginCaptures": {
"1": { "name": "entity.tag.open.cfml.\\2" }
},
"patterns": { "include": "$self" }],
"end": "(</cf\\2>)",
"endCaptures": {
"1": { "name": "entity.tag.close.cfml" }
}