# HG changeset patch # User Franz Glasner # Date 1778143934 -7200 # Node ID acd9073cbbe3548a77357a86d9d26162996547c8 # Parent e424fcdd472fdbed63662024050c100847071410 Make a lexerlist.rst that contains the table of the lexers because it is used at least twice diff -r e424fcdd472f -r acd9073cbbe3 README.rst --- a/README.rst Thu May 07 10:03:32 2026 +0200 +++ b/README.rst Thu May 07 10:52:14 2026 +0200 @@ -11,39 +11,7 @@ It now contains the following lexers: -.. list-table:: - :align: left - :header-rows: 1 - - * - Language Name - - Description - - Extension(s) - - Aliases / Short Name(s) - - Lexer Class - - * - AlgPseudocode - - Pseudocode lexer heavily inspired by CTAN's "Algpseudocodex" - - \*.algpseudocode, \*.algpseudo - - algpseudocode, algpseudo - - AlgPseudocodeLexer - - * - AlgPseudocodeFR - - AlgPseudocode with french keyword expansion - - \*.algpseudo-fr, \*.algpseudocode-fr - - algpseudocode-fr, algpseudo-fr - - AlgPseudocodeLexer_FR - - * - AlgPseudocodeDE - - AlgPseudocode with german keyword expansion - - \*.algpseudo-de, \*.algpseudocode-de - - algpseudocode-de, algpseudo-de - - AlgPseudocodeLexer_DE - - * - FrPseudocode - - The original lexer (slightly changed) from `pygments-lexer-pseudocode` - - \*.fr-algo, \*.fr-pseudocode - - fr-pseudocode, fr-pseudo, fr-algorithm, fr-algo - - FrPseudocodeLexer +.. include:: lexerlist.rst Installation diff -r e424fcdd472f -r acd9073cbbe3 docs/conf.py --- a/docs/conf.py Thu May 07 10:03:32 2026 +0200 +++ b/docs/conf.py Thu May 07 10:52:14 2026 +0200 @@ -46,7 +46,7 @@ ] templates_path = ['_templates'] -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'lexerlist.rst'] highlight_language = "none" diff -r e424fcdd472f -r acd9073cbbe3 docs/intro.rst --- a/docs/intro.rst Thu May 07 10:03:32 2026 +0200 +++ b/docs/intro.rst Thu May 07 10:52:14 2026 +0200 @@ -4,41 +4,9 @@ Introduction ============ -The package contains the following lexers: - -.. list-table:: - :align: left - :header-rows: 1 - - * - Language Name - - Description - - Extension(s) - - Aliases / Short Name(s) - - Lexer Class - - * - AlgPseudocode - - Pseudocode lexer heavily inspired by CTAN's "Algpseudocodex" - - \*.algpseudocode, \*.algpseudo - - algpseudocode, algpseudo - - AlgPseudocodeLexer +The package contains the following lexers: - * - AlgPseudocodeFR - - AlgPseudocode with french keyword expansion - - \*.algpseudo-fr, \*.algpseudocode-fr - - algpseudocode-fr, algpseudo-fr - - AlgPseudocodeLexer_FR - - * - AlgPseudocodeDE - - AlgPseudocode with german keyword expansion - - \*.algpseudo-de, \*.algpseudocode-de - - algpseudocode-de, algpseudo-de - - AlgPseudocodeLexer_DE - - * - FrPseudocode - - The original lexer (slightly changed) from `pygments-lexer-pseudocode` - - \*.fr-algo, \*.fr-pseudocode - - fr-pseudocode, fr-pseudo, fr-algorithm, fr-algo - - FrPseudocodeLexer +.. include:: lexerlist.rst They may be used in Sphinx by their aliases: diff -r e424fcdd472f -r acd9073cbbe3 docs/lexerlist.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/lexerlist.rst Thu May 07 10:52:14 2026 +0200 @@ -0,0 +1,38 @@ +.. -*- coding: utf-8; indent-tabs-mode: nil; -*- + +.. to be included in some documentation pages + +.. list-table:: + :align: left + :header-rows: 1 + + * - Language Name + - Description + - Extension(s) + - Aliases / Short Name(s) + - Lexer Class + + * - AlgPseudocode + - Pseudocode lexer heavily inspired by CTAN's "Algpseudocodex" + - \*.algpseudocode, \*.algpseudo + - algpseudocode, algpseudo + - AlgPseudocodeLexer + + * - AlgPseudocodeFR + - AlgPseudocode with french keyword expansion + - \*.algpseudo-fr, \*.algpseudocode-fr + - algpseudocode-fr, algpseudo-fr + - AlgPseudocodeLexer_FR + + * - AlgPseudocodeDE + - AlgPseudocode with german keyword expansion + - \*.algpseudo-de, \*.algpseudocode-de + - algpseudocode-de, algpseudo-de + - AlgPseudocodeLexer_DE + + * - FrPseudocode + - The original lexer (slightly changed) from `pygments-lexer-pseudocode` + - \*.fr-algo, \*.fr-pseudocode + - fr-pseudocode, fr-pseudo, fr-algorithm, fr-algo + - FrPseudocodeLexer +