Issue #840 resolved

Bad lexer/formatter combination: postgresql/plpgsql and latex

Anonymous created an issue

The following code generates an error when trying to "pygmentize" it with the latex formatter and both plpgsql / postgresql lexers:

CREATE OR REPLACE FUNCTION test () returns void as $$
$$ language plpgsql;

This results in the following output


*** Error while highlighting:
TypeError: 'NoneType' object has no attribute '__getitem__'
       (file "/usr/lib64/python2.7/site-packages/pygments/formatters/", line 133, in _get_ttype_name)

This works fine when using another lexer, or another formatter (ex: html)

Comments (1)

  1. Log in to comment