Skip to content

Commit 3b9d244

Browse files
authored
Do not allow strings in type annotations
1 parent 390f5ef commit 3b9d244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grammars/Kotlin.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
]
385385
},
386386
"type-annotation": {
387-
"match": "(?<![:?]):\\s*(\\w|\\?|\\s|->|(?<GROUP>[<(]([^<>()]|\\g<GROUP>)+[)>]))+",
387+
"match": "(?<![:?]):\\s*(\\w|\\?|\\s|->|(?<GROUP>[<(]([^<>()\"]|\\g<GROUP>)+[)>]))+",
388388
"captures": {
389389
"0": {
390390
"patterns": [

0 commit comments

Comments
 (0)