64 (r'0[0-7]+[LlUu]*', Number.Oct), |
64 (r'0[0-7]+[LlUu]*', Number.Oct), |
65 (r'\d+[LlUu]*', Number.Integer), |
65 (r'\d+[LlUu]*', Number.Integer), |
66 (r'[+-=]', Operator), |
66 (r'[+-=]', Operator), |
67 (r'([a-zA-Z_][\w.]*)([ \t]*)(=)', |
67 (r'([a-zA-Z_][\w.]*)([ \t]*)(=)', |
68 bygroups(Name.Attribute, Text, Operator)), |
68 bygroups(Name.Attribute, Text, Operator)), |
69 ('[a-zA-Z_][\w.]*', Name), |
69 (r'[a-zA-Z_][\w.]*', Name), |
70 ], |
70 ], |
71 'package': [ |
71 'package': [ |
72 (r'[a-zA-Z_]\w*', Name.Namespace, '#pop'), |
72 (r'[a-zA-Z_]\w*', Name.Namespace, '#pop'), |
73 default('#pop'), |
73 default('#pop'), |
74 ], |
74 ], |
298 (r'(=>|\?|<|>|=|\+|-|/|\*|~|!|\|)', Operator), |
298 (r'(=>|\?|<|>|=|\+|-|/|\*|~|!|\|)', Operator), |
299 (r'(in|and|or|not)\b', Operator.Word), |
299 (r'(in|and|or|not)\b', Operator.Word), |
300 ], |
300 ], |
301 |
301 |
302 'names': [ |
302 'names': [ |
303 ('[a-zA-Z_]\w*', Name.Attribute), |
303 (r'[a-zA-Z_]\w*', Name.Attribute), |
304 (r'(\$\S+)(\[)(\S+)(\])', bygroups(Name.Variable, Punctuation, |
304 (r'(\$\S+)(\[)(\S+)(\])', bygroups(Name.Variable, Punctuation, |
305 String, Punctuation)), |
305 String, Punctuation)), |
306 (r'\$\S+', Name.Variable), |
306 (r'\$\S+', Name.Variable), |
307 ], |
307 ], |
308 |
308 |
686 # rsc_id[:(role|action)] |
686 # rsc_id[:(role|action)] |
687 # NB: this matches all other identifiers |
687 # NB: this matches all other identifiers |
688 (r'([\w#$-]+)(?:(:)(%s))?(?![\w#$-])' % rsc_role_action, |
688 (r'([\w#$-]+)(?:(:)(%s))?(?![\w#$-])' % rsc_role_action, |
689 bygroups(Name, Punctuation, Operator.Word)), |
689 bygroups(Name, Punctuation, Operator.Word)), |
690 # punctuation |
690 # punctuation |
691 (r'(\\(?=\n)|[[\](){}/:@])', Punctuation), |
691 (r'(\\(?=\n)|[\[\](){}/:@])', Punctuation), |
692 (r'\s+|\n', Whitespace), |
692 (r'\s+|\n', Whitespace), |
693 ], |
693 ], |
694 } |
694 } |
695 |
695 |
696 |
696 |