Files
openide/python/testData/highlighting/unsupportedFeaturesInPython3.py
Mikhail Khorkov eae34dc336 PY-14844 Add integer suffix support for Cython
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
2020-02-05 08:01:18 +00:00

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()