summaryrefslogtreecommitdiff
path: root/lexer/smarty_internal_templatelexer.plex
diff options
context:
space:
mode:
authorUwe Tews <uwe.tews@googlemail.com>2015-05-24 18:37:53 +0200
committerUwe Tews <uwe.tews@googlemail.com>2015-05-24 18:37:53 +0200
commit0434f34bdddef36bdfca3bc1f58a5ef87d94669e (patch)
treed5f04f2402b76df3188a7e847f70fd1c8063e9c0 /lexer/smarty_internal_templatelexer.plex
parentc9cd39f36f3921a186e9f140733edc22f8e4201f (diff)
downloadsmarty-0434f34bdddef36bdfca3bc1f58a5ef87d94669e.tar.gz
smarty-0434f34bdddef36bdfca3bc1f58a5ef87d94669e.tar.bz2
smarty-0434f34bdddef36bdfca3bc1f58a5ef87d94669e.zip
- bugfix if condition string 'neq' broken due to a typo https://github.com/smarty-php/smarty/issues/42
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
-rw-r--r--lexer/smarty_internal_templatelexer.plex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex
index 56b7b8db..ef5a8dd0 100644
--- a/lexer/smarty_internal_templatelexer.plex
+++ b/lexer/smarty_internal_templatelexer.plex
@@ -293,7 +293,7 @@ class Smarty_Internal_Templatelexer
literal = ~literal~
strip = ~strip~
lop = ~\s*(([!=][=]{1,2})|([<][=>]?)|([>][=]?)|[&|]{2})\s*~
- tlop = ~\s+(eq|ne|neg|gt|ge|gte|lt|le|lte|mod|and|or|xor|(is\s+(not\s+)?(odd|even|div)\s+by))\s+~
+ tlop = ~\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor|(is\s+(not\s+)?(odd|even|div)\s+by))\s+~
scond = ~\s+is\s+(not\s+)?(odd|even)~
isin = ~\s+is\s+in\s+~
as = ~\s+as\s+~