Commits

Georg Brandl committed 40dd25b

Properly recognize numbers in Smalltalk lexer.

Comments (0)

Files changed (2)

 
 - Add small enhancements to the C lexer (#467) and Bash lexer (#469).
 
-- Small fixes for the Tcl, Debian control file, Nginx config lexers.
+- Small fixes for the Tcl, Debian control file, Nginx config,
+  Smalltalk lexers.
 
 - Gherkin lexer: Fixed single apostrophe bug and added new i18n keywords.
 

pygments/lexers/other.py

         ],
         '_parenth_helper' : [
             include('whitespaces'),
+            (r'(\d+r)?-?\d+(\.\d+)?(e-?\d+)?', Number),
             (r'[-+*/\\~<>=|&#!?,@%\w+:]+', String.Symbol),
             # literals
             (r'\'[^\']*\'', String),
             (r'\$.', String.Char),
-            (r'(\d+r)?-?\d+(\.\d+)?(e-?\d+)?', Number),
             (r'#*\(', String.Symbol, 'inner_parenth'),
         ],
         'parenth' : [