From 63407a662cdeea56216d589b9f82644dd04e1e8e Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Wed, 1 May 2013 14:08:05 +0200 Subject: [PATCH] allow <== and >== as alternative for <= and >= in scripts --- components/compiler/scanner.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index 38a9265a1e..a547e6ec5f 100644 --- a/components/compiler/scanner.cpp +++ b/components/compiler/scanner.cpp @@ -428,7 +428,12 @@ namespace Compiler if (get (c)) { if (c=='=') + { special = S_cmpLE; + + if (get (c) && c!='=') // <== is a allowed as an alternative to <= :( + putback (c); + } else { putback (c); @@ -443,7 +448,12 @@ namespace Compiler if (get (c)) { if (c=='=') + { special = S_cmpGE; + + if (get (c) && c!='=') // >== is a allowed as an alternative to >= :( + putback (c); + } else { putback (c);