Skip to content

Commit

Permalink
Fix negative lookbehind for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Altomare committed Oct 30, 2015
1 parent 2121b94 commit 0187d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion makefile-plus.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ patterns:

- comment: Comments
name: comment
match: (?<\\)\#.*$
match: (?<!\\)\#.*$

- comment: Conditions
name: keyword
Expand Down
2 changes: 1 addition & 1 deletion makefile-plus.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>comment</key>
<string>Comments</string>
<key>match</key>
<string>(?&lt;\\)\#.*$</string>
<string>(?&lt;!\\)\#.*$</string>
<key>name</key>
<string>comment</string>
</dict>
Expand Down

0 comments on commit 0187d59

Please sign in to comment.