Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ syn keyword pythonStatement lambda
syn keyword pythonStatement with
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
syn keyword pythonRepeat for while
syn keyword pythonConditional if elif else
syn keyword pythonConditional if elif else else:
syn keyword pythonImport import
syn keyword pythonException try except finally
syn keyword pythonOperator and in is not or
Expand Down Expand Up @@ -365,9 +365,9 @@ else

syn match pythonNumberError "\<\d\+\D\>" display
syn match pythonNumberError "\<0\d\+\>" display
syn match pythonNumber "\<\d\>" display
syn match pythonNumber "\<[1-9]\d\+\>" display
syn match pythonNumber "\<\d\+[jJ]\>" display
syn match pythonNumber "\<\d\:\=\>" display
syn match pythonNumber "\<[1-9]\d\+\:\=\>" display
syn match pythonNumber "\<\d\+[jJ]\:\=\>" display

syn match pythonOctError "\<0[oO]\=\o*[8-9]\d*\>" display
syn match pythonBinError "\<0[bB][01]*[2-9]\d*\>" display
Expand Down
14 changes: 7 additions & 7 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Класс
# Numbers

0 1 2 9 10 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77 1023434 0x0

0:
# Erroneous numbers

077 100L 0xfffffffL 0L 08 0xk 0x 0b102 0o78 0o123LaB
Expand Down Expand Up @@ -128,9 +128,9 @@ class Класс

# Trailing space errors.

break
"""
test
"""

break
"""

test
"""