Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison pygments_lexer_pseudocode2/bases.py @ 115:e1663ac707b0
An alternate multiline comment syntax using "(* ... *)".
Can be nested.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 06 May 2026 01:31:41 +0200 |
| parents | cd79d2c76347 |
| children |
comparison
equal
deleted
inserted
replaced
| 114:be50fe0687d6 | 115:e1663ac707b0 |
|---|---|
| 176 'multiline-nested-comment': [ | 176 'multiline-nested-comment': [ |
| 177 (r'[^*/]+', Comment.Multiline), | 177 (r'[^*/]+', Comment.Multiline), |
| 178 (r'/\*', Comment.Multiline, '#push'), | 178 (r'/\*', Comment.Multiline, '#push'), |
| 179 (r'\*/', Comment.Multiline, '#pop'), | 179 (r'\*/', Comment.Multiline, '#pop'), |
| 180 (r'[*/]', Comment.Multiline), | 180 (r'[*/]', Comment.Multiline), |
| 181 ], | |
| 182 'multiline-nested-comment-alt': [ | |
| 183 (r'[^*()]+', Comment.Multiline), | |
| 184 (r'\(\*', Comment.Multiline, '#push'), | |
| 185 (r'\*\)', Comment.Multiline, '#pop'), | |
| 186 (r'[*()]', Comment.Multiline), | |
| 181 ] | 187 ] |
| 182 } | 188 } |
