3 pygments.lexers.modula2 |
3 pygments.lexers.modula2 |
4 ~~~~~~~~~~~~~~~~~~~~~~~ |
4 ~~~~~~~~~~~~~~~~~~~~~~~ |
5 |
5 |
6 Multi-Dialect Lexer for Modula-2. |
6 Multi-Dialect Lexer for Modula-2. |
7 |
7 |
8 :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. |
8 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. |
9 :license: BSD, see LICENSE for details. |
9 :license: BSD, see LICENSE for details. |
10 """ |
10 """ |
11 |
11 |
12 import re |
12 import re |
13 |
13 |
288 # Distinguish |* and * in M2 R10 |
288 # Distinguish |* and * in M2 R10 |
289 (r'\|\*', Punctuation), |
289 (r'\|\*', Punctuation), |
290 ], |
290 ], |
291 'unigraph_punctuation': [ |
291 'unigraph_punctuation': [ |
292 # Common Punctuation |
292 # Common Punctuation |
293 (r'[\(\)\[\]{},.:;\|]', Punctuation), |
293 (r'[()\[\]{},.:;|]', Punctuation), |
294 # Case Label Separator Synonym |
294 # Case Label Separator Synonym |
295 (r'!', Punctuation), # ISO |
295 (r'!', Punctuation), # ISO |
296 # Blueprint Punctuation |
296 # Blueprint Punctuation |
297 (r'\?', Punctuation), # M2R10 + ObjM2 |
297 (r'\?', Punctuation), # M2R10 + ObjM2 |
298 ], |
298 ], |