summaryrefslogtreecommitdiff
path: root/pygments/lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r--pygments/lexer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py
index 1b55c5d0..cd9671fd 100644
--- a/pygments/lexer.py
+++ b/pygments/lexer.py
@@ -74,6 +74,7 @@ class Lexer(object):
self.stripnl = get_bool_opt(options, 'stripnl', True)
self.stripall = get_bool_opt(options, 'stripall', False)
self.tabsize = get_int_opt(options, 'tabsize', 0)
+ self.encoding = options.get('encoding', '')
def __repr__(self):
if self.options: