Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit f0a56a9

Browse files
committed
fix: highlight the ID selector in QSS without depending on ending spaces
Fix #273
1 parent e97c060 commit f0a56a9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

syntaxes/qss.tmLanguage.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,15 @@
9999
"id-selector": {
100100
"patterns": [
101101
{
102-
"begin": "#",
103-
"end": "\\s+",
104-
"contentName": "entity.name.tag.qss"
102+
"match": "(#)([a-zA-Z][a-zA-Z0-9_-]*)",
103+
"captures": {
104+
"1": {
105+
"name": "punctuation.definition.entity.qss"
106+
},
107+
"2": {
108+
"name": "entity.name.tag.qss"
109+
}
110+
}
105111
}
106112
]
107113
},

0 commit comments

Comments
 (0)