lang/sh: improve variable highlighting in quotes

This commit is contained in:
Henrik Lissner 2017-10-17 23:55:48 +02:00
parent cc594eca8e
commit 988ae683dd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -8,7 +8,7 @@
(while
(and (setq res
(re-search-forward
"\\(\\$\\)\\({.+?}\\|\\<.+?\\>\\)"
"[^\\]\\(\\$\\)\\({.+?}\\|\\<[a-zA-Z0-9_]+\\|[@*#!]\\)"
limit t))
(not (eq (nth 3 (syntax-ppss)) ?\"))))
res)))
@ -20,7 +20,7 @@
(let (res)
(while
(and (setq res
(re-search-forward "\\(\\$(.+?)\\|`.+?`\\)"
(re-search-forward "[^\\]\\(\\$(.+?)\\|`.+?`\\)"
limit t))
(not (eq (nth 3 (syntax-ppss)) ?\"))))
res)))