mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
Cython supports C-style integer suffix (u, l, ll). I added them to Python lexer and annotator checker to highlight them in Python language. More information: - https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#differences-between-c-and-cython-expressions - https://en.cppreference.com/w/cpp/language/integer_literal GitOrigin-RevId: 97d7bcb19239f931d9ed5e5746aaed84ac09cbc8
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
print(<error descr="Python version 3.4 does not support <>, use != instead.">a <> 3</error>)
|
|
<error descr="Python version 3.4 does not support backquotes, use repr() instead">`foo()`</error>
|
|
a = <error descr="Python version 3.4 does not support a trailing 'l'.">123l</error>
|
|
a = <error descr="Python version 3.4 does not support this syntax. It requires '0o' prefix for octal literals">043</error>
|
|
a = 0X43
|
|
a = 0X43
|
|
a = 0x43
|
|
a = 0O43
|
|
a = 0o43
|
|
a = 0B1
|
|
a = 0b1
|
|
a = 0.0
|
|
s = u"text"
|
|
<error descr="Python version 3.4 does not support this syntax.">raise a, b, c</error>
|
|
<error descr="Python version 3.4 does not support this syntax.">raise a, b</error>
|
|
|
|
try:
|
|
pass
|
|
<error descr="Python version 3.4 does not support this syntax.">except a, name:
|
|
pass</error>
|
|
|
|
[x * 2 for x in <error descr="Python version 3.4 does not support this syntax in list comprehensions.">vec1, vec2</error>]
|
|
|
|
<error descr="Python version 3.4 does not have module __builtin__">import __builtin__</error>
|
|
|
|
<error descr="No exception to reraise">raise</error>
|
|
|
|
try:
|
|
pass
|
|
except:
|
|
raise
|
|
|
|
def exception_handler():
|
|
if undefined:
|
|
raise
|
|
log_somehow()
|
|
|