Skip to content

Commit fc10487

Browse files
Fix (D): multiline comments (#1173)
My editor also apparently removed an extraneous space.
1 parent aec4bfc commit fc10487

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lexers/embedded/d.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<rule pattern="//.*?\n">
1616
<token type="CommentSingle"/>
1717
</rule>
18-
<rule pattern="/\*.*?\*/">
18+
<rule pattern="/\*[\s\S]*?\*/">
1919
<token type="CommentMultiline"/>
2020
</rule>
21-
<rule pattern="/\+.*?\+/">
21+
<rule pattern="/\+[\s\S]*?\+/">
2222
<token type="CommentMultiline"/>
2323
</rule>
2424
<rule pattern="(asm|assert|body|break|case|cast|catch|continue|default|debug|delete|do|else|finally|for|foreach|foreach_reverse|goto|if|in|invariant|is|macro|mixin|new|out|pragma|return|super|switch|this|throw|try|typeid|typeof|version|while|with)\b">
@@ -130,4 +130,4 @@
130130
</rule>
131131
</state>
132132
</rules>
133-
</lexer>
133+
</lexer>

0 commit comments

Comments
 (0)