Commits

Georg Brandl  committed c55fb79

Robot Framework: fix test suite failre

  • Participants
  • Parent commits 5795eee

Comments (0)

Files changed (2)

File pygments/lexers/_robotframeworklexer.py

     filenames = ['*.txt']
     mimetypes = ['text/x-robotframework']
 
-    def __init__(self):
-        Lexer.__init__(self, tabsize=2, encoding='UTF-8')
+    def __init__(self, **options):
+        options['tabsize'] = 2
+        options['encoding'] = 'UTF-8'
+        Lexer.__init__(self, **options)
 
     def get_tokens_unprocessed(self, text):
         row_tokenizer = RowTokenizer()

File tests/test_basic_api.py

             'PythonConsoleLexer', 'RConsoleLexer', 'RubyConsoleLexer',
             'SqliteConsoleLexer', 'MatlabSessionLexer', 'ErlangShellLexer',
             'BashSessionLexer', 'LiterateHaskellLexer', 'PostgresConsoleLexer',
-            'ElixirConsoleLexer', 'JuliaConsoleLexer'):
+            'ElixirConsoleLexer', 'JuliaConsoleLexer', 'RobotFrameworkLexer'):
             inst = cls(ensurenl=False)
             ensure(inst.get_tokens('a\nb'), 'a\nb')
             inst = cls(ensurenl=False, stripall=True)