From 640ddd6565f994f5573077ea36cb8a8243786cd8 Mon Sep 17 00:00:00 2001 From: phalcon Date: Mon, 4 Aug 2014 03:39:29 -0500 Subject: [PATCH] Fixing tokenizer --- ext/php_test.h | 2 +- parser/scanner.re | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/php_test.h b/ext/php_test.h index 9edd4ba788..03bae58506 100644 --- a/ext/php_test.h +++ b/ext/php_test.h @@ -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
Test Extension" typedef struct _zephir_struct_test { diff --git a/parser/scanner.re b/parser/scanner.re index b2e83534d2..961f6d86c3 100644 --- a/parser/scanner.re +++ b/parser/scanner.re @@ -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; }