Skip to content

Commit cf5fda0

Browse files
authored
Merge pull request #405 from a-stewart/strings-in-type-path
Do not allow strings in type annotations
2 parents 390f5ef + b8eaaf1 commit cf5fda0

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)