Skip to content

Commit b96cd6f

Browse files
author
corbanmailloux
committed
Merge branch 'mdw7326-master'
2 parents db5d4bb + c50ae28 commit b96cd6f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Syntaxes/Promela.YAML-tmLanguage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ patterns:
9292
match: '\b(typedef|c_state)\b'
9393

9494

95-
# Strangely, this is not part of the spec for promela, but it is in C.
96-
#- comment: Line comment
97-
# name: comment.double-slash
98-
# match: '\/\/.*$'
95+
# This is not strictly a part of the Promela or C spec, but everyone does it and the compiler handles it.
96+
- comment: Line comment
97+
name: comment.double-slash
98+
match: '\/\/.*$'
9999

100100
...

Syntaxes/Promela.tmLanguage

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@
171171
<key>name</key>
172172
<string>storage.modifier</string>
173173
</dict>
174+
<dict>
175+
<key>comment</key>
176+
<string>Line comment</string>
177+
<key>match</key>
178+
<string>\/\/.*$</string>
179+
<key>name</key>
180+
<string>comment.double-slash</string>
181+
</dict>
174182
</array>
175183
<key>scopeName</key>
176184
<string>source.promela</string>

0 commit comments

Comments
 (0)