aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_execution.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_execution.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_execution.cpp')
-rw-r--r--parse_execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_execution.cpp b/parse_execution.cpp
index 46df733c..1da9858f 100644
--- a/parse_execution.cpp
+++ b/parse_execution.cpp
@@ -509,7 +509,7 @@ parse_execution_result_t parse_execution_context_t::run_switch_statement(const p
parse_execution_result_t result = parse_execution_success;
/* Get the switch variable */
- const parse_node_t &switch_value_node = *get_child(statement, 1, parse_token_type_string);
+ const parse_node_t &switch_value_node = *get_child(statement, 1, symbol_argument);
const wcstring switch_value = get_source(switch_value_node);
/* Expand it. We need to offset any errors by the position of the string */