Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison tests/test_algpseudo.py @ 108:6cebd3e7bc97
Also allow \REM within a \TEXT{}
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 04 May 2026 17:36:13 +0200 |
| parents | cec52d83869a |
| children | ec8767cc5493 |
comparison
equal
deleted
inserted
replaced
| 107:1c1985532139 | 108:6cebd3e7bc97 |
|---|---|
| 327 ], | 327 ], |
| 328 pygments.lex( | 328 pygments.lex( |
| 329 """\\remArk the remark 1 | 329 """\\remArk the remark 1 |
| 330 \\Rem the remark 2 | 330 \\Rem the remark 2 |
| 331 """, self.lexer)) | 331 """, self.lexer)) |
| 332 | |
| 333 def test_remark_in_text(self): | |
| 334 self.assertTokenStreamEqualComplete( | |
| 335 [("Text", "the text "), | |
| 336 ("Comment.Single", "▷"), | |
| 337 ("Comment.Single", " the remark"), | |
| 338 ("Text.Whitespace", "\n"), | |
| 339 ("Text", "the next text line"), | |
| 340 ("Text.Whitespace", "\n"), | |
| 341 ], | |
| 342 pygments.lex( | |
| 343 """\\TEXT{the text \\rem the remark\nthe next text line}""", | |
| 344 self.lexer)) | |
| 332 | 345 |
| 333 def test_comment_single_1(self): | 346 def test_comment_single_1(self): |
| 334 self.assertTokenStreamEqualComplete( | 347 self.assertTokenStreamEqualComplete( |
| 335 [("Comment.Single", "// foo bar"), | 348 [("Comment.Single", "// foo bar"), |
| 336 ("Text.Whitespace", "\n"), | 349 ("Text.Whitespace", "\n"), |
