Skip to content

Commit

Permalink
refs #57 Fixing float regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Sep 7, 2018
1 parent abde8c8 commit a6b4436
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions parglare/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,9 +1389,7 @@ def __deepcopy__(self, memo):
('RegExTerm', r'''\/((\\/)|[^/])*\/'''),
('IntConst', r'\d+'),
('FloatConst',
r'''[+-]?(\d+(\.\d*)?|\.\d+)
([eE][+-]?\d+)?
(?<=[\w\.])(?![\w\.])'''),
r'''[+-]?(\d+\.\d*|\.\d+)([eE][+-]?\d+)?(?<=[\w\.])(?![\w\.])'''), # noqa
('BoolConst', r'true|false'),
('StrConst', r'''(?s)('[^'\\]*(?:\\.[^'\\]*)*')|'''
r'''("[^"\\]*(?:\\.[^"\\]*)*")'''),
Expand Down

0 comments on commit a6b4436

Please sign in to comment.