atom / language-python

Python package for Atom
Other
190 stars 146 forks source link

Must not highlight backslash chars inside RAW string #311

Closed Alexey-T closed 4 years ago

Alexey-T commented 4 years ago

I use VSCode latest release, seems it has Atom parser for Python. Inside raw-strings like

r'some text' 
r"more text"
r'''text'''
r"""text"""

editor must ignore \r, \n etc symbols, because raw-strings don't process them.

Current screen from VSCode: symbols are highlighted

py-atom

rsese commented 4 years ago

Thanks for the report!

Though I can reproduce with Tree-sitter disabled, it looks like this isn't an issue Tree-sitter using Atom 1.40.1:

python-tree-sitter

As you may have heard, we are migrating from our old first-mate grammar engine to the new Tree-sitter engine. This will enable a number of new features, more consistent syntax highlighting, and better performance, among other benefits. In order to free up our limited resources, we have decided to stop maintaining the first-mate grammar when there is a built-in Tree-sitter grammar available. Since this issue applies only to the first-mate grammar, we are going to close it. Please let us know if we have misunderstood the description of the problem.