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 for triple quoted strings #3979

Closed
scabug opened this issue Nov 5, 2010 · 8 comments
Closed

Incorrect syntax highlighting for triple quoted strings #3979

scabug opened this issue Nov 5, 2010 · 8 comments

Comments

@scabug
Copy link

scabug commented Nov 5, 2010

I've attached screenshot with illustration of broken syntax highlighting.

I use Scala 2.8.0 and following scala-mode:

(defconst scala-mode-version "0.5.99.5")
(defconst scala-mode-svn-revision "$$Revision: 21917 $$") 
@scabug
Copy link
Author

scabug commented Nov 5, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3979?orig=1
Reporter: Nikolay Artamonov (nartamonov)
Attachments:

@scabug
Copy link
Author

scabug commented Nov 5, 2010

Nikolay Artamonov (nartamonov) said:
Illustration of incorrect syntax highlighting in Emacs

@scabug
Copy link
Author

scabug commented Nov 5, 2010

Nikolay Artamonov (nartamonov) said:
Sorry, forgot to mention Emacs version: 23.2.1

@scabug
Copy link
Author

scabug commented Nov 5, 2010

Nikolay Artamonov (nartamonov) said:
I've seen similar ticket #1266, but it is 2 years old. May be Emacs 23 have more decent support for syntax? For example, python-mode does nice highlighting of multiline triple quoted string with " inside. See attached screenshot.

@scabug
Copy link
Author

scabug commented Nov 5, 2010

Nikolay Artamonov (nartamonov) said:
Proper syntax highlighting of multiline triple quoted string with embedded single quote (") in python-mode

@scabug
Copy link
Author

scabug commented Jan 11, 2013

@gkossakowski said:
Labeled as community because we don't have any emacs maintainers available.

Removed Fix version because we cannot schedule fix for this ticket.

@scabug
Copy link
Author

scabug commented May 2, 2013

Dennis Horte (dennish) said:
Changing the definition of scala-rawstring-re (line 116 of scala-mode-constants.el) to the following appears to solve this issue.

""""[^\"]\(\("[^\"]\|""[^\"]\)[^\"]\)*""""

The regex is adapted from the one used in python mode.

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@SethTisue
Copy link
Member

the emacs mode is no longer anywhere under scala/*, idk offhand where it lives these days

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

2 participants