cs2lint

CubeScript linter for Cube2 engine
git clone git://deadbeef.fr/cs2lint.git
Log | Files | Refs | README | LICENSE

commit 947309b34e287cee3370089e4815d2c9440cd395
parent f49c227cb6efa830d6f5e7369ad51c972b2c71e2
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 19 Jul 2020 19:05:00 +0200

exclude ' ' from wordch

Diffstat:
Mcubescript.atg | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cubescript.atg b/cubescript.atg @@ -4,16 +4,16 @@ CHARACTERS cr = '\r'. lf = '\n'. -nonwhite = '\u0020'..'\u007e'. +printable = '\u0020'..'\u007e'. eol = ';' + cr + lf. blocks = "()[]". strch = ANY - cr - lf - '"'. -wordch = nonwhite - '"' - blocks - eol - ' '. +wordch = printable - '"' - blocks - eol - ' '. TOKENS -string = '"' { strch | '^' nonwhite } '"'. +string = '"' { strch | '^' printable } '"'. word = wordch { wordch }. newline = eol.