Skip to content

Commit

Permalink
Fixed operator highlighting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipStryk committed Mar 19, 2016
1 parent 085a720 commit b495aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Latte.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ patterns:
- name: keyword.control.pair.latte
match: (?<=\{)/?(block|cache|capture|define|first|foreach|form|for|ifset|ifCurrent|if|label|last|l|sep|snippet|syntax|while)\s*
- name: keyword.operator.latte
match: !|/|===|as|and|AND|And|&&|or|OR|Or|\|\||\+\+|\-\-|==|<=>|>=|<=
match: (?<=\s)(\!|/|===|as|and|AND|And|&&|or|OR|Or|\|\||\+\+|\-\-|==|<=>|>=|<=)\s?
- name: keyword.operator.latte
match: ->
- match: .*?(\|)(\w+)(?:\:([^\|\}]+))*
Expand Down
2 changes: 1 addition & 1 deletion Latte.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</dict>
<dict>
<key>match</key>
<string>\!|/|===|as|and|AND|And|&amp;&amp;|or|OR|Or|\|\||\+\+|\-\-|==|&lt;=&gt;|&gt;=|&lt;=</string>
<string>(?&lt;=\s)(\!|/|===|as|and|AND|And|&amp;&amp;|or|OR|Or|\|\||\+\+|\-\-|==|&lt;=&gt;|&gt;=|&lt;=)\s?</string>
<key>name</key>
<string>keyword.operator.latte</string>
</dict>
Expand Down

0 comments on commit b495aeb

Please sign in to comment.