aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_constants.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-13 10:08:04 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-13 10:10:49 -0800
commit1fbf63381782b0badead61d1576ad6a1e29fc3ea (patch)
tree778b1397a565f6cc214ae62ed6c15921d77d63b7 /parse_constants.h
parentf733dc5eae81c092f74522f4e5cc7b3d27f2b943 (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.h4
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 */