branch: elpa/rust-mode
commit 186583df52a4c9cece95ba6bb6afc73ed958323e
Author: Sean Gillespie <[email protected]>
Commit: Sean Gillespie <[email protected]>

    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