PY-20921 PyStringLiteralLexer skips string prefixes consistently with Python lexer
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Thu, 29 Sep 2016 16:19:41 +0000 (19:19 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 5 Oct 2016 13:11:37 +0000 (16:11 +0300)
commit7bf5f5f56f1197142955f61343c87fed941636cc
treeb0d430a8fbd547d457ad89fa9a1db7e2e89013ef
parent702980e7df2d76b524cf80154b3fa5a6e8ea1ac1
PY-20921 PyStringLiteralLexer skips string prefixes consistently with Python lexer

Common logic for skipping string prefixes was moved to PythonStringUtil
and reused in various classes that implemented it by their own before.
python/psi-api/src/com/jetbrains/python/PythonStringUtil.java
python/src/com/jetbrains/python/editor/BaseQuoteHandler.java
python/src/com/jetbrains/python/lexer/PyStringLiteralLexer.java
python/src/com/jetbrains/python/lexer/Python.flex
python/src/com/jetbrains/python/psi/PyUtil.java
python/src/com/jetbrains/python/psi/impl/PyStringLiteralExpressionImpl.java
python/testSrc/com/jetbrains/python/PyEditingTest.java
python/testSrc/com/jetbrains/python/PyStringLiteralLexerTest.java