Improve regex for simple and braced variable detection
This commit is contained in:
parent
43f68fefd3
commit
c2bf5cec36
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ _redir_or_assign_word () {
|
||||||
_double_quoted_string='\$?"([^"]|\\")*"' \
|
_double_quoted_string='\$?"([^"]|\\")*"' \
|
||||||
_single_quoted_string="\\\$?'[^']*'" \
|
_single_quoted_string="\\\$?'[^']*'" \
|
||||||
_backtick_string='`([^`]|\\`)*`' \
|
_backtick_string='`([^`]|\\`)*`' \
|
||||||
_simple_variable='\$[[:alpha:]_][[:alnum:]]*' \
|
_simple_variable='\$([[:alpha:]_][[:alnum:]]*|[-_$!*#[:digit:]])' \
|
||||||
_advanced_variable='\$\{([[:alnum:]]+|[#-_$!*#])[^{}]*\}' \
|
_advanced_variable='\$\{([[:alpha:]_][[:alnum:]]*|[-_$!*#[:digit:]])[^}]*\}' \
|
||||||
_deprecated_arithmetic_eval='\$\[[^][]*\]' \
|
_deprecated_arithmetic_eval='\$\[[^][]*\]' \
|
||||||
_cmd_subst_or_arithmetic_eval='\$\([^()]*\)' \
|
_cmd_subst_or_arithmetic_eval='\$\([^()]*\)' \
|
||||||
_process_substition='<\([^()]*\)' \
|
_process_substition='<\([^()]*\)' \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue