From 95dfb078160832560addd7ed065226459df87514 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sat, 15 Nov 2014 09:53:08 +0100 Subject: [PATCH] make [ a whitespace character in scripts (Fixes #2126) --- components/compiler/scanner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index e73477ee7..16d54ff51 100644 --- a/components/compiler/scanner.cpp +++ b/components/compiler/scanner.cpp @@ -512,7 +512,8 @@ namespace Compiler bool Scanner::isWhitespace (char c) { - return c==' ' || c=='\t'; + return c==' ' || c=='\t' + || c=='['; ///< \todo disable this when doing more strict compiling } // constructor