From 6334498f3d607f3693c0834dcb7867823e60e0a1 Mon Sep 17 00:00:00 2001 From: moculus Date: Tue, 5 Jun 2007 15:23:56 +0000 Subject: [PATCH] some fixes for python --HG-- branch : pmacs2 --- lex2_python.py | 14 +++++++------- mode2.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lex2_python.py b/lex2_python.py index 074275f..63486fa 100755 --- a/lex2_python.py +++ b/lex2_python.py @@ -10,10 +10,10 @@ class StringGrammar(Grammar): name=r'escaped', pattern=r'\\.', ), - PatternRule( - name=r'format', - pattern=r'%(?:\([a-zA-Z_]+\))?[-# +]*(?:[0-9]+|\*)?\.?(?:[0-9]+|\*)?[hlL]?[a-zA-Z%]', - ), + #PatternRule( + # name=r'format', + # pattern=r'%(?:\([a-zA-Z_]+\))?[-# +]*(?:[0-9]+|\*)?\.?(?:[0-9]+|\*)?[hlL]?[a-zA-Z%]', + #), ] class PythonGrammar(Grammar): @@ -72,15 +72,15 @@ class PythonGrammar(Grammar): ), PatternRule( name=r"integer", - pattern=r"(?:0|[1-9][0-9]*|0[0-7]+|0[xX][0-9a-fA-F]+)[lL]?", + pattern=r"(?