On Mon, 2014-08-04 at 12:25 +0000, Atila Neves via Digitalmars-d-learn wrote: > I took a look and I don't really know if it's possible without > using the Emacs > 24 only suggestion in the Stack Overflow > comment to your question. > > As far as I can see, before that Emacs syntax tables have a > notion of what a string is and what an escape character is. The > d-mode code adds the backtick as an alternative to double and > single quotes but can't do anything about the backslash. Unless > it disables backslash as an escape character everywhere. > > I tried setting backtick to a function that returns "\"" instead > of the value to see if I could then tailor the function to depend > on whether not the point was in a backtick string but that didn't > work since `modify-syntax-entry` checks to see if the argument is > a string. > > BTW, python-mode has the same problem, I checked with r"\".
Per Nordlöw has offered a putative fix via a pull request. I'll check out the claim and if it seems to be true (and I fully expect it to be so) I'll accept the pull request. People using MELPA should see the new package quite quickly. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part