1. Georg Brandl
  2. pygments-main
  3. Pull requests

Pull requests

#96 Declined
Repository
Deleted repository
Branch
modeline (de30a2088c30)
Repository
pygments-main
Branch
default

vim modeline support, v1

Author
  1. Michał Górny
Reviewers
Description

This is the first version of my patches.

  1. added vim_filetypes list to Lexer class, and filled in for most of the lexers (those with corresponding vim syntaxes);
  2. added the filetypes to the tuples in LEXERS. However, I ensure that return value of get_all_lexers() doesn't change so that public API isn't changed;
  3. added a mini-version of vim modeline parser to pygments.modeline;
  4. added get_lexer_by_vim_filetype();
  5. modified guess_lexer() to use the above.

Comments (1)