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

Slashy strings backslash syntax highlighting - by purpose? #16

Open
schwaerz opened this issue Feb 11, 2016 · 2 comments
Open

Slashy strings backslash syntax highlighting - by purpose? #16

schwaerz opened this issue Feb 11, 2016 · 2 comments

Comments

@schwaerz
Copy link

First of all: Thanks for the groovy syntax highlighting in Atom!
About this issue: I found that the syntax highlighting of slashy strings probably should not highligh backslash sequences as they will not be handled the same as for single and double quotet strings.
It's up to the receiver of these strings how the backslash sequences are handled.

  • If the receiver is a regex it will translate the backslash sequences
  • If the receiver e.g. is a windows file path, e.g.
new File(/c:\Users\myself\SomeFile.txt/)

there won't be any backslash translation done by anything.

@schwaerz
Copy link
Author

Looks like even the github formatter takes care about the '' in groovy slashy strings :-/

@JakeHP
Copy link
Owner

JakeHP commented Feb 16, 2016

Hey thanks for submitting an issue! I'll look into this when I can. PR's are appreciated.

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

No branches or pull requests

2 participants