Skip to content

Commit

Permalink
Merge pull request #16 from kerma/master
Browse files Browse the repository at this point in the history
Add support for double slash comments
  • Loading branch information
alexlouden authored Jan 11, 2017
2 parents 82ee13f + d64fd16 commit 3c56350
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Comments.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<key>value</key>
<string>*/</string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_START_3</string>
<key>value</key>
<string>// </string>
</dict>
</array>
</dict>
<key>uuid</key>
Expand Down
2 changes: 1 addition & 1 deletion Terraform.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ uuid: 9060ca81-906d-4f19-a91a-159f4eb119d6
patterns:
- comment: Comments
name: comment.line.number-sign.terraform
begin: '#'
begin: '#|//'
end: $\n?
captures:
'0': {name: punctuation.definition.comment.terraform}
Expand Down
2 changes: 1 addition & 1 deletion Terraform.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<array>
<dict>
<key>begin</key>
<string>#</string>
<string>#|//</string>
<key>captures</key>
<dict>
<key>0</key>
Expand Down

0 comments on commit 3c56350

Please sign in to comment.