From f5ddf99a40da87424ad8f73fef902098d23bbffd Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 21 Feb 1996 21:28:23 +0000 Subject: [PATCH] (c++-mode-syntax-table): Don't use c-mode-syntax-table. --- lisp/progmodes/cplus-md.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/cplus-md.el b/lisp/progmodes/cplus-md.el index f5bf7802178..5e017473e8b 100644 --- a/lisp/progmodes/cplus-md.el +++ b/lisp/progmodes/cplus-md.el @@ -125,7 +125,19 @@ (if c++-mode-syntax-table () - (setq c++-mode-syntax-table (copy-syntax-table c-mode-syntax-table)) + (setq c++-mode-syntax-table (make-syntax-table)) + (modify-syntax-entry ?\\ "\\" c++-mode-syntax-table) + (modify-syntax-entry ?/ ". 14" c++-mode-syntax-table) + (modify-syntax-entry ?* ". 23" c++-mode-syntax-table) + (modify-syntax-entry ?+ "." c++-mode-syntax-table) + (modify-syntax-entry ?- "." c++-mode-syntax-table) + (modify-syntax-entry ?= "." c++-mode-syntax-table) + (modify-syntax-entry ?% "." c++-mode-syntax-table) + (modify-syntax-entry ?< "." c++-mode-syntax-table) + (modify-syntax-entry ?> "." c++-mode-syntax-table) + (modify-syntax-entry ?& "." c++-mode-syntax-table) + (modify-syntax-entry ?| "." c++-mode-syntax-table) + (modify-syntax-entry ?\' "\"" c++-mode-syntax-table) (modify-syntax-entry ?* ". 23b" c++-mode-syntax-table) (modify-syntax-entry ?/ ". 124" c++-mode-syntax-table) (modify-syntax-entry ?\n ">" c++-mode-syntax-table) -- 2.39.2