# HG changeset patch # User Franz Glasner # Date 1777890888 -7200 # Node ID 857df2064831c587d1b4703298846d0fea498e50 # Parent c1f93e109798936e1504e66d763cba8d1c01e0b9 \INPUT, \INPUTS, \OUTPUT, \OUTPUTS, \RETURN and \RETURNS as new commands (keywords) diff -r c1f93e109798 -r 857df2064831 pygments_lexer_pseudocode2/algpseudocode.py --- a/pygments_lexer_pseudocode2/algpseudocode.py Sun May 03 16:56:23 2026 +0200 +++ b/pygments_lexer_pseudocode2/algpseudocode.py Mon May 04 12:34:48 2026 +0200 @@ -62,6 +62,12 @@ "FUNCTION": "FUNCTION", "FN": "FUNCTION", "CLASS": "CLASS", + "INPUT": "Input:", + "INPUTS": "Inputs:", + "OUTPUT": "Output:", + "OUTPUTS": "Outputs:", + "RETURN": "Return:", + "RETURNS": "Returns:", "IS": "IS", "WITH": "WITH", "IF": "IF", @@ -214,6 +220,14 @@ bygroups(op_symbol(Text), LexBase.op_fixed(Whitespace, " ")), "text-statement"), (r"(?i)\\(" + r"(?:input(?:s)?)" + r"|(?:output(?:s)?)" + r"|(?:return(?:s)?)" + r")[ \t]*(\{)", + bygroups(op_translate(Keyword), + LexBase.op_fixed(Whitespace, " ")), + "text-statement"), + (r"(?i)\\(" r"(?:if)" r"|(?:then)" r"|(?:else)"