Skip to content

Commit

Permalink
syntax (ble/syntax:bash/simple-word/evaluate-path-spec): fix unrecogn…
Browse files Browse the repository at this point in the history
…ized "[!...]"
  • Loading branch information
akinomyoga committed Dec 2, 2020
1 parent 4bf8b86 commit 50fcd03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/core-syntax.sh
Expand Up @@ -1055,8 +1055,8 @@ function ble/syntax:bash/simple-word/update {

# @var _ble_syntax_bash_simple_rex_incomplete_word1
# @var _ble_syntax_bash_simple_rex_incomplete_word2
local letter1='[^{'${_ble_syntax_bashc_simple}']'
local letter2='[^'${_ble_syntax_bashc_simple}']'
local letter1='\[[!^]|[^{'${_ble_syntax_bashc_simple}']'
local letter2='\[[!^]|[^'${_ble_syntax_bashc_simple}']'
_ble_syntax_bash_simple_rex_incomplete_word1='^('$bquot'|'$squot'|'$dquot'|'$param'|'$letter1')+'
_ble_syntax_bash_simple_rex_incomplete_word2='^(('$bquot'|'$squot'|'$dquot'|'$param'|'$letter2')*)(\\|'$open_squot'|'$open_dquot')?$'
}
Expand All @@ -1083,7 +1083,7 @@ function ble/syntax:bash/simple-word/evaluate-last-brace-expansion {
local squot=$_ble_syntax_bash_simple_rex_squot
local dquot=$_ble_syntax_bash_simple_rex_dquot
local param=$_ble_syntax_bash_simple_rex_param
local letter='[^{,}'${_ble_syntax_bashc_simple}']'
local letter='\[[!^]|[^{,}'${_ble_syntax_bashc_simple}']'
local symbol='[{,}]'

local rex_range_expansion='^(([-+]?[0-9]+)\.\.\.[-+]?[0-9]+|([a-zA-Z])\.\.[a-zA-Z])(\.\.[-+]?[0-9]+)?$'
Expand Down Expand Up @@ -1335,7 +1335,7 @@ function ble/syntax:bash/simple-word/evaluate-path-spec {
local bquot=$_ble_syntax_bash_simple_rex_bquot
local squot=$_ble_syntax_bash_simple_rex_squot
local dquot=$_ble_syntax_bash_simple_rex_dquot
local letter1='[^'$sep$_ble_syntax_bashc_simple']'
local letter1='\[[!^]|[^'$sep$_ble_syntax_bashc_simple']'
local rex_path_element='('$bquot'|'$squot'|'$dquot'|'$param'|'$letter1')+'
local rex='^['$sep']?'$rex_path_element

Expand Down

0 comments on commit 50fcd03

Please sign in to comment.