Skip to content

Commit 56f2cfb

Browse files
fwcdfbricon
authored andcommitted
Use source.gradle-kotlin-dsl for Kotlin grammar
1 parent d5536ac commit 56f2cfb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

language-support/kotlin/kotlin.tmLanguage.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"information_for_contributors": [
3-
"This file has been copied from https://github.com/eclipse/buildship/blob/b848d9a08283b68860671a73ceec3c99bdab27c2/org.eclipse.buildship.kotlindsl.provider/kotlin.tmLanguage.json"
3+
"This file has been copied from https://github.com/eclipse/buildship/blob/b848d9a08283b68860671a73ceec3c99bdab27c2/org.eclipse.buildship.kotlindsl.provider/kotlin.tmLanguage.json",
4+
"NOTE: This uses the scope 'source.gradle-kotlin-dsl' rather than 'source.kotlin' to avoid conflicts with other Kotlin grammars."
45
],
56
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
6-
"name": "Kotlin",
7-
"scopeName": "source.kotlin",
7+
"name": "Gradle Kotlin DSL",
8+
"scopeName": "source.gradle-kotlin-dsl",
89
"patterns": [
910
{
1011
"include": "#import"
@@ -698,4 +699,4 @@
698699
"name": "variable.language.this.kotlin"
699700
}
700701
}
701-
}
702+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
},
211211
{
212212
"language": "gradle-kotlin-dsl",
213-
"scopeName": "source.kotlin",
213+
"scopeName": "source.gradle-kotlin-dsl",
214214
"path": "./language-support/kotlin/kotlin.tmLanguage.json"
215215
},
216216
{

0 commit comments

Comments
 (0)