cs2lint

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

commit d8f787712270427ef36002ab0afb82817cecd8fa
parent 4d7f5f8d6a3e82ab7674aad28ef3fd9121e9a740
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 19 Jul 2020 02:26:27 +0200

rename statement_end to newline

Diffstat:
Mcubescript.atg | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/cubescript.atg b/cubescript.atg @@ -13,9 +13,9 @@ wordch = nonwhite - '"' - special - eol - ' '. TOKENS -string = '"' { strch | '^' nonwhite } ['"']. -word = ( wordch { wordch } ). -statement_end = eol. +string = '"' { strch | '^' nonwhite } ['"']. +word = ( wordch { wordch } ). +newline = eol. COMMENTS FROM "//" TO cr COMMENTS FROM "//" TO lf @@ -27,6 +27,7 @@ IGNORE '\t' + ' ' PRODUCTIONS CubeScript2 = + statement { statement } @@ -40,7 +41,7 @@ statement = | curly_block | round_block } - statement_end + newline . squar_block =