empty brackets in docstring breaks highlighting
This wasn't happening in other files, but for this script if a set of brackets are left empty in the docstring it breaks the highlighting for the rest of the file
@fletchapin I'm having some trouble reproducing this - could you please provide a code snippet that reproduces the issue? Thanks!
I figured out it occurs when I put the raw string tag r in front of the docstring. You can see this in the screenshots below.
The simplest repro case is this:
r'''[]'''
4
Any code after r'''[]''' is not highlighted like it should, in this case the 4.
I'm wondering why brackets in strings are even highlighted.
I can repro this in Atom 1.27.0:
Expected:
print()
r"""[ """
print()
Actual:

MagicPython package handles this correctly:

I see this too. I only run in to this issue with raw strings -- if you remove the r it seems to work as expected.