lang/sh: improve variable highlighting in quotes
This commit is contained in:
parent
cc594eca8e
commit
988ae683dd
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
(while
|
(while
|
||||||
(and (setq res
|
(and (setq res
|
||||||
(re-search-forward
|
(re-search-forward
|
||||||
"\\(\\$\\)\\({.+?}\\|\\<.+?\\>\\)"
|
"[^\\]\\(\\$\\)\\({.+?}\\|\\<[a-zA-Z0-9_]+\\|[@*#!]\\)"
|
||||||
limit t))
|
limit t))
|
||||||
(not (eq (nth 3 (syntax-ppss)) ?\"))))
|
(not (eq (nth 3 (syntax-ppss)) ?\"))))
|
||||||
res)))
|
res)))
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
(let (res)
|
(let (res)
|
||||||
(while
|
(while
|
||||||
(and (setq res
|
(and (setq res
|
||||||
(re-search-forward "\\(\\$(.+?)\\|`.+?`\\)"
|
(re-search-forward "[^\\]\\(\\$(.+?)\\|`.+?`\\)"
|
||||||
limit t))
|
limit t))
|
||||||
(not (eq (nth 3 (syntax-ppss)) ?\"))))
|
(not (eq (nth 3 (syntax-ppss)) ?\"))))
|
||||||
res)))
|
res)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue