void () { doTestStringHighlighting(LanguageLevel.PYTHON36, "rf'foo\\nbar'", "Py:FSTRING_START", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_END"); doTestStringHighlighting(LanguageLevel.PYTHON36, "rf'foo\\\nbar'", "Py:FSTRING_START", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_END"); doTestStringHighlighting(LanguageLevel.PYTHON36, "rf'foo\\", "Py:FSTRING_START", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT"); doTestStringHighlighting(LanguageLevel.PYTHON36, "rf'{x:\\n}'", "Py:FSTRING_START", "Py:FSTRING_FRAGMENT_START", "Py:IDENTIFIER", "Py:FSTRING_FRAGMENT_FORMAT_START", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_FRAGMENT_END", "Py:FSTRING_END"); doTestStringHighlighting(LanguageLevel.PYTHON36, "rf'{f\"\\n\"}'", "Py:FSTRING_START", "Py:FSTRING_FRAGMENT_START", "Py:FSTRING_START", "VALID_STRING_ESCAPE_TOKEN", "Py:FSTRING_END", "Py:FSTRING_FRAGMENT_END", "Py:FSTRING_END"); doTestStringHighlighting(LanguageLevel.PYTHON36, "f'{rf\"\\n\"}'", "Py:FSTRING_START", "Py:FSTRING_FRAGMENT_START", "Py:FSTRING_START", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_RAW_TEXT", "Py:FSTRING_END", "Py:FSTRING_FRAGMENT_END", "Py:FSTRING_END"); }