allow negative numbers, rather than operator+number
--HG-- branch : pmacs2
This commit is contained in:
parent
0ca66531c6
commit
bb31ef32d9
|
@ -147,7 +147,7 @@ class PerlGrammar(Grammar):
|
||||||
#PatternRule('perl.cast', r'[\$\@\%\&\*](?= *{)'),
|
#PatternRule('perl.cast', r'[\$\@\%\&\*](?= *{)'),
|
||||||
|
|
||||||
PatternRule('perl.number', r'0[xX][0-9A-Fa-f]+'),
|
PatternRule('perl.number', r'0[xX][0-9A-Fa-f]+'),
|
||||||
PatternRule('perl.number', r'0?\.[0-9]+|[0-9]+(?:\.[0-9]+)?'),
|
PatternRule('perl.number', r'-?0?\.[0-9]+|-?[0-9]+(?:\.[0-9]+)?'),
|
||||||
|
|
||||||
# built-in scalars
|
# built-in scalars
|
||||||
PatternRule('perl.array', r'\$' + word2 + '(?= *\[)'),
|
PatternRule('perl.array', r'\$' + word2 + '(?= *\[)'),
|
||||||
|
|
Loading…
Reference in New Issue