mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Highlight possible history expansions in double-quoted strings.
This commit is contained in:
parent
50fbb5f76e
commit
76ea9e1df3
4 changed files with 119 additions and 0 deletions
|
|
@ -818,6 +818,13 @@ _zsh_highlight_main_highlighter_highlight_string()
|
|||
continue
|
||||
fi
|
||||
;;
|
||||
($histchars[1]) # ! - may be a history expansion
|
||||
if [[ $arg[i+1] != ('='|$'\x28'|$'\x7b'|[[:blank:]]) ]]; then
|
||||
style=history-expansion
|
||||
else
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
*) continue ;;
|
||||
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue