From 4a76e2a13966fb2570d604a63a5cbb787b5de291 Mon Sep 17 00:00:00 2001 From: Marrub Date: Thu, 8 Nov 2018 03:53:13 -0500 Subject: [PATCH] fix comments in states and quoted states --- syntax/zscript.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/zscript.vim b/syntax/zscript.vim index 462b83c..b73fd79 100644 --- a/syntax/zscript.vim +++ b/syntax/zscript.vim @@ -56,12 +56,12 @@ sy match zscStateLabel /\h\w*:/ contained sy keyword zscStateType goto loop wait stop fail contained sy keyword zscStateParam bright canraise fast light nodelay offset slow contained -sy match zscStateSta /\S\{4}\s\+\S\+\s\+\(\d\+\|random(\s*\d\+\s*,\s*\d\+\s*)\)\(\s\+bright\|\s\+canraise\|\s\+fast\|\s\+nodelay\|\s\+slow\|\s\+light\s*(\s*"[^"]*"\s*)\|\s\+offset\s*(\s*\(\d\|-\|+\)\+\s*,\s*\(\d\|-\|+\)\+\s*)\)*/ skipwhite skipempty contained contains=zscStateParam,zscStateNum nextgroup=zscStateBlk,zscStateFcn +sy match zscStateSta /\S\{4,6}\s\+\S\+\s\+\(\d\+\|random(\s*\d\+\s*,\s*\d\+\s*)\)\(\s\+bright\|\s\+canraise\|\s\+fast\|\s\+nodelay\|\s\+slow\|\s\+light\s*(\s*"[^"]*"\s*)\|\s\+offset\s*(\s*\(\d\|-\|+\)\+\s*,\s*\(\d\|-\|+\)\+\s*)\)*/ skipwhite skipempty contained contains=zscStateParam,zscStateNum nextgroup=zscStateBlk,zscStateFcn sy match zscStateFcn /\w\+/ contained contains=@ZscCode nextgroup=zscStatePrn sy region zscStatePrn transparent fold start=+(+ end=+)+ contained contains=@ZscCode,zscStatePrn sy region zscStateBlk transparent fold start=+{+ end=+}+ contained contains=@ZscCode,zscStateBlk -sy cluster ZscStates contains=zscStateSta,zscStateType,zscStateLabel +sy cluster ZscStates contains=zscStateSta,zscStateType,zscStateLabel,zscComment " Actor Default Definitions --------------------------------------------------|