summaryrefslogtreecommitdiff
path: root/pygments/formatters/latex.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/latex.py')
-rw-r--r--pygments/formatters/latex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py
index 352684b0..dae9325a 100644
--- a/pygments/formatters/latex.py
+++ b/pygments/formatters/latex.py
@@ -436,6 +436,7 @@ class LatexEmbeddedLexer(Lexer):
def get_tokens_unprocessed(self, text):
buf = ''
+ idx = 0
for i, t, v in self.lang.get_tokens_unprocessed(text):
if t in Token.Comment or t in Token.String:
if buf: