cs2lint

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

commit 034661a3b86b74f4ee2718d389775f4f8d155208
parent 44cdf5fb6a57e9727a28ab3c8e338cae5cf06ccc
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 19 Jul 2020 01:38:15 +0200

prepare code insertions

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

diff --git a/cubescript.atg b/cubescript.atg @@ -26,10 +26,44 @@ IGNORE '\t' + ' ' PRODUCTIONS -CubeScript2 = { statement }. -statement = { word | string | squar_block | curly_block | round_block } statement_end . -squar_block = '[' { statement } ']' . -curly_block = '{' { statement } '}' . -round_block = '(' { statement } ')' . +CubeScript2 = + { + statement + } + . + +statement = + { + word + | string + | squar_block + | curly_block + | round_block + } statement_end + . + +squar_block = + '[' + { + statement + } + ']' + . + +curly_block = + '{' + { + statement + } + '}' + . + +round_block = + '(' + { + statement + } + ')' + . END CubeScript2 .