Skip to content

Commit 26c20f5

Browse files
committed
Nested multiline comment
1 parent 291053c commit 26c20f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ReScript.sublime-syntax

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ contexts:
3131
scope: punctuation.definition.comment.begin
3232
push:
3333
- meta_scope: comment.block
34+
- include: commentBlock
3435
- match: \*/
3536
scope: punctuation.definition.comment.end
3637
pop: true

syntax_test.res

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
/* hello
1010
// <- source.res comment.block punctuation.definition.comment.begin
11+
/* nested
12+
// ^^ comment.block comment.block punctuation.definition.comment.begin
13+
bla
14+
*/
15+
// ^^ comment.block comment.block punctuation.definition.comment.end
1116
world */
1217
//^ source.res comment.block
1318
// ^ source.res comment.block punctuation.definition.comment.end

0 commit comments

Comments
 (0)