diff options
author | 2014-02-13 10:08:04 -0800 | |
---|---|---|
committer | 2014-02-13 10:10:49 -0800 | |
commit | 1fbf63381782b0badead61d1576ad6a1e29fc3ea (patch) | |
tree | 778b1397a565f6cc214ae62ed6c15921d77d63b7 /parse_constants.h | |
parent | f733dc5eae81c092f74522f4e5cc7b3d27f2b943 (diff) |
Reimplement exec parsing. Instead of special-casing exec as a command,
promote it to a decoration (like 'command' or 'builtin'). This makes tab
completion and syntax highlighting treat exec's first argument as a
command and is otherwise a nice simplification. Fixes #1300
Diffstat (limited to 'parse_constants.h')
-rw-r--r-- | parse_constants.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parse_constants.h b/parse_constants.h index 85eabaf9..32115c01 100644 --- a/parse_constants.h +++ b/parse_constants.h @@ -90,6 +90,7 @@ enum parse_keyword_t parse_keyword_not, parse_keyword_command, parse_keyword_builtin, + parse_keyword_exec, LAST_KEYWORD = parse_keyword_builtin }; @@ -99,7 +100,8 @@ enum parse_statement_decoration_t { parse_statement_decoration_none, parse_statement_decoration_command, - parse_statement_decoration_builtin + parse_statement_decoration_builtin, + parse_statement_decoration_exec }; /* Parse error code list */ |