comparison pygments_lexer_pseudocode2/bases.py @ 42:193ee1eb5013

Document where "multiline-nested-comment" is taken from
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 24 Apr 2026 18:22:23 +0200
parents a3151d837258
children bbef0ac6cfcf
comparison
equal deleted inserted replaced
41:4ccf9a8d0bf2 42:193ee1eb5013
115 (r'\n', String.Single) 115 (r'\n', String.Single)
116 ], 116 ],
117 'py-strings-single': py_innerstring_rules(String.Single), 117 'py-strings-single': py_innerstring_rules(String.Single),
118 'py-strings-double': py_innerstring_rules(String.Double), 118 'py-strings-double': py_innerstring_rules(String.Double),
119 # SPDX-SnippetEnd 119 # SPDX-SnippetEnd
120 # This snippet is from the Pygments' documentation "Write your own lexer"
120 'multiline-nested-comment': [ 121 'multiline-nested-comment': [
121 (r'[^*/]+', Comment.Multiline), 122 (r'[^*/]+', Comment.Multiline),
122 (r'/\*', Comment.Multiline, '#push'), 123 (r'/\*', Comment.Multiline, '#push'),
123 (r'\*/', Comment.Multiline, '#pop'), 124 (r'\*/', Comment.Multiline, '#pop'),
124 (r'[*/]', Comment.Multiline), 125 (r'[*/]', Comment.Multiline),