diff options
Diffstat (limited to 'src/sp_var_parser.c')
| -rw-r--r-- | src/sp_var_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_var_parser.c b/src/sp_var_parser.c index c7562f3..e674505 100644 --- a/src/sp_var_parser.c +++ b/src/sp_var_parser.c | |||
| @@ -59,7 +59,7 @@ static int create_var(sp_tree *tree, const char *restrict value, | |||
| 59 | var_node->next = NULL; | 59 | var_node->next = NULL; |
| 60 | var_node->idx = NULL; | 60 | var_node->idx = NULL; |
| 61 | var_node->type = _type; | 61 | var_node->type = _type; |
| 62 | /* We consider `$` as part of the variable name, to tell them appart from | 62 | /* We consider `$` as part of the variable name, to tell them apart from |
| 63 | * php's constant | 63 | * php's constant |
| 64 | */ | 64 | */ |
| 65 | if (value && value[0] == VARIABLE_TOKEN && _type == CONSTANT) { | 65 | if (value && value[0] == VARIABLE_TOKEN && _type == CONSTANT) { |
