@@ -202,11 +202,13 @@ syn region FunctionParameters start='(' end=')' display contains=
202
202
\ pythonStatement,
203
203
\ pythonOctNumber,
204
204
\ pythonString,
205
+ \ pythonRawString,
205
206
\ pythonUniString,
206
207
\ pythonExClass,
207
208
\ pythonUniRawString,
208
209
\ pythonNumber,
209
210
\ pythonRawString,
211
+ \ pythonBytes,
210
212
\ pythonBuiltinObj,
211
213
\ pythonBuiltinFunc,
212
214
\ pythonBoolean
@@ -427,7 +429,7 @@ if s:Enabled("g:python_highlight_builtin_objs")
427
429
syn keyword pythonBuiltinObj None
428
430
syn keyword pythonBoolean True False
429
431
syn keyword pythonBuiltinObj Ellipsis NotImplemented
430
- syn match pythonBuiltinObj ' \v (\. )@<!<(object|int|float|tuple|str|list|dict|set|frozenset)>'
432
+ syn match pythonBuiltinObj ' \v (\. )@<!<(object|bool| int|float|tuple|str|list|dict|set|frozenset|bytearray|bytes )>'
431
433
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
432
434
syn keyword pythonBuiltinObj __loader__ __spec__ __path__ __cached__
433
435
endif
@@ -448,8 +450,7 @@ if s:Enabled("g:python_highlight_builtin_funcs")
448
450
syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(ascii|exec|memoryview|print)>\z e\( '
449
451
endif
450
452
syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(__import__|abs|all|any)>\z e\( '
451
- syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(bin|bool|bytearray|bytes)>\z e\( '
452
- syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(chr|classmethod|cmp|compile|complex)>\z e\( '
453
+ syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(bin|chr|classmethod|cmp|compile|complex)>\z e\( '
453
454
syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(delattr|dir|divmod|enumerate|eval)>\z e\( '
454
455
syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(filter|format|getattr)>\z e\( '
455
456
syn match pythonBuiltinFunc ' \v (\. )@<!\z s<(globals|hasattr|hash|hex|id)>\z e\( '
@@ -477,6 +478,7 @@ if s:Enabled("g:python_highlight_exceptions")
477
478
syn keyword pythonExClass FileNotFoundError InterruptedError
478
479
syn keyword pythonExClass IsADirectoryError NotADirectoryError
479
480
syn keyword pythonExClass PermissionError ProcessLookupError TimeoutError
481
+ syn keyword pythonExClass StopAsyncIteration
480
482
481
483
syn keyword pythonExClass ResourceWarning
482
484
endif
0 commit comments