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

Commit da7f0b7

Browse files
committed
Highlight translation comments in QML.
1 parent e1d73eb commit da7f0b7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

syntaxes/qml.tmLanguage.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,20 @@
260260
},
261261
"comment": {
262262
"patterns": [
263+
{
264+
"begin": "(\\/\\/:)",
265+
"beginCaptures": {
266+
"1": {
267+
"name": "storage.type.class.qml.tr"
268+
}
269+
},
270+
"end": "$",
271+
"patterns": [
272+
{
273+
"include": "#comment-contents"
274+
}
275+
]
276+
},
263277
{
264278
"begin": "(\\/\\/[~|=])\\s*([A-Za-z_$][\\w$.\\[\\]]*)",
265279
"beginCaptures": {

0 commit comments

Comments
 (0)