diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-28 17:09:08 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-28 17:09:08 -0700 |
commit | 7248b2213d53b34747b89594f563e1c32dd9a835 (patch) | |
tree | a4b7bc76502d5bf82985331343e1a3b4bbab2fbb /parse_execution.cpp | |
parent | 74b28f0a8632b91f99d73f0f613d04a9d26d22e1 (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.cpp | 2 |
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 */ |