Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

"DELETE" in string messes up syntax highlighting #161

Closed
dtenenba opened this issue Oct 20, 2016 · 4 comments
Closed

"DELETE" in string messes up syntax highlighting #161

dtenenba opened this issue Oct 20, 2016 · 4 comments

Comments

@dtenenba
Copy link

The following code:

            if method in ['PUT', 'DELETE']:
                if method == 'DELETE':
                    raise NotImplementedError("DELETE REST API calls aren't currently supported")
                response = self.__putCall__(url, headers, data)
                response =  response.split()[-1] # discard upload status msg (from curl put?)

Looks like this in Atom 1.11.2 and python-syntax 0.45.0:

image

Everything after line 147 is green. If I remove the word DELETE from that line things look ok:

image

@tsivula
Copy link

tsivula commented Oct 24, 2016

"UPDATE" does the same

@scttcper
Copy link

'SELECT' does the same for me. Looks like the sql highlighting is not ending.

@tsivula
Copy link

tsivula commented Nov 12, 2016

It seems this has already been covered in issue #143. Disabling language-sql seems to be a quick fix for this.

@dtenenba
Copy link
Author

I guess I'll close this as it's a duplicate (also of #143 and atom/atom#12146).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants