aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Fix highlighting for character literals #602

Closed swandir closed 9 years ago

swandir commented 9 years ago

Character literal with quotation mark inside breaks the highlighting. Changing escape string to \'|\\ fixes it. (escape string for double-quoted strings is \"|\\)

Before: ggmacwk5r

After: image

Not sure why \\ is necessary to process " correctly though. I also tried escape='\' as it's done in C++ syntax mode but it gives incurrect result.

aBothe commented 9 years ago

Wow that's awesome! Thank you for fixing this ugly legacy bug!

aBothe commented 9 years ago

I hope there won't be escaping regressions.. but even if, there will be an other bug fix release :)