Skip to content

Commit e01c318

Browse files
author
José Valim
committed
Merge pull request #44 from k1complete/master
sigil % to ~
2 parents 5a20791 + ea0c40d commit e01c318

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

elixir-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
"Elixir mode operators.")
342342

343343
(defvar elixir-mode-sigils '("B" "C" "R" "b" "c" "r")
344-
"%-prefixed sigils that are understood by `elixir-mode'.")
344+
"~-prefixed sigils that are understood by `elixir-mode'.")
345345

346346
(defvar elixir-basic-offset 2)
347347
(defvar elixir-key-label-offset 0)
@@ -367,8 +367,8 @@
367367
;; keywords:
368368
`(,(concat "\\<" (regexp-opt elixir-mode-keyword-names t) "\\>") . font-lock-keyword-face)
369369

370-
;; % Sigils
371-
`(,(concat "\\<%" (regexp-opt elixir-mode-sigils t) "\\>") . font-lock-builtin-face)
370+
;; ~ Sigils
371+
`(,(concat "\\<~" (regexp-opt elixir-mode-sigils t) "\\>") . font-lock-builtin-face)
372372

373373
;; builtins:
374374
`(,(concat "\\<" (regexp-opt elixir-mode-builtin-names t) "\\>") . font-lock-builtin-face)

elixir-smie.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
;; work:
1818
(modify-syntax-entry ?_ "w" elixir-mode-syntax-table)
1919
(modify-syntax-entry ?? "w" elixir-mode-syntax-table)
20+
(modify-syntax-entry ?~ "w" elixir-mode-syntax-table)
2021

2122
(modify-syntax-entry ?' "\"" elixir-mode-syntax-table)
2223
(modify-syntax-entry ?# "<" elixir-mode-syntax-table)

0 commit comments

Comments
 (0)