Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lisp syntax highlighting treats ?\" as the start of a string. #186

Open
alexflint opened this issue Apr 26, 2016 · 4 comments
Open

lisp syntax highlighting treats ?\" as the start of a string. #186

alexflint opened this issue Apr 26, 2016 · 4 comments

Comments

@alexflint
Copy link

The lisp syntax highlighting incorrectly treats ?\" as the start of a string, where in fact it is a character literal. This results in an inversion of string/non-string regions:

screenshot 2016-04-26 12 11 44

ST3, Build 3103, OSX 10.10

@alexflint alexflint changed the title lisp syntax highlighting treats ?\" as the start of a string. lisp syntax highlighting treats ?\" as the start of a string. Apr 26, 2016
@wbond
Copy link

wbond commented Apr 26, 2016

I know effectively nothing about lisp, so I looked into this.

It seems #\ is common lisp and ?\ is emacs lisp? It seems the current syntax supports the former, but not that later. Is that correct?

@alexflint
Copy link
Author

@wbond Yes that is correct. I should have mentioned that I'm working with elisp.

@wbond
Copy link

wbond commented Apr 26, 2016

Does syntax highlighting of lisp usually take into account both variants, or are there usually enough differences to cause problems?

@alexflint
Copy link
Author

I'm actually not sure what other editors do, but there are relatively few syntactic differences between Common lisp / Elisp so it's probably possible to deal with them together. (Most of the differences are at the semantic level.)

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

No branches or pull requests

3 participants