emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 186583d 096/486: Mark _ as a word constituent to


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 186583d 096/486: Mark _ as a word constituent to avoid highlighting parts of identifiers as keywords
Date: Sat, 7 Aug 2021 09:24:56 -0400 (EDT)

branch: elpa/rust-mode
commit 186583df52a4c9cece95ba6bb6afc73ed958323e
Author: Sean Gillespie <sean.william.g@gmail.com>
Commit: Sean Gillespie <sean.william.g@gmail.com>

    Mark _ as a word constituent to avoid highlighting parts of identifiers as 
keywords
---
 rust-mode.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/rust-mode.el b/rust-mode.el
index 661dc21..f25a590 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -31,6 +31,11 @@
     (modify-syntax-entry ?\" "\"" table)
     (modify-syntax-entry ?\\ "\\" table)
 
+    ;; mark _ as a word constituent so that identifiers
+    ;; such as xyz_type don't cause type to be highlighted
+    ;; as a keyword
+    (modify-syntax-entry ?_ "w" table)
+
     ;; Comments
     (modify-syntax-entry ?/  ". 124b" table)
     (modify-syntax-entry ?*  ". 23"   table)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]