Commit Graph
19 Commits
Author SHA1 Message Date
Mikhail Golubev ead37e8492 PY-21697 Handle sequences like '\\''' in multiline strings in Python lexer
Previously, they would get matched as '\ followed by \', and then,
two remaining quotes. Therefore the literal was considered unterminated
by the lexer. It, in turn, broke multiple assertions in
PyStringLiteralLexer because it used to find different string's end than
PythonHighlightingLexer and rendered the whole editor unresponsive.
2016-12-20 12:53:10 +03:00
Mikhail Golubev 6809e81440 PY-18486 Don't auto close quotes that start docstring, so PythonEnterHandler could complete it 2016-03-29 17:13:10 +03:00
Valentina Kiryushkina b6566572f7 PY-1779 Add autoclosing for triple quotes 2015-12-09 20:22:33 +03:00
Mikhail Golubev cef43b47f6 PY-15332 Omit tags and sections for return values in docstrings for __init__ method 2015-12-04 16:03:31 +03:00
Mikhail Golubev 40733b0fd4 PY-17183 Heuristically determine when incomplete docstring captures another declaration
To do so I search for the line inside a docstring that starts with
either "def " or "class " and has indentation less than that of opening
docstring quotes.
2015-10-25 15:49:43 +03:00
Mikhail Golubev a955f6c927 PY-16765 For sections inside Google code style docstring use indentation configured for Python
PyFunctionBuilder and PyDocstringGenerator require a PSI element to
use proper formatting and style for generated docstring.
2015-09-23 18:42:17 +03:00
Mikhail Golubev d0b7dee163 PY-16765 Automatically add indentation after section header in Google code style docstrings 2015-09-07 20:01:05 +03:00
Mikhail Golubev 4653df951e PY-16828 Insert docstring stub on enter even if opening quotes have e.g. unicode prefix
Also I removed PythonDocCommentUtil and moved its only method to PythonEnterHandler
2015-09-07 16:07:25 +03:00
Mikhail Golubev 4bae7ca3c3 PY-16656 Add test cases. Issue was fixed when enter and space handlers started to use PyDocstringGenerator 2015-09-02 14:35:42 +03:00
Mikhail Golubev 865be5f5ca Add missing tests for insertion of docstring stubs on typing enter or space 2015-09-02 14:35:05 +03:00
Dennis Ushakov 8f2e8395b8 crlf 2011-01-17 15:49:46 +03:00
Dmitry Jemerov 838a58f733 avoid inserting duplicate colon when adding 'self' (PY-2652) 2011-01-14 19:34:46 +01:00
Dmitry Cheryasov b04729ef36 PY-1767: auto-add a correct first parameter to a method + tests. 2010-11-30 18:37:10 +02:00
Dmitry Jemerov 1f1dc55588 missed testdata 2010-07-15 18:57:21 +04:00
Dmitry Jemerov c2d6646138 Python backspace unindent works correctly when tabs are used (PY-1270) 2010-07-15 18:57:20 +04:00
Dmitry Jemerov ee323fe9d3 if line comment prefix is followed by a single space, uncomment line action deletes that space (PY-980) 2010-05-13 22:37:58 +04:00
Oleg Shpynov 1ea77268f3 PY-853
Back space action should respect indentation settings in non empty lines
2010-04-19 13:24:34 +04:00
Dmitry Cheryasov 351fd7c91d Test for auto-unindent of 'else' and freinds. Only typing (no completion). 2010-03-06 07:14:18 +02:00
Dmitry Jemerov 94a6f92037 missing testdata file 2010-01-27 22:35:54 +03:00