From 97ef70900314cbea80887e4a5a28cc5ae1823ede Mon Sep 17 00:00:00 2001 From: ketmar Date: Fri, 19 Aug 2011 15:48:56 +0300 Subject: [PATCH] '[' and ']' are delimiters now --- src/scan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scan.c b/src/scan.c index 1ecec1e..c913354 100644 --- a/src/scan.c +++ b/src/scan.c @@ -237,7 +237,7 @@ int yylex (void) { } /* bad luck, try it another way */ #else - if (c == '{' || c == '}' || c == ';') { + if (c == '{' || c == '}' || c == ';' || c == '[' || c == ']') { *b++ = c; goto lexdone; } @@ -256,6 +256,9 @@ int yylex (void) { } else if (!inquote && (c == '{' || c == '}' || c == ';')) { /* k8: allow specials to work as delimiters */ break; + } else if (!inquote && !notkeyword && (c == '[' || c == ']')) { + /* k8: allow specials to work as delimiters */ + break; } else if (c != '\\') { /* normal char */ *b++ = c; -- 2.11.4.GIT