Skip to content

Removed send_after from highlighted keywords #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion elixir-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions test/elixir-mode-font-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down