diff options
author | Petteri Räty <petsku@petteriraty.eu> | 2011-06-11 16:08:39 +0300 |
---|---|---|
committer | Petteri Räty <petsku@petteriraty.eu> | 2011-06-14 10:35:51 +0300 |
commit | 581066529adf685ca48bd7cdc2a2004a77141752 (patch) | |
tree | 84e2a8a5be0642359d83cf2a0847ae8dd1e3059d /bashast/gunit | |
parent | Parser: left factor bracket_pattern_match rule (diff) | |
download | libbash-581066529adf685ca48bd7cdc2a2004a77141752.tar.gz libbash-581066529adf685ca48bd7cdc2a2004a77141752.tar.bz2 libbash-581066529adf685ca48bd7cdc2a2004a77141752.zip |
Parser: fix bracket pattern match negation
The negation operator is supposed to be right after the opening left
bracket. The right bracket will come after it when it's part of the
matched characters.
Diffstat (limited to 'bashast/gunit')
-rw-r--r-- | bashast/gunit/fname.gunit | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bashast/gunit/fname.gunit b/bashast/gunit/fname.gunit index 799570d..621b29d 100644 --- a/bashast/gunit/fname.gunit +++ b/bashast/gunit/fname.gunit @@ -56,6 +56,7 @@ fname: "ab[!d-h]" -> (STRING ab (MATCH_ANY_EXCEPT d - h)) "ab[^d-h]" -> (STRING ab (MATCH_ANY_EXCEPT d - h)) "ab[]c]" -> (STRING ab (MATCH_ANY ] c)) +"ab[]!]" -> (STRING ab (MATCH_ANY ] !)) "ab[:alpha:]" -> (STRING ab (MATCH_ANY : alpha :)) "ab[=c=]" -> (STRING ab (MATCH_ANY = c =)) "ab[.c.]" -> (STRING ab (MATCH_ANY . c .)) |