File tree 3 files changed +75
-9
lines changed
3 files changed +75
-9
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "comments" : {
3
+ // symbol used for single line comment. Remove this entry if your language does not support line comments
4
+ "lineComment" : " //" ,
5
+ // symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6
+ "blockComment" : [ " /*" , " */" ]
7
+ },
8
+ // symbols used as brackets
9
+ "brackets" : [
10
+ [" {" , " }" ],
11
+ [" [" , " ]" ],
12
+ [" (" , " )" ]
13
+ ],
14
+ // symbols that are auto closed when typing
15
+ "autoClosingPairs" : [
16
+ [" {" , " }" ],
17
+ [" [" , " ]" ],
18
+ [" (" , " )" ],
19
+ [" \" " , " \" " ],
20
+ [" '" , " '" ]
21
+ ],
22
+ // symbols that that can be used to surround a selection
23
+ "surroundingPairs" : [
24
+ [" {" , " }" ],
25
+ [" [" , " ]" ],
26
+ [" (" , " )" ],
27
+ [" \" " , " \" " ],
28
+ [" '" , " '" ]
29
+ ]
30
+ }
Original file line number Diff line number Diff line change 7
7
"vscode" : " ^1.37.0"
8
8
},
9
9
"categories" : [
10
- " Other"
11
- ],
12
- "activationEvents" : [
13
- " onCommand:extension.helloWorld"
10
+ " Programming Languages"
14
11
],
15
12
"main" : " ./out/extension.js" ,
16
13
"contributes" : {
17
- "commands" : [{
18
- "command" : " extension.helloWorld" ,
19
- "title" : " Hello World"
20
- }]
21
- },
14
+ "languages" : [{
15
+ "id" : " firestorerules" ,
16
+ "aliases" : [" Firestore Rules" , " firestore" ],
17
+ "extensions" : [" rules" ," rule" ],
18
+ "configuration" : " ./language-configuration.json"
19
+ }],
20
+ "grammars" : [{
21
+ "language" : " firestorerules" ,
22
+ "scopeName" : " source.firebase" ,
23
+ "path" : " ./syntaxes/firestorerules.tmLanguage.json"
24
+ }]
25
+ },
22
26
"scripts" : {
23
27
"vscode:prepublish" : " yarn run compile" ,
24
28
"compile" : " tsc -p ./" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json" ,
3
+ "name" : " firestorerules" ,
4
+ "patterns" : [
5
+ {
6
+ "include" : " #keywords"
7
+ },
8
+ {
9
+ "include" : " #strings"
10
+ }
11
+ ],
12
+ "repository" : {
13
+ "keywords" : {
14
+ "patterns" : [{
15
+ "name" : " keyword.control.firestorerules" ,
16
+ "match" : " \\ b(if|while|for|return)\\ b"
17
+ }]
18
+ },
19
+ "strings" : {
20
+ "name" : " string.quoted.double.firestorerules" ,
21
+ "begin" : " \" " ,
22
+ "end" : " \" " ,
23
+ "patterns" : [
24
+ {
25
+ "name" : " constant.character.escape.firestorerules" ,
26
+ "match" : " \\\\ ."
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ "scopeName" : " source.firebase"
32
+ }
You can’t perform that action at this time.
0 commit comments