>From 0378400ba000cdaf0612b80406e29aee1fd97231 Mon Sep 17 00:00:00 2001 From: Vladislav Yegorov Date: Fri, 26 Jul 2024 20:55:22 +0200 Subject: [PATCH] Treat period as a symbol constituent in cc-mode * lisp/progmodes/cc-langs.el: Classify period as a symbol constituent, so decimal points for example don't divide the number into two symbols. --- lisp/progmodes/cc-langs.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 72cfdfa..f253df9 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -336,6 +336,7 @@ the comment syntax to handle both line style \"//\" and block style ;; Never native compile to allow cc-mode.el:467 hack. (declare (speed -1)) (modify-syntax-entry ?_ "_" table) + (modify-syntax-entry ?. "_" table) (modify-syntax-entry ?\\ "\\" table) (modify-syntax-entry ?+ "." table) (modify-syntax-entry ?- "." table) -- 2.45.2