File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ contexts:
152152 set : maybe-line-doc-comment
153153
154154 maybe-line-doc-comment :
155- - match : ^\s*(?=--(?!\[\[))
155+ - match : ^\s*(?=--(?!\[(=*) \[))
156156 set :
157157 - match : -{2,}
158158 scope : punctuation.definition.comment.lua
Original file line number Diff line number Diff line change 8787-- no more doc comment after empty line
8888-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - comment.line.documentation
8989
90+ --- Another doc comment
91+ --[=[ block comments after should work with an equals
92+ -- ^^^^^ comment.block punctuation.definition.comment.begin
93+ commented
94+ -- ^^^^^^^^^ comment.block
95+ ]=]
96+ -- ^^^ comment.block punctuation.definition.comment.end
97+
9098---- -------------
9199-- ^^^^^^^^^^^^^^^ comment.line.documentation.lua punctuation.definition.comment.lua
92100-- This will also do.
You can’t perform that action at this time.
0 commit comments