Skip to content

Commit

Permalink
syntax: allow unquoted "[!" and "[^" in simple-word
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 2, 2020
1 parent e1eca65 commit 4bf8b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-syntax.sh
Expand Up @@ -1028,7 +1028,7 @@ _ble_syntax_bash_simple_rex_incomplete_word2=
function ble/syntax:bash/simple-word/update {
local q="'"

local letter='[^'${_ble_syntax_bashc_simple}']'
local letter='\[[!^]|[^'${_ble_syntax_bashc_simple}']'
local param1='\$([-*@#?$!0_]|[1-9][0-9]*|[a-zA-Z_][a-zA-Z_0-9]*)'
local param2='\$\{(#?[-*@#?$!0]|[#!]?([1-9][0-9]*|[a-zA-Z_][a-zA-Z_0-9]*))\}' # ${!!} ${!$} はエラーになる。履歴展開の所為?
local param=$param1'|'$param2
Expand Down

0 comments on commit 4bf8b86

Please sign in to comment.