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

incorrect syntax highlighting when using the regex pattern reader macro in Clojure file. #1728

Open
martinodb opened this issue Dec 23, 2017 · 4 comments

Comments

@martinodb
Copy link

Hello,
I'm having problems using Geany in Clojure files with regular expression, using the #"pattern" reader macro. Sometimes the closing double quote is interpreted as an opening quote and whatever comes after, as a string. I think it happens when I need to use the parens to capture a group in the pattern. My Geany version is 1.27, my system is Linux Mint 18.2 Sonya.
Any ideas? Thanks in advance!
Here's a screen capture of a simple example to illustrate the problem (this code works, the output of lein run is Hello,):

scrcapgeany

@codebrainz
Copy link
Member

Presumably it's treating #" as a function abbreviation just like it would #', even though the former is undefined in Common Lisp. I don't think it knows anything about Clojure specifically.

@elextr
Copy link
Member

elextr commented Dec 23, 2017

Its simply that the Clojure filetype is built on the Lisp filetype, and uses the Lisp highlighting lexer. But #" is undefined in Common Lisp so it skips the opening " and starts a string at the closing ".

Highlighting is done by the Scintilla editing widget we use, which is a separate project so you should report it there and maybe it can be added since #" is undefined in Lisp.

@elextr
Copy link
Member

elextr commented Jan 29, 2018

@martinodb did you report it to scintilla, maybe post a link to the scintilla issue.

@martinodb
Copy link
Author

Well, here it is, better late than never, I guess ;)

https://sourceforge.net/p/scintilla/bugs/2075/

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