diff options
author | Georg Brandl <georg@python.org> | 2017-01-22 19:04:18 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2017-01-22 19:04:18 +0100 |
commit | ca1677ff64a8bfe04f3dd26a3554b6c11db7ee7f (patch) | |
tree | 8da42151e1a8a5ef3c0a487f07eab6f6a536c62b /pygments/lexers/bibtex.py | |
parent | db38eea4958d435e377b24bfada9abad98c6808a (diff) | |
download | pygments-ca1677ff64a8bfe04f3dd26a3554b6c11db7ee7f.tar.gz |
Housekeeping.
Diffstat (limited to 'pygments/lexers/bibtex.py')
-rw-r--r-- | pygments/lexers/bibtex.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pygments/lexers/bibtex.py b/pygments/lexers/bibtex.py index cbaedca2..a6159f81 100644 --- a/pygments/lexers/bibtex.py +++ b/pygments/lexers/bibtex.py @@ -5,14 +5,16 @@ Lexers for BibTeX bibliography data and styles - :copyright: Copyright 2005-2015 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re -from pygments.lexer import RegexLexer, ExtendedRegexLexer, include, default, words -from pygments.token import Name, Comment, String, Error, Number, Text, Keyword, Punctuation +from pygments.lexer import RegexLexer, ExtendedRegexLexer, include, default, \ + words +from pygments.token import Name, Comment, String, Error, Number, Text, \ + Keyword, Punctuation __all__ = ['BibTeXLexer', 'BSTLexer'] @@ -57,7 +59,8 @@ class BibTeXLexer(ExtendedRegexLexer): ('@comment', Comment), ('@preamble', Name.Class, ('closing-brace', 'value', 'opening-brace')), ('@string', Name.Class, ('closing-brace', 'field', 'opening-brace')), - ('@' + IDENTIFIER, Name.Class, ('closing-brace', 'command-body', 'opening-brace')), + ('@' + IDENTIFIER, Name.Class, + ('closing-brace', 'command-body', 'opening-brace')), ('.+', Comment), ], 'opening-brace': [ @@ -127,7 +130,8 @@ class BSTLexer(RegexLexer): 'root': [ include('whitespace'), (words(['read', 'sort']), Keyword), - (words(['execute', 'integers', 'iterate', 'reverse', 'strings']), Keyword, ('group')), + (words(['execute', 'integers', 'iterate', 'reverse', 'strings']), + Keyword, ('group')), (words(['function', 'macro']), Keyword, ('group', 'group')), (words(['entry']), Keyword, ('group', 'group', 'group')), ], |