Skip to content

Commit 7288db8

Browse files
committed
fix: comments w/o a space
1 parent 018e297 commit 7288db8

File tree

4 files changed

+329
-290
lines changed

4 files changed

+329
-290
lines changed

mcfunction.tmLanguage.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
{
2424
"include": "#names"
2525
},
26+
{
27+
"include": "#comments_inline"
28+
},
2629
{
2730
"include": "#subcommands"
2831
},
@@ -41,7 +44,7 @@
4144
"patterns": [
4245
{
4346
"applyEndPatternLast": 1,
44-
"begin": "^\\s*(#[>!])(.+)$",
47+
"begin": "^\\s*(#[>!#])(.+)$",
4548
"beginCaptures": {
4649
"1": {
4750
"name": "comment.block.mcfunction"
@@ -63,6 +66,19 @@
6366
}
6467
]
6568
},
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": [
6682
{
6783
"captures": {
6884
"0": {

0 commit comments

Comments
 (0)