Fixed lexer issue with non word characters

This commit is contained in:
Frederic Guillot
2016-07-01 09:47:10 -04:00
parent 4b94714b3d
commit a089cd72de
3 changed files with 46 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ class Lexer
'/^([<=>]{1,2}\w+)/u' => 'T_STRING',
'/^([<=>]{1,2}".+")/' => 'T_STRING',
'/^("(.+)")/' => 'T_STRING',
'/^(\w+)/u' => 'T_STRING',
'/^(\S+)/u' => 'T_STRING',
'/^(#\d+)/' => 'T_STRING',
);