File tree Expand file tree Collapse file tree 5 files changed +358
-295
lines changed Expand file tree Collapse file tree 5 files changed +358
-295
lines changed Original file line number Diff line number Diff line change 26
26
<key >applyEndPatternLast </key >
27
27
<integer >1 </integer >
28
28
<key >begin </key >
29
- <string >^\s*(#[> !])(.+)$ </string >
29
+ <string >^\s*(#[> !# ])(.+)$ </string >
30
30
<key >beginCaptures </key >
31
31
<dict >
32
32
<key >1 </key >
70
70
</dict >
71
71
</dict >
72
72
<key >match </key >
73
- <string >#.*$ </string >
73
+ <string >^\s* #.*$ </string >
74
74
<key >name </key >
75
75
<string >meta.comments </string >
76
76
</dict >
222
222
</dict >
223
223
</array >
224
224
</dict >
225
+ <key >comments_inline </key >
226
+ <dict >
227
+ <key >patterns </key >
228
+ <array >
229
+ <dict >
230
+ <key >captures </key >
231
+ <dict >
232
+ <key >0 </key >
233
+ <dict >
234
+ <key >name </key >
235
+ <string >comment.line.mcfunction </string >
236
+ </dict >
237
+ </dict >
238
+ <key >match </key >
239
+ <string >#.*$ </string >
240
+ <key >name </key >
241
+ <string >meta.comments </string >
242
+ </dict >
243
+ </array >
244
+ </dict >
225
245
<key >literals </key >
226
246
<dict >
227
247
<key >patterns </key >
799
819
</dict >
800
820
</dict >
801
821
<key >match </key >
802
- <string >[A-Za-z_\-\+]+ </string >
822
+ <string >[A-Za-z_]+[A-Za-z_ \-\+]* </string >
803
823
<key >name </key >
804
824
<string >meta.property_key </string >
805
825
</dict >
881
901
<key >include </key >
882
902
<string >#literals </string >
883
903
</dict >
904
+ <dict >
905
+ <key >include </key >
906
+ <string >#comments </string >
907
+ </dict >
884
908
<dict >
885
909
<key >include </key >
886
910
<string >#names </string >
887
911
</dict >
888
912
<dict >
889
913
<key >include </key >
890
- <string >#comments </string >
914
+ <string >#comments_inline </string >
891
915
</dict >
892
916
<dict >
893
917
<key >include </key >
Original file line number Diff line number Diff line change 17
17
{
18
18
"include" : " #literals"
19
19
},
20
+ {
21
+ "include" : " #comments"
22
+ },
20
23
{
21
24
"include" : " #names"
22
25
},
23
26
{
24
- "include" : " #comments "
27
+ "include" : " #comments_inline "
25
28
},
26
29
{
27
30
"include" : " #subcommands"
41
44
"patterns" : [
42
45
{
43
46
"applyEndPatternLast" : 1 ,
44
- "begin" : " ^\\ s*(#[>!])(.+)$" ,
47
+ "begin" : " ^\\ s*(#[>!# ])(.+)$" ,
45
48
"beginCaptures" : {
46
49
"1" : {
47
50
"name" : " comment.block.mcfunction"
63
66
}
64
67
]
65
68
},
69
+ {
70
+ "captures" : {
71
+ "0" : {
72
+ "name" : " comment.line.mcfunction"
73
+ }
74
+ },
75
+ "match" : " ^\\ s*#.*$" ,
76
+ "name" : " meta.comments"
77
+ }
78
+ ]
79
+ },
80
+ "comments_inline" : {
81
+ "patterns" : [
66
82
{
67
83
"captures" : {
68
84
"0" : {
You can’t perform that action at this time.
0 commit comments