1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #833 new

INI files and multiple lines in sections

Artur Dryomov
created an issue

I have a GitHub issue related to pygments. As you know GitHub uses pygments as a source code highlighting engine.

I tried to highlight .gitconfig with pygmentize tool in virtual environment and the last version from PyPi (seems to be 1.5) has the same issue as GitHub. You could try it locally using the next command

$ curl https://raw.github.com/ming13/dotfiles/master/git/.gitconfig | pygmentize -l ini -f terminal256

The interesting thing is that when I’m trying to reproduce this thing using online demo Git config is painted correctly.

It would be helpful to hear your opinion. Maybe I should change my GitHub issue to something like “Git configs shouldn’t use INI syntax highlighter”.

Comments (2)

  1. Tim Hatch
    • changed milestone to 2.2

    Yes, this is the line continuation code causing problems... we have several variants of Ini all sharing one lexer. Github no longer uses Pygments, as well.

  2. Log in to comment