Skip to content

Commit 903330d

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

File tree

6 files changed

+23
-93
lines changed

6 files changed

+23
-93
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: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858
"microprofile": {
5959
"jarExtensions": [
6060
"./server/com.redhat.quarkus.ls.jar"
61-
]
61+
],
62+
"documentSelector": {
63+
"scheme": "file",
64+
"language": "quarkus-properties"
65+
}
6266
},
6367
"languages": [
6468
{
@@ -195,8 +199,8 @@
195199
"grammars": [
196200
{
197201
"language": "quarkus-properties",
198-
"scopeName": "source.java-properties",
199-
"path": "./language-support/properties-support/java-properties.tmLanguage.json"
202+
"scopeName": "source.quarkus-properties",
203+
"path": "./language-support/properties-support/quarkus-properties.tmLanguage.json"
200204
},
201205
{
202206
"language": "qute-html",
@@ -284,4 +288,4 @@
284288
"request-promise": "^4.2.4",
285289
"yauzl": "^2.10.0"
286290
}
287-
}
291+
}

0 commit comments

Comments
 (0)