Skip to content

Commit

Permalink
Add companion object highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
nishtahir committed Apr 25, 2018
1 parent 0b716bf commit 7631a67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syntax/Kotlin.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ repository:
-
match: \b(constructor|init)\b
name: entity.name.function.constructor
-
match: \b(companion|object)\b
name: storage.type.kotlin
keyword-operator:
patterns:
-
Expand Down
6 changes: 6 additions & 0 deletions syntax/Kotlin.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,12 @@
<key>name</key>
<string>entity.name.function.constructor</string>
</dict>
<dict>
<key>match</key>
<string>\b(companion|object)\b</string>
<key>name</key>
<string>storage.type.kotlin</string>
</dict>
</array>
</dict>
<key>keyword-operator</key>
Expand Down

0 comments on commit 7631a67

Please sign in to comment.