Skip to content

Commit

Permalink
Use separate block-comment rule, allowing for nesting
Browse files Browse the repository at this point in the history
This allows for nested comments:

`/* Lorem ipsum dolor /* sit amet */ consectetur adipisicing elit */`

Also remove an effectively empty rule that could cause an infinite recursion loop.
  • Loading branch information
infininight committed Nov 17, 2014
1 parent f5278da commit 40f14ec
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions Syntaxes/Scala.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@
<key>include</key>
<string>#block-comments</string>
</dict>
<dict>
<key>match</key>
<string>(?x)
(?! /\*)
(?! \*/)
</string>
</dict>
</array>
</dict>
<key>char-literal</key>
Expand Down Expand Up @@ -124,10 +117,6 @@
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>include</key>
<string>#block-comments</string>
</dict>
<dict>
<key>include</key>
<string>#strings</string>
Expand Down Expand Up @@ -290,20 +279,8 @@
</array>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.scala</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.scala</string>
<key>include</key>
<string>#block-comments</string>
</dict>
<dict>
<key>captures</key>
Expand Down

0 comments on commit 40f14ec

Please sign in to comment.