diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-27 21:09:44 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-27 21:09:44 +0100 |
| commit | 6a566b9cf5aa38f5f0d4e03c98c84e3a86961e9c (patch) | |
| tree | 06ab86bc8a9944c477f2c82d523a4130e20f79b5 /vis-core.h | |
| parent | ce66ec2833143cc14eb6cffc6f16b736df9d1f31 (diff) | |
| download | vis-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) */ |
