From 644aecbb17c1efc3d0b1d90cc8cd49beee713428 Mon Sep 17 00:00:00 2001 From: Martin Gausby Date: Wed, 21 Oct 2015 16:45:19 +0200 Subject: [PATCH] Removed send_after from highlighted keywords --- elixir-mode.el | 2 +- test/elixir-mode-font-test.el | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/elixir-mode.el b/elixir-mode.el index 1d772e6a..71f32cf4 100644 --- a/elixir-mode.el +++ b/elixir-mode.el @@ -135,7 +135,7 @@ symbol-start (or "case" "cond" "for" "if" "unless" "try" "receive" "raise" "quote" "unquote" "unquote_splicing" "throw" - "super" "send" "send_after") + "super" "send") symbol-end)) (builtin-declaration . ,(rx (or line-start (not (any "."))) symbol-start diff --git a/test/elixir-mode-font-test.el b/test/elixir-mode-font-test.el index b9917ade..b0dadfc2 100644 --- a/test/elixir-mode-font-test.el +++ b/test/elixir-mode-font-test.el @@ -301,19 +301,16 @@ when" (should-not (eq (elixir-test-face-at 67) 'font-lock-keyword-face)) (should (eq (elixir-test-face-at 72) 'font-lock-keyword-face)))) -(ert-deftest elixir-mode-syntax-table/highlight-send-and-send-after () - "Highlight both send and send_after as keywords" +(ert-deftest elixir-mode-syntax-table/highlight-send () + "Highlight send as a keyword" :tags '(fontification syntax-table) (elixir-test-with-temp-buffer "defmodule Foo do def bar(pid) do send pid, :baz - send_after pid, :baz, 5000 end end" - (should (eq (elixir-test-face-at 40) 'font-lock-keyword-face)) - (should (eq (elixir-test-face-at 60) 'font-lock-keyword-face)) - (should (eq (elixir-test-face-at 65) 'font-lock-keyword-face)))) + (should (eq (elixir-test-face-at 40) 'font-lock-keyword-face)))) (ert-deftest elixir-mode-syntax-table/string-interpolation-in-words-list () "https://github.com/elixir-lang/emacs-elixir/issues/263"