aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-28 17:09:08 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-28 17:09:08 -0700
commit7248b2213d53b34747b89594f563e1c32dd9a835 (patch)
treea4b7bc76502d5bf82985331343e1a3b4bbab2fbb /parse_tree.h
parent74b28f0a8632b91f99d73f0f613d04a9d26d22e1 (diff)
Fix switch statement syntax highlighting so that the arguemnt to switch
is colored as a parameter, not a command. Promote this from a tok_string to a symbol_argument in the grammar too.
Diffstat (limited to 'parse_tree.h')
-rw-r--r--parse_tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_tree.h b/parse_tree.h
index c0e24a5c..0e1a0b2f 100644
--- a/parse_tree.h
+++ b/parse_tree.h
@@ -220,7 +220,7 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse
else_continuation = if_clause else_clause |
<TOK_END> job_list
- switch_statement = SWITCH <TOK_STRING> <TOK_END> case_item_list end_command arguments_or_redirections_list
+ switch_statement = SWITCH argument <TOK_END> case_item_list end_command arguments_or_redirections_list
case_item_list = <empty> |
case_item case_item_list |
<TOK_END> case_item_list