Skip to content

Commit 6dba9f3

Browse files
authored
Merge pull request #512 from ks-korovina/fix-fn-interfaces
Support functional interfaces in Kotlin Textmate grammar
2 parents 85a0ec6 + 39bad57 commit 6dba9f3

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
@@ -303,7 +303,7 @@
303303
"name": "entity.name.type.annotation.kotlin"
304304
},
305305
"class-declaration": {
306-
"match": "\\b(class|interface)\\s+(\\b\\w+\\b|`[^`]+`)\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?",
306+
"match": "\\b(class|(?:fun\\s+)?interface)\\s+(\\b\\w+\\b|`[^`]+`)\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?",
307307
"captures": {
308308
"1": {
309309
"name": "storage.type.class.kotlin"

0 commit comments

Comments
 (0)