Skip to content

Commit 8d58bf4

Browse files
author
Michael Doronin
committed
moved bytes, bytearray to bultinobj group
1 parent 4523a6d commit 8d58bf4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

syntax/python.vim

+5-3
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,13 @@ syn region FunctionParameters start='(' end=')' display contains=
202202
\ pythonStatement,
203203
\ pythonOctNumber,
204204
\ pythonString,
205+
\ pythonRawString,
205206
\ pythonUniString,
206207
\ pythonExClass,
207208
\ pythonUniRawString,
208209
\ pythonNumber,
209210
\ pythonRawString,
211+
\ pythonBytes,
210212
\ pythonBuiltinObj,
211213
\ pythonBuiltinFunc,
212214
\ pythonBoolean
@@ -427,7 +429,7 @@ if s:Enabled("g:python_highlight_builtin_objs")
427429
syn keyword pythonBuiltinObj None
428430
syn keyword pythonBoolean True False
429431
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)>'
431433
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
432434
syn keyword pythonBuiltinObj __loader__ __spec__ __path__ __cached__
433435
endif
@@ -448,8 +450,7 @@ if s:Enabled("g:python_highlight_builtin_funcs")
448450
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(ascii|exec|memoryview|print)>\ze\('
449451
endif
450452
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(__import__|abs|all|any)>\ze\('
451-
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(bin|bool|bytearray|bytes)>\ze\('
452-
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(chr|classmethod|cmp|compile|complex)>\ze\('
453+
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(bin|chr|classmethod|cmp|compile|complex)>\ze\('
453454
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(delattr|dir|divmod|enumerate|eval)>\ze\('
454455
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(filter|format|getattr)>\ze\('
455456
syn match pythonBuiltinFunc '\v(\.)@<!\zs<(globals|hasattr|hash|hex|id)>\ze\('
@@ -477,6 +478,7 @@ if s:Enabled("g:python_highlight_exceptions")
477478
syn keyword pythonExClass FileNotFoundError InterruptedError
478479
syn keyword pythonExClass IsADirectoryError NotADirectoryError
479480
syn keyword pythonExClass PermissionError ProcessLookupError TimeoutError
481+
syn keyword pythonExClass StopAsyncIteration
480482

481483
syn keyword pythonExClass ResourceWarning
482484
endif

0 commit comments

Comments
 (0)