ThirdParty/Pygments/pygments/lexers/scripting.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
102 include('ws'), 102 include('ws'),
103 (r'[.:]', Punctuation), 103 (r'[.:]', Punctuation),
104 (r'%s(?=%s*[.:])' % (_name, _s), Name.Class), 104 (r'%s(?=%s*[.:])' % (_name, _s), Name.Class),
105 (_name, Name.Function, '#pop'), 105 (_name, Name.Function, '#pop'),
106 # inline function 106 # inline function
107 ('\(', Punctuation, '#pop'), 107 (r'\(', Punctuation, '#pop'),
108 ], 108 ],
109 109
110 'goto': [ 110 'goto': [
111 include('ws'), 111 include('ws'),
112 (_name, Name.Label, '#pop'), 112 (_name, Name.Label, '#pop'),
694 (r'\b(%s)\b' % Identifiers, Name.Variable), 694 (r'\b(%s)\b' % Identifiers, Name.Variable),
695 (r'[-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?', Number.Float), 695 (r'[-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?', Number.Float),
696 (r'[-+]?\d+', Number.Integer), 696 (r'[-+]?\d+', Number.Integer),
697 ], 697 ],
698 'comment': [ 698 'comment': [
699 ('\(\*', Comment.Multiline, '#push'), 699 (r'\(\*', Comment.Multiline, '#push'),
700 ('\*\)', Comment.Multiline, '#pop'), 700 (r'\*\)', Comment.Multiline, '#pop'),
701 ('[^*(]+', Comment.Multiline), 701 ('[^*(]+', Comment.Multiline),
702 ('[*(]', Comment.Multiline), 702 ('[*(]', Comment.Multiline),
703 ], 703 ],
704 } 704 }
705 705

eric ide

mercurial