aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-27 21:09:44 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-27 21:09:44 +0100
commit6a566b9cf5aa38f5f0d4e03c98c84e3a86961e9c (patch)
tree06ab86bc8a9944c477f2c82d523a4130e20f79b5 /vis-core.h
parentce66ec2833143cc14eb6cffc6f16b736df9d1f31 (diff)
downloadvis-6a566b9cf5aa38f5f0d4e03c98c84e3a86961e9c.tar.gz
vis-6a566b9cf5aa38f5f0d4e03c98c84e3a86961e9c.tar.xz
sam: stricter command parsing
Properly detect unbalanced curly braces and spurious output at the end of a group.
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h1
1 files changed, 1 insertions, 0 deletions
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) */