Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison pygments_lexer_pseudocode2/fr_pseudocode.py @ 37:c02d59f04133
Remove an unneeded local variable
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 22 Apr 2026 16:26:42 +0200 |
| parents | 9004ff039497 |
| children | 10212741b98f |
comparison
equal
deleted
inserted
replaced
| 36:9004ff039497 | 37:c02d59f04133 |
|---|---|
| 47 '^': '↑', | 47 '^': '↑', |
| 48 } | 48 } |
| 49 | 49 |
| 50 def op_replace(lexer, match): | 50 def op_replace(lexer, match): |
| 51 op = match.group(0) | 51 op = match.group(0) |
| 52 opr = lexer.REPLACEMENTS.get(op, op) | 52 yield match.start(), Operator, lexer.REPLACEMENTS.get(op, op) |
| 53 yield match.start(), Operator, opr | |
| 54 | 53 |
| 55 def scomment(lexer, match): | 54 def scomment(lexer, match): |
| 56 s = match.group(1).lower().strip() | 55 s = match.group(1).lower().strip() |
| 57 c = Comment | 56 c = Comment |
| 58 | 57 |
