From 6a566b9cf5aa38f5f0d4e03c98c84e3a86961e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 27 Nov 2016 21:09:44 +0100 Subject: sam: stricter command parsing Properly detect unbalanced curly braces and spurious output at the end of a group. --- vis-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index 79270f6..842c753 100644 --- a/vis-core.h +++ b/vis-core.h @@ -174,6 +174,7 @@ struct Vis { Mode *mode; /* currently active mode, used to search for keybindings */ Mode *mode_prev; /* previsouly active user mode */ bool initialized; /* whether UI and Lua integration has been initialized */ + int nesting_level; /* parsing state to hold keep track of { } nesting level */ volatile bool running; /* exit main loop once this becomes false */ int exit_status; /* exit status when terminating main loop */ volatile sig_atomic_t cancel_filter; /* abort external command/filter (SIGINT occured) */ -- cgit v1.2.3