249 (r'\]', Operator, '#pop') |
249 (r'\]', Operator, '#pop') |
250 ], |
250 ], |
251 'funcparams': [ |
251 'funcparams': [ |
252 (r'\$\{?', Punctuation, 'variable'), |
252 (r'\$\{?', Punctuation, 'variable'), |
253 (r'\s+', Text), |
253 (r'\s+', Text), |
254 (r',', Punctuation), |
254 (r'[,:]', Punctuation), |
255 (r'"(\\\\|\\"|[^"])*"', String.Double), |
255 (r'"(\\\\|\\"|[^"])*"', String.Double), |
256 (r"'(\\\\|\\'|[^'])*'", String.Single), |
256 (r"'(\\\\|\\'|[^'])*'", String.Single), |
257 (r"0[xX][0-9a-fA-F]+[Ll]?", Number), |
257 (r"0[xX][0-9a-fA-F]+[Ll]?", Number), |
258 (r"\b[0-9]+\b", Number), |
258 (r"\b[0-9]+\b", Number), |
259 (r'(true|false|null)\b', Keyword.Constant), |
259 (r'(true|false|null)\b', Keyword.Constant), |
260 (r'\(', Punctuation, '#push'), |
260 (r'\(', Punctuation, '#push'), |
261 (r'\)', Punctuation, '#pop'), |
261 (r'\)', Punctuation, '#pop'), |
|
262 (r'\{', Punctuation, '#push'), |
|
263 (r'\}', Punctuation, '#pop'), |
262 (r'\[', Punctuation, '#push'), |
264 (r'\[', Punctuation, '#push'), |
263 (r'\]', Punctuation, '#pop'), |
265 (r'\]', Punctuation, '#pop'), |
264 ] |
266 ] |
265 } |
267 } |
266 |
268 |
873 (r'(<\?python)(.*?)(\?>)', |
875 (r'(<\?python)(.*?)(\?>)', |
874 bygroups(Comment.Preproc, using(PythonLexer), Comment.Preproc)), |
876 bygroups(Comment.Preproc, using(PythonLexer), Comment.Preproc)), |
875 # yield style and script blocks as Other |
877 # yield style and script blocks as Other |
876 (r'<\s*(script|style)\s*.*?>.*?<\s*/\1\s*>', Other), |
878 (r'<\s*(script|style)\s*.*?>.*?<\s*/\1\s*>', Other), |
877 (r'<\s*py:[a-zA-Z0-9]+', Name.Tag, 'pytag'), |
879 (r'<\s*py:[a-zA-Z0-9]+', Name.Tag, 'pytag'), |
878 (r'<\s*[a-zA-Z0-9:]+', Name.Tag, 'tag'), |
880 (r'<\s*[a-zA-Z0-9:.]+', Name.Tag, 'tag'), |
879 include('variable'), |
881 include('variable'), |
880 (r'[<$]', Other), |
882 (r'[<$]', Other), |
881 ], |
883 ], |
882 'pytag': [ |
884 'pytag': [ |
883 (r'\s+', Text), |
885 (r'\s+', Text), |