mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
fixed numbers when one than one decimal
git-svn-id: http://svn.twig-project.org/trunk@33 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ class Twig_Lexer implements Twig_LexerInterface
|
||||
const POSITION_VAR = 2;
|
||||
|
||||
const REGEX_NAME = '/[A-Za-z_][A-Za-z0-9_]*/A';
|
||||
const REGEX_NUMBER = '/[0-9]+(?:\.[0-9])?/A';
|
||||
const REGEX_NUMBER = '/[0-9]+(?:\.[0-9]+)?/A';
|
||||
const REGEX_STRING = '/(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\')/Asm';
|
||||
const REGEX_OPERATOR = '/<=? | >=? | [!=]= | [(){}.,%*\/+~|-] | \[ | \] | \? | \:/Ax';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user