Simplify sigil font-lock match for elixir-ts-mode
There is no need to match on specific sigils, except for regex. * lisp/progmodes/elixir-ts-mode.el (elixir-ts--font-lock-settings): Update sigil match (bug#64275).
This commit is contained in:
parent
70e25298f1
commit
2c72eecbaa
1 changed files with 3 additions and 4 deletions
|
@ -469,12 +469,11 @@
|
|||
:override t
|
||||
`((sigil
|
||||
(sigil_name) @elixir-ts-font-sigil-name-face
|
||||
(:match "^[sSwWpPUD]$" @elixir-ts-font-sigil-name-face))
|
||||
(:match "^[^HF]$" @elixir-ts-font-sigil-name-face))
|
||||
@font-lock-string-face
|
||||
(sigil
|
||||
"~" @font-lock-string-face
|
||||
(sigil_name) @elixir-ts-font-sigil-name-face
|
||||
(:match "^[rR]$" @elixir-ts-font-sigil-name-face))
|
||||
(sigil_name) @font-lock-regexp-face
|
||||
(:match "^[rR]$" @font-lock-regexp-face))
|
||||
@font-lock-regexp-face
|
||||
(sigil
|
||||
"~" @font-lock-string-face
|
||||
|
|
Loading…
Add table
Reference in a new issue