Skip to content

Commit

Permalink
Fixing tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
phalcon committed Aug 4, 2014
1 parent 7594745 commit 640ddd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/php_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define PHP_TEST_VERSION "1.0.0"
#define PHP_TEST_EXTNAME "test"
#define PHP_TEST_AUTHOR "Zephir Team and contributors"
#define PHP_TEST_ZEPVERSION "0.4.3a"
#define PHP_TEST_ZEPVERSION "0.4.4a"
#define PHP_TEST_DESCRIPTION "Description test for<br/>Test Extension"

typedef struct _zephir_struct_test {
Expand Down
2 changes: 1 addition & 1 deletion parser/scanner.re
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
}
}

if (!memcmp(token->value, "_", sizeof("_")-1)) {
if (token->len == 1 && !memcmp(token->value, "_", sizeof("_")-1)) {
token->opcode = XX_T_IDENTIFIER;
return 0;
}
Expand Down

0 comments on commit 640ddd6

Please sign in to comment.