Skip to content

Commit ea0c40d

Browse files
committed
sigil % to ~
1 parent f1b545a commit ea0c40d

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
@@ -336,7 +336,7 @@
336336
"Elixir mode operators.")
337337

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

341341
(defvar elixir-basic-offset 2)
342342
(defvar elixir-key-label-offset 0)
@@ -362,8 +362,8 @@
362362
;; keywords:
363363
`(,(concat "\\<" (regexp-opt elixir-mode-keyword-names t) "\\>") . font-lock-keyword-face)
364364

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

368368
;; builtins:
369369
`(,(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)