[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode ef152ad 459/486: Minor fixes (#388)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode ef152ad 459/486: Minor fixes (#388) |
Date: |
Sat, 7 Aug 2021 09:26:14 -0400 (EDT) |
branch: elpa/rust-mode
commit ef152ad23cc66cdf9ca885b4d47fece69f3edbf1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: GitHub <noreply@github.com>
Minor fixes (#388)
* Rename rust-mode-font-lock-keywords to rust-font-lock-keywords.
* Rename rust-mode-keywords to rust-keywords.
* Properly define rust-buffer-project.
---
rust-mode.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/rust-mode.el b/rust-mode.el
index 0e95575..d5e0b93 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -25,7 +25,7 @@
(defvar electric-pair-skip-self)
(defvar electric-indent-chars)
-(defvar rust-buffer-project)
+(defvar rust-buffer-project nil)
(make-variable-buffer-local 'rust-buffer-project)
(defun rust-re-word (inner) (concat "\\<" inner "\\>"))
@@ -669,7 +669,7 @@ buffer."
(progn (goto-char pos2) (line-end-position)))))
;; Font-locking definitions and helpers
-(defconst rust-mode-keywords
+(defconst rust-keywords
'("as" "async" "await"
"box" "break"
"const" "continue" "crate"
@@ -781,7 +781,7 @@ Returns nil if the point is not within a Rust string."
"print"
"println")
"List of builtin Rust macros for string formatting.
-This is used by `rust-mode-font-lock-keywords'.
+This is used by `rust-font-lock-keywords'.
(`write!' is handled separately).")
(defvar rust-formatting-macro-opening-re
@@ -792,11 +792,11 @@ This is used by `rust-mode-font-lock-keywords'.
"\\(?:r#*\\)?\""
"Regular expression to match the start of a Rust raw string.")
-(defvar rust-mode-font-lock-keywords
+(defvar rust-font-lock-keywords
(append
`(
;; Keywords proper
- (,(regexp-opt rust-mode-keywords 'symbols) . font-lock-keyword-face)
+ (,(regexp-opt rust-keywords 'symbols) . font-lock-keyword-face)
;; Contextual keywords
("\\_<\\(default\\)[[:space:]]+fn\\_>" 1 font-lock-keyword-face)
@@ -1162,7 +1162,7 @@ Otherwise, for instance if it's an opening angle bracket,
return nil."
;; If we are looking back at a keyword, it's an angle bracket
;; unless that keyword is "self", "true" or "false"
- ((rust-looking-back-symbols rust-mode-keywords)
+ ((rust-looking-back-symbols rust-keywords)
(rust-looking-back-symbols '("self" "true" "false")))
((rust-looking-back-str "?")
@@ -1858,7 +1858,7 @@ Return the created process."
(setq-local indent-line-function 'rust-mode-indent-line)
;; Fonts
- (setq-local font-lock-defaults '(rust-mode-font-lock-keywords
+ (setq-local font-lock-defaults '(rust-font-lock-keywords
nil nil nil nil
(font-lock-syntactic-face-function
. rust-mode-syntactic-face-function)))
- [nongnu] elpa/rust-mode 13c4335 462/486: Improve doc-strings, (continued)
- [nongnu] elpa/rust-mode 13c4335 462/486: Improve doc-strings, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode c23453d 463/486: rearrange I: Move options and faces to beginning of file, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 649f492 484/486: Create rust-cargo.el from existing code, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 198c777 386/486: Replaced font-lock-fontify-buffer with font-lock-ensure, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode a871d10 390/486: Merge pull request #298 from jjwest/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 0a94268 396/486: Merge pull request #307 from Bunogi/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 86bc286 401/486: Add specific distribution for EVM, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 06b3b60 412/486: update readme (#327), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode c0cc6dc 420/486: Allow pass custom flags to rustfmt. (#338), ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 888f3de 442/486: rust--format-fix-rustfmt-buffer: replace "stdin:" as well as "<stdin>:"., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode ef152ad 459/486: Minor fixes (#388),
ELPA Syncer <=
- [nongnu] elpa/rust-mode 0797e7b 017/486: add Url, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 5375e54 454/486: Test byte compilation of test code., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 33d178d 030/486: Make 'foo use font-lock-builtin-face, like module names, and make capitalized identifiers optionally use font-lock-type-face, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 9e2221c 034/486: Fix typo, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 8f926be 031/486: Emacs: Update emacs mode to be more similar to the vim mode., ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode cfb4408 354/486: Merge pull request #258 from sebastiencs/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode b861aa9 358/486: Fixed indent when ? operator is used in chained method calls, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 31b8453 361/486: update to include line number and column information, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode 3254297 366/486: Bump version, ELPA Syncer, 2021/08/07
- [nongnu] elpa/rust-mode d3a7025 377/486: Merge pull request #292 from mookid/imenu-impl, ELPA Syncer, 2021/08/07