comparison pygments_lexer_pseudocode2/algpseudocode.py @ 96:98cd0787f62f

FIX: FN alias for function
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 03 May 2026 15:15:34 +0200
parents dc17b778a52b
children dd4eb937485c
comparison
equal deleted inserted replaced
95:aed3204723ac 96:98cd0787f62f
208 (r"(?i)\\end(?:[_\-]|(?:[ \t]+))?(" 208 (r"(?i)\\end(?:[_\-]|(?:[ \t]+))?("
209 r"(?:prog(?:ram)?)" 209 r"(?:prog(?:ram)?)"
210 r"|(?:algo(?:rithm)?)" 210 r"|(?:algo(?:rithm)?)"
211 r"|(?:proc(?:edure)?)" 211 r"|(?:proc(?:edure)?)"
212 r"|(?:func(?:tion)?)" 212 r"|(?:func(?:tion)?)"
213 r"|(?:fn)"
213 r"|(?:class)" 214 r"|(?:class)"
214 r")(?:[_\-]|(?:[\t ]+))?(\{)", 215 r")(?:[_\-]|(?:[\t ]+))?(\{)",
215 bygroups(op_opt_end_translate(Keyword), 216 bygroups(op_opt_end_translate(Keyword),
216 op_opt_ignore_or_fixed(Whitespace, " ")), 217 op_opt_ignore_or_fixed(Whitespace, " ")),
217 "entity-name-end"), 218 "entity-name-end"),
220 (r"(?i)\\end(?:[_\-]|(?:[ \t]+))?(" 221 (r"(?i)\\end(?:[_\-]|(?:[ \t]+))?("
221 r"(?:prog(?:ram)?)" 222 r"(?:prog(?:ram)?)"
222 r"|(?:algo(?:rithm)?)" 223 r"|(?:algo(?:rithm)?)"
223 r"|(?:proc(?:edure)?)" 224 r"|(?:proc(?:edure)?)"
224 r"|(?:func(?:tion)?)" 225 r"|(?:func(?:tion)?)"
226 r"|(?:fn)"
225 r"|(?:class)" 227 r"|(?:class)"
226 r")\b", 228 r")\b",
227 bygroups(op_opt_end_translate(Keyword))), 229 bygroups(op_opt_end_translate(Keyword))),
228 # Keywords 230 # Keywords
229 (r"(?i)\\(" 231 (r"(?i)\\("