*highlight: 7ms opt: (#m) doesn't need match, mend, mbegin

This commit is contained in:
Sebastian Gniazdowski 2016-10-15 13:01:16 +02:00
parent a051f6a6cb
commit 05cb4c6073

View file

@ -396,7 +396,6 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
# word, the parameter expansion will be highlighted as a reserved word --- but that
# incorrectness is outweighed by the usability improvement of permitting the use of
# parameters that refer to commands, functions, and builtins.
local -a match mbegin mend
local MATCH; integer MBEGIN MEND
if [[ $res == none ]] && (( ${+parameters} )) &&
[[ ${arg[1]} == \$ ]] && [[ ${arg:1} = (#m)([[:alpha:]_][[:alnum:]_]#|[[:digit:]]##) ]] &&