lang/sh: tweak interpolation + builtin fontification
This commit is contained in:
parent
d7a562faf5
commit
8428433898
1 changed files with 2 additions and 2 deletions
|
@ -33,12 +33,12 @@
|
|||
;; 3. Fontify built-in/common commands (see `+sh-builtin-keywords')
|
||||
(font-lock-add-keywords
|
||||
'sh-mode `((+sh--match-variables-in-quotes
|
||||
(1 'default prepend)
|
||||
(1 'font-lock-constant-face prepend)
|
||||
(2 'font-lock-variable-name-face prepend))
|
||||
(+sh--match-command-subst-in-quotes
|
||||
(1 'sh-quoted-exec prepend))
|
||||
(,(regexp-opt +sh-builtin-keywords 'words)
|
||||
(0 'font-lock-builtin-face append))))
|
||||
(0 'font-lock-type-face append))))
|
||||
|
||||
;; autoclose backticks
|
||||
(sp-local-pair 'sh-mode "`" nil :unless '(sp-point-before-word-p sp-point-before-same-p))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue