From b495aeba9ba1719f2a5ca94ce74b68d0169cf3ef Mon Sep 17 00:00:00 2001 From: Filip Stryk Date: Sat, 19 Mar 2016 13:01:11 +0100 Subject: [PATCH] Fixed operator highlighting error. --- Latte.YAML-tmLanguage | 2 +- Latte.tmLanguage | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Latte.YAML-tmLanguage b/Latte.YAML-tmLanguage index 396ed2f..1c32cea 100644 --- a/Latte.YAML-tmLanguage +++ b/Latte.YAML-tmLanguage @@ -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+)(?:\:([^\|\}]+))* diff --git a/Latte.tmLanguage b/Latte.tmLanguage index d33d984..5ab5e72 100644 --- a/Latte.tmLanguage +++ b/Latte.tmLanguage @@ -81,7 +81,7 @@ match - \!|/|===|as|and|AND|And|&&|or|OR|Or|\|\||\+\+|\-\-|==|<=>|>=|<= + (?<=\s)(\!|/|===|as|and|AND|And|&&|or|OR|Or|\|\||\+\+|\-\-|==|<=>|>=|<=)\s? name keyword.operator.latte