branch: elpa/web-mode
commit 5c8723ce3e663bf4019e4f0366470ce4e545b060
Merge: f8824054d6 34b08791ca
Author: fxbois <[email protected]>
Commit: GitHub <[email protected]>
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