bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.1k stars 258 forks source link

Clojure syntax highlighting: char literal double quote is treated as opening string #543

Closed NoahTheDuke closed 3 months ago

NoahTheDuke commented 5 months ago

Description Most character literals (which are mostly the same as in Java) are treated as chars, except for " (double-quote) which is always treated as an opening string.

Steps to Reproduce I am new to RSyntaxTextArea but I'm using it in clooj, which is where the screenshot below is from. I'm not exactly sure how to reproduce in another form.

Expected behavior The \" is treated as a char instead of an opening string.

Actual behavior It's treated as an opening string.

Screenshots

image

Java version

$ lein --version
Leiningen 2.11.2 on Java 11.0.20 OpenJDK 64-Bit Server VM

Additional context I tried to fix it, but the flex stuff was way over my head.

bobbylight commented 3 months ago

Thanks for the report! This'll be in the next release