language-groovy icon indicating copy to clipboard operation
language-groovy copied to clipboard

Slashy strings backslash syntax highlighting - by purpose?

Open schwaerz opened this issue 9 years ago • 2 comments

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 avatar Feb 11 '16 07:02 schwaerz

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

schwaerz avatar Feb 11 '16 07:02 schwaerz

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

JakeHP avatar Feb 16 '16 02:02 JakeHP