[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/web-mode 34b08791ca 05/15: [ Elixir ] Match atoms, variabl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/web-mode 34b08791ca 05/15: [ Elixir ] Match atoms, variables and function names before keywords |
Date: |
Fri, 19 Aug 2022 05:59:27 -0400 (EDT) |
branch: elpa/web-mode
commit 34b08791ca84463ed6ed75ca7f60abfa81bfd7fe
Author: Wilhelm Hugo Kirschbaum <wkirschbaum@gmail.com>
Commit: Wilhelm Hugo Kirschbaum <wkirschbaum@gmail.com>
[ Elixir ] Match atoms, variables and function names before keywords
When using a @for variable, the font is wrong. Similarly with :for
etc..
Moving the keyword and constants down the list means it will match it
first. It also makes it not jump colours when choosing variable names
like @form between r and m.
---
web-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web-mode.el b/web-mode.el
index b66beee922..f836929707 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -2277,11 +2277,11 @@ shouldn't be moved back.)")
(defvar web-mode-elixir-font-lock-keywords
(list
- (cons (concat "\\_<\\(" web-mode-elixir-keywords "\\)\\_>") '(0
'web-mode-builtin-face))
- (cons (concat "\\_<\\(" web-mode-elixir-constants "\\)\\_>") '(0
'web-mode-constant-face))
- '("def[ ]+\\([[:alnum:]_]+\\)" 1 'web-mode-function-name-face)
'("@\\([[:alnum:]_]+\\)" 0 'web-mode-variable-name-face)
'("[ ]\\(:[[:alnum:]-_]+\\)" 1 'web-mode-symbol-face)
+ '("def[ ]+\\([[:alnum:]_]+\\)" 1 'web-mode-function-name-face)
+ (cons (concat "\\_<\\(" web-mode-elixir-keywords "\\)\\_>") '(0
'web-mode-builtin-face))
+ (cons (concat "\\_<\\(" web-mode-elixir-constants "\\)\\_>") '(0
'web-mode-constant-face))
))
(defvar web-mode-erlang-font-lock-keywords
- [nongnu] elpa/web-mode updated (d8258fb33c -> b409f4bf33), ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 3ccbe1279b 01/15: Add class and tag faces, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 0e65a090d3 03/15: Enable string/literal interpolation for typescript, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 34b08791ca 05/15: [ Elixir ] Match atoms, variables and function names before keywords,
ELPA Syncer <=
- [nongnu] elpa/web-mode edf42372ba 06/15: fixed: web-mode-comment-indent-new-line, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 5c8723ce3e 11/15: Merge pull request #1202 from wkirschbaum/elixir-font-lock-tweak, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 0fbf102616 08/15: Fix ‘{{~’ completion for Handlebars, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode b409f4bf33 15/15: Merge pull request #1122 from minikN/master, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 2956ff94f7 02/15: Allow extra expanders to override standard ones, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 1f037843ca 04/15: update: add mc/mark-previous-like-this `web-mode-commands-like-expand-region`, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 4833df593e 09/15: Merge pull request #1248 from andersk/handlebars-completion, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode a0eb70a46f 14/15: Merge pull request #1153 from liZe/patch-1, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode a6b2d7b13e 13/15: Merge pull request #1167 from ojab/master, ELPA Syncer, 2022/08/19
- [nongnu] elpa/web-mode 313fa1c415 12/15: Merge pull request #1180 from Aaronzinhoo/update-default-like-expand-region-commands, ELPA Syncer, 2022/08/19