mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 21:54:48 +08:00
@@ -9,7 +9,7 @@
|
||||
# Keywords.
|
||||
|
||||
with break continue del exec return pass print raise global assert lambda yield
|
||||
for while if elif else import as try except finally and in is not or
|
||||
for while if elif else import as try except finally
|
||||
|
||||
from test import var as name
|
||||
|
||||
@@ -66,6 +66,23 @@ RuntimeWarning FutureWarning ImportWarning UnicodeWarning
|
||||
@ декоратор
|
||||
@ декоратор.décorateur
|
||||
|
||||
# Operators
|
||||
|
||||
and or in is not
|
||||
=
|
||||
- + * ** @ / // %
|
||||
& | ^ ~ << >>
|
||||
< <= == != >= >
|
||||
|
||||
# Erroneous operators
|
||||
|
||||
$ ?
|
||||
===
|
||||
-- ++ *** @@ /// %%
|
||||
&& || ^^ ~~ <<< >>>
|
||||
<== <<= !== !!= >== >>=
|
||||
%- +- -+
|
||||
|
||||
# Numbers
|
||||
|
||||
0 1 2 9 10 0x1f .3 12.34 0j 124j 34.2E-3 0b10 0o77 1023434 0x0
|
||||
@@ -141,11 +158,10 @@ f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
|
||||
Test
|
||||
'''
|
||||
|
||||
# Erroneous symbols or bad variable names.
|
||||
# Erroneous variable names
|
||||
|
||||
$ ? 6xav
|
||||
6xav
|
||||
|
||||
&& || ===
|
||||
|
||||
# Indentation errors.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user