Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
diff pygments_lexer_pseudocode2/__init__.py @ 23:bb2fd6d4ad69
More arrows
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 20 Apr 2026 23:28:27 +0200 |
| parents | b42168cc9884 |
| children | f13f5ddafcf6 |
line wrap: on
line diff
--- a/pygments_lexer_pseudocode2/__init__.py Mon Apr 20 17:42:32 2026 +0200 +++ b/pygments_lexer_pseudocode2/__init__.py Mon Apr 20 23:28:27 2026 +0200 @@ -44,6 +44,8 @@ '<-': '←', '->': '→', '=>': '⇒', + '<->': '↔', + '<=>': '⇔', '^': '↑', } @@ -94,7 +96,7 @@ Name.Constant), # Operators - (r'(<=|>=|<>|!=|<-|->|=>|\^|\*|\+|-|\/|<|>|=|\\\\|mod|←|↑|≤|≥|≠|÷|×|\.\.|\[|\]|\.|non|xou|et|ou)', + (r'(<->|<=>|<=|>=|<>|!=|<-|->|=>|\^|\*|\+|-|\/|<|>|=|\\\\|mod|←|↑|≤|≥|≠|÷|×|\.\.|\[|\]|\.|non|xou|et|ou)', op_replace), (r'(\(|\)|\,|\;|:)', @@ -113,7 +115,7 @@ (r'"([^"])*"', String.Double), (r"'([^'])*'", String.Single), ], -# +# # This is stolen from the Pygment's Python lexer. # # SPDX-SnippetBegin
