Skip to content

Commit f38f4ca

Browse files
dkwon17xorye
authored andcommitted
Define Quarkus document selector and TextMate grammar
Signed-off-by: David Kwon <dakwon@redhat.com>
1 parent 6abdadf commit f38f4ca

File tree

6 files changed

+24
-92
lines changed

6 files changed

+24
-92
lines changed

language-support/properties-support/java-properties.tmLanguage.json

Lines changed: 0 additions & 89 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Quarkus Properties",
3+
"scopeName": "source.quarkus-properties",
4+
"patterns": [
5+
{
6+
"comment": "source.java-properties is defined in vscode-microprofile",
7+
"include": "source.java-properties"
8+
}
9+
],
10+
"uuid": "924b3a76-ca9c-11ea-87d0-0242ac130003"
11+
}

language-support/qute/qute-html.tmLanguage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "Qute HTML",
33
"injections": {
44
"L:meta.tag": {
5+
"comment": "Qute patterns to inject in HTML's meta.tag scope",
56
"patterns": [
67
{
78
"include": "grammar.qute#templates"

language-support/qute/qute-json.tmLanguage.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "Qute JSON",
33
"injections": {
44
"L:support.type.property-name.json, L:string.quoted.double.json": {
5+
"comment": "Qute patterns to inject in the support.type.property-name.json and string.quoted.double.json scopes",
56
"patterns": [
67
{
78
"include": "grammar.qute#templates"
@@ -12,6 +13,7 @@
1213
]
1314
},
1415
"L:meta.structure.dictionary.json": {
16+
"comment": "Qute patterns to inject in the meta.structure.dictionary.json scope",
1517
"patterns": [
1618
{
1719
"include": "grammar.qute#comment"

language-support/qute/qute-yaml.tmLanguage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "Qute YAML",
33
"injections": {
44
"L:entity.name.tag.yaml, L:string.unquoted, L:string.quoted": {
5+
"comment": "Qute patterns to inject in the entity.name.tag.yaml, string.unquoted and string.quoted scopes",
56
"patterns": [
67
{
78
"include": "grammar.qute#templates"

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
"microprofile": {
5959
"jarExtensions": [
6060
"./server/com.redhat.quarkus.ls.jar"
61+
],
62+
"documentSelector": [
63+
{
64+
"scheme": "file",
65+
"language": "quarkus-properties"
66+
}
6167
]
6268
},
6369
"languages": [
@@ -195,8 +201,8 @@
195201
"grammars": [
196202
{
197203
"language": "quarkus-properties",
198-
"scopeName": "source.java-properties",
199-
"path": "./language-support/properties-support/java-properties.tmLanguage.json"
204+
"scopeName": "source.quarkus-properties",
205+
"path": "./language-support/properties-support/quarkus-properties.tmLanguage.json"
200206
},
201207
{
202208
"language": "qute-html",
@@ -284,4 +290,4 @@
284290
"request-promise": "^4.2.4",
285291
"yauzl": "^2.10.0"
286292
}
287-
}
293+
}

0 commit comments

Comments
 (0)