refs Fixing float regex.
@@ -1389,9 +1389,7 @@ pg_terminals = \
('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'''("[^"\\]*(?:\\.[^"\\]*)*")'''),
