diff options
author | gbrandl <devnull@localhost> | 2007-01-12 22:53:02 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-01-12 22:53:02 +0100 |
commit | 75dee451b1902e95b91c97f998af4c38e4ce670a (patch) | |
tree | eb7a1df61a6a1d8b0d75ae1dd957005a1b680005 /pygments/lexers/other.py | |
parent | efaccf6fd1322930aca142dd1a96d06d1bae84a3 (diff) | |
download | pygments-75dee451b1902e95b91c97f998af4c38e4ce670a.tar.gz |
[svn] Generate lexer, formatter and filter docs from docstrings.
There is the problem of ordering, though.
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r-- | pygments/lexers/other.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index cede911f..cec162b4 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -3,7 +3,7 @@ pygments.lexers.other ~~~~~~~~~~~~~~~~~~~~~ - Lexers for other languages: SQL, BrainFuck. + Lexers for other languages. :copyright: 2006 by Georg Brandl, Tim Hatch <tim@timhatch.com>. :license: BSD, see LICENSE for more details. @@ -21,6 +21,11 @@ __all__ = ['SqlLexer', 'BrainfuckLexer', 'BashLexer'] class SqlLexer(RegexLexer): + """ + Lexer for Structured Query Language. Currently, this lexer does + not recognize any special syntax except ANSI SQL. + """ + name = 'SQL' aliases = ['sql'] filenames = ['*.sql'] @@ -130,6 +135,11 @@ class SqlLexer(RegexLexer): class BrainfuckLexer(RegexLexer): + """ + Lexer for the esoteric `BrainFuck <http://www.muppetlabs.com/~breadbox/bf/>`_ + language. + """ + name = 'Brainfuck' aliases = ['brainfuck', 'bf'] filenames = ['*.bf', '*.b'] @@ -157,8 +167,11 @@ class BrainfuckLexer(RegexLexer): class BashLexer(RegexLexer): """ - Lex (ba)sh source files. + Lexer for (ba)sh shell scripts. + + *New in Pygments 0.6.* """ + name = 'Bash' aliases = ['bash', 'sh'] filenames = ['*.sh'] |