Emacs d-mode cannot handle backquoted backslashe

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 31 01:40:11 PDT 2014


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?


More information about the Digitalmars-d-learn mailing list