Commits

Henning Schröder  committed 346dc64

fix for keyword

  • Participants
  • Parent commits 61b6eef

Comments (0)

Files changed (2)

File create_python_hl.py

          ("hexnumber", "(0x)([0-9a-fA-F])+?",),
          ("number", "\d+(\.\d*)?",),
          ("keyword", python_keywords, "(^|[\b\W])", "[\b\W]"),
-         ("builtin", python_builtins, "([^\.]|^)", "[\b\W]"),
+         ("builtin", python_builtins, "(^|[^\.\w])", "[\b\W]"),
          ("ident", "[A-Za-z_][A-Za-z_0-9]*",)
       ]
   },
                       'vars',
                       'xrange',
                       'zip'],
-                     '([^\\.]|^)',
+                     '(^|[^\\.\\w])',
                      '[\x08\\W]'),
                     ('ident', '[A-Za-z_][A-Za-z_0-9]*')]}}