Skip to content

Commit

Permalink
🤖: update grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Jan 16, 2024
1 parent 5e1e466 commit 20dc9b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/shiki/languages/kotlin.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@
"include": "#class-declaration"
},
{
"include": "#object-declaration"
"include": "#object"
},
{
"include": "#type-alias"
},
{
"include": "#function-declaration"
"include": "#function"
},
{
"include": "#variable-declaration"
Expand Down Expand Up @@ -317,8 +317,8 @@
}
}
},
"object-declaration": {
"match": "\\b(object)\\s+(\\b\\w+\\b|`[^`]+`)",
"object": {
"match": "\\b(object)(?:\\s+(\\b\\w+\\b|`[^`]+`))?",
"captures": {
"1": {
"name": "storage.type.object.kotlin"
Expand Down Expand Up @@ -346,8 +346,8 @@
}
}
},
"function-declaration": {
"match": "\\b(fun)\\b\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?\\s*(?:(\\w+)\\.)?(\\b\\w+\\b|`[^`]+`)",
"function": {
"match": "\\b(fun)\\b\\s*(?<GROUP><([^<>]|\\g<GROUP>)+>)?\\s*(?:(?:(\\w+)\\.)?(\\b\\w+\\b|`[^`]+`))?",
"captures": {
"1": {
"name": "storage.type.function.kotlin"
Expand Down

0 comments on commit 20dc9b8

Please sign in to comment.