aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_productions.cpp
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_productions.cpp
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_productions.cpp')
-rw-r--r--parse_productions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_productions.cpp b/parse_productions.cpp
index 0fd75435..221316b3 100644
--- a/parse_productions.cpp
+++ b/parse_productions.cpp
@@ -237,7 +237,7 @@ RESOLVE(else_continuation)
PRODUCTIONS(switch_statement) =
{
- { KEYWORD(parse_keyword_switch), parse_token_type_string, parse_token_type_end, symbol_case_item_list, symbol_end_command, symbol_arguments_or_redirections_list}
+ { KEYWORD(parse_keyword_switch), symbol_argument, parse_token_type_end, symbol_case_item_list, symbol_end_command, symbol_arguments_or_redirections_list}
};
RESOLVE_ONLY(switch_statement)