Commits

rreilink committed 81dbad8

fixed bug in ExtendedRegexLexer

  • Participants
  • Parent commits 8731624

Comments (0)

Files changed (1)

pygments/lexer.py

                         break
                     if text[ctx.pos] == '\n':
                         # at EOL, reset state to "root"
-                        ctx.pos += 1
                         ctx.stack = ['root']
                         statetokens = tokendefs['root']
                         yield ctx.pos, Text, u'\n'
+                        ctx.pos += 1
                         continue
                     yield ctx.pos, Error, text[ctx.pos]
                     ctx.pos += 1