Commit Graph

13 Commits

Author SHA1 Message Date
Mikhail Golubev
0adac7f9ea i18n: Add initial support in PyCompatibilityInspection
All its warnings are extracted into the bundle, but they are still poorly
adapted for translation. Each of them in constructed from two separate
messages, a common prefix and an individual feature description, with negation
of the main verb being split. Only the first message can vary depending on
the affected versions number, but both parts of the verb need to agree in many
languages other than English. It's not clear how to address it without
overhauling inspection internals, thus it will be revised later.

I also slightly updated the warnings format. Namely, put "version" in plural,
if a warning applies to multiple Python versions, and removed trailing periods
from single-sentence messages.

GitOrigin-RevId: 51e577201b11fb4e8b6967e1f5ad27143ba9f82e
2020-08-19 14:22:06 +00:00
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
Semyon Proshev
d1e55f1978 Suppress highlighting empty raise without exception to re-raise in functions (PY-27232) 2018-11-30 20:03:42 +03:00
Semyon Proshev
c57210dc3e Deprecate Python 3.0 language level. Remove its usages (PY-27705) 2018-02-01 19:53:38 +03:00
Semyon Proshev
55949b3eb4 Fix highlighting for empty raises (PY-26510) 2017-10-23 19:42:13 +03:00
Ekaterina Tuzova
61ec21d0e1 fixed PY-13720 PyCharm incorrectly identifies syntax error for Python 3.4 2014-08-25 12:34:25 +04:00
Ekaterina Tuzova
ab9622ffc6 fixed PY-9274 Broken raw bytes literal parsing for Python 3.3
refactored lexer, added compatibility warnings, quickfix to remove not only U prefix
2013-03-29 16:44:08 +04:00
Ekaterina Tuzova
4409191c74 UnsupportedFeatures and PyCompatiblityInspection refactored. 2011-02-15 13:22:41 +03:00
Dmitry Jemerov
db1661bf46 disable incorrectly working and unneeded highlighting (PY-1424) 2010-09-14 21:22:04 +04:00
Dmitry Jemerov
a80ccb1f9c highlight raise without arguments outside of except block in Py3k (PY-1410) 2010-07-29 19:50:01 +04:00
alexey.ivanov
2eabb95312 PY-823 Octal prefix inspection erroneously complains about floating point literals 2010-04-14 14:21:06 +04:00
alexey.ivanov
d502b27c8b PY-812 Octal literal inspection erroneously triggers on hex literals 2010-04-07 16:35:02 +04:00
alexey.ivanov
5098035f18 Unsupported features inspection is annotator now 2010-03-06 19:07:38 +03:00