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

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

[nongnu] elpa/web-mode 5c8723ce3e 11/15: Merge pull request #1202 from w


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode 5c8723ce3e 11/15: Merge pull request #1202 from wkirschbaum/elixir-font-lock-tweak
Date: Fri, 19 Aug 2022 05:59:27 -0400 (EDT)

branch: elpa/web-mode
commit 5c8723ce3e663bf4019e4f0366470ce4e545b060
Merge: f8824054d6 34b08791ca
Author: fxbois <fxbois@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #1202 from wkirschbaum/elixir-font-lock-tweak
    
    [ Elixir ] Match atoms, variables and function names before keywords
---
 web-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/web-mode.el b/web-mode.el
index d5667bca62..af724c28fc 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -2348,11 +2348,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



reply via email to

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