diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-10 20:05:48 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-10 20:05:48 +0100 |
commit | e86b3cce47e62c263301322ce24b56cf04b8cdb8 (patch) | |
tree | 91eaa77e5d56290e2d06e6d8340f6831fbd0b139 /Src/zsh.h | |
parent | 3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd (diff) | |
download | zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.tar.gz zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.tar.xz zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.zip |
36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index a99c90065..4e2cb656e 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1562,13 +1562,15 @@ typedef struct zpc_disables_save *Zpc_disables_save; #define PP_IFS 15 #define PP_IFSSPACE 16 #define PP_WORD 17 +#define PP_INCOMPLETE 18 +#define PP_INVALID 19 /* Special value for last definition */ -#define PP_LAST 17 +#define PP_LAST 19 /* Unknown type. Not used in a valid token. */ -#define PP_UNKWN 18 +#define PP_UNKWN 20 /* Range: token followed by the (possibly multibyte) start and end */ -#define PP_RANGE 19 +#define PP_RANGE 21 /* Globbing flags: lower 8 bits gives approx count */ #define GF_LCMATCHUC 0x0100 @@ -1577,6 +1579,15 @@ typedef struct zpc_disables_save *Zpc_disables_save; #define GF_MATCHREF 0x0800 #define GF_MULTIBYTE 0x1000 /* Use multibyte if supported by build */ +enum { + /* Valid multibyte character from charref */ + ZMB_VALID, + /* Incomplete multibyte character from charref */ + ZMB_INCOMPLETE, + /* Invalid multibyte character charref */ + ZMB_INVALID +}; + /* Dummy Patprog pointers. Used mainly in executable code, but the * pattern code needs to know about it, too. */ |