ThirdParty/Pygments/pygments/lexers/pascal.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
591 (r'"[^"]+"|\w+', Name.Function), 591 (r'"[^"]+"|\w+', Name.Function),
592 include('root'), 592 include('root'),
593 ], 593 ],
594 'end': [ 594 'end': [
595 ('(if|case|record|loop|select)', Keyword.Reserved), 595 ('(if|case|record|loop|select)', Keyword.Reserved),
596 ('"[^"]+"|[\w.]+', Name.Function), 596 (r'"[^"]+"|[\w.]+', Name.Function),
597 ('\s+', Text), 597 (r'\s+', Text),
598 (';', Punctuation, '#pop'), 598 (';', Punctuation, '#pop'),
599 ], 599 ],
600 'type_def': [ 600 'type_def': [
601 (r';', Punctuation, '#pop'), 601 (r';', Punctuation, '#pop'),
602 (r'\(', Punctuation, 'formal_part'), 602 (r'\(', Punctuation, 'formal_part'),
626 (r'(in|not|null|out|access)\b', Keyword.Reserved), 626 (r'(in|not|null|out|access)\b', Keyword.Reserved),
627 include('root'), 627 include('root'),
628 ], 628 ],
629 'package': [ 629 'package': [
630 ('body', Keyword.Declaration), 630 ('body', Keyword.Declaration),
631 ('is\s+new|renames', Keyword.Reserved), 631 (r'is\s+new|renames', Keyword.Reserved),
632 ('is', Keyword.Reserved, '#pop'), 632 ('is', Keyword.Reserved, '#pop'),
633 (';', Punctuation, '#pop'), 633 (';', Punctuation, '#pop'),
634 ('\(', Punctuation, 'package_instantiation'), 634 (r'\(', Punctuation, 'package_instantiation'),
635 ('([\w.]+)', Name.Class), 635 (r'([\w.]+)', Name.Class),
636 include('root'), 636 include('root'),
637 ], 637 ],
638 'package_instantiation': [ 638 'package_instantiation': [
639 (r'("[^"]+"|\w+)(\s+)(=>)', bygroups(Name.Variable, Text, Punctuation)), 639 (r'("[^"]+"|\w+)(\s+)(=>)', bygroups(Name.Variable, Text, Punctuation)),
640 (r'[\w.\'"]', Text), 640 (r'[\w.\'"]', Text),

eric ide

mercurial