Skip to content

Commit 0db9678

Browse files
committed
(GH-169) Fix colourisation of comments in class params
Previously the sytnax highlighter would not highlight comments in the class parameters section correctly. This was compounded further if an apostrophe was used in the comments, the highlighter would then mark the remainder of the document as a string. This commit adds the line_comment pattern to be available when inside a class (or node) header definition. The header is everything from the word `class` to the first brace `{`.
1 parent cdc05d4 commit 0db9678

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/syntaxes/puppet.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
<key>include</key>
6969
<string>#numbers</string>
7070
</dict>
71+
<dict>
72+
<key>include</key>
73+
<string>#line_comment</string>
74+
</dict>
7175
<dict>
7276
<key>begin</key>
7377
<string>\b(inherits)\b\s+</string>

0 commit comments

Comments
 (0)