Currently Emacs d-mode cannot correctly highlight

`\`

because it doesn't understand that single backslashes are self-contained in back-quoted strings.

I believe this extract from d-mode.el

(defvar d-mode-syntax-table nil
  "Syntax table used in d-mode buffers.")
(or d-mode-syntax-table
    (setq d-mode-syntax-table
(let ((table (funcall (c-lang-const c-make-mode-syntax-table d))))
           ;; Make it recognize D `backquote strings`
           (modify-syntax-entry ?` "\"" table)

           ;; Make it recognize D's nested /+ +/ comments
           (modify-syntax-entry ?+  ". 23n"   table)
           table)))

is highly related to this problem but I don't understand the comment

           ;; Make it recognize D `backquote strings`

Ideas on how to fix this anyone?

Reply via email to