X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/94526c3fc940d29e2ff9dce5fc1f7b024f78fcc6..87def30c773641959e14aedde43e4af6639f7d1f:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 76bac70..24c2afa 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2649,15 +2649,16 @@ name, as a symbol." (defun mdw-fontify-rust () ;; Hack syntax categories. + (modify-syntax-entry ?% ".") (modify-syntax-entry ?= ".") ;; Fontify keywords and things. (make-local-variable 'font-lock-keywords) (let ((rust-keywords - (mdw-regexps "abstract" "alignof" "as" + (mdw-regexps "abstract" "alignof" "as" "async" "await" "become" "box" "break" - "const" "continue" "create" - "do" + "const" "continue" "crate" + "do" "dyn" "else" "enum" "extern" "final" "fn" "for" "if" "impl" "in" @@ -2667,8 +2668,8 @@ name, as a symbol." "priv" "proc" "pub" "pure" "ref" "return" "sizeof" "static" "struct" "super" - "trait" "type" "typeof" - "unsafe" "unsized" "use" + "trait" "try" "type" "typeof" + "union" "unsafe" "unsized" "use" "virtual" "where" "while" "yield")) @@ -2701,7 +2702,7 @@ name, as a symbol." "\\|" "0o[0-7_]+" "\\|" "0b[01_]+" "\\)" - "\\([ui]\\(8\\|16\\|32\\|64\\|s\\|size\\)\\)?" + "\\([ui]\\(8\\|16\\|32\\|64\\|size\\)\\)?" "\\)\\_>") '(0 mdw-number-face)) @@ -3168,6 +3169,8 @@ strip numbers instead." (local-set-key [?*] 'mdw-rexx-electric-*) (mapcar #'(lambda (ch) (modify-syntax-entry ch "w")) '(?! ?? ?# ?@ ?$)) + (mapcar #'(lambda (ch) (modify-syntax-entry ch ".")) + '(?¬)) (mdw-standard-fill-prefix "\\([ \t]*/?\*[ \t]*\\)") ;; Set up keywords and things for fontification.