1. cormullion
  2. pygments-main


Rob Simmons  committed 4b6b2a2

Couple dumb inconsistencies - didn't treat some of the keywords right, was marking symbolic ids different from other ids in a weird way.

  • Participants
  • Parent commits 351f8bf
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/functional.py

View file
  • Ignore whitespace
             (r'\s', Text),
             (r'false|true|\(\)|\[\]', Keyword.Pseudo),
             (r'\b(%s)\b' % '|'.join(corekeywords), Keyword.Reserved),
-            (r'\b(%s)\b' % '|'.join(sigkeywords), Keyword.Namespace),
+            (r'\b(%s)\b' % '|'.join(sigkeywords), Keyword.Reserved),
             (r'\b(%s)\b' % '|'.join(primitives), Keyword.Type),
             (r'\(\*', Comment.Multiline, 'comment'),
             (r'%s' % '|'.join(keyopts), Operator),
             # i.e. any numeral not starting with 0
             (r'#\s*[1-9][0-9]*', Name.Label),
             (r'#\s*(%s)' % alphanums, Name.Label),
-            (r'#\s*(%s)' % symbols, Name),
+            (r'#\s+(%s)' % symbols, Name.Label),
             # An identifier is either alphanumeric: any sequence of letters,
             # digits, primes, and underbars starting with a letter or prime...