diff options
| author | Peter Stephenson <pws@zsh.org> | 2016-01-19 09:55:46 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2016-01-19 09:55:46 +0000 |
| commit | 8eb9070d6785f423dd9bdbbb0513aa47c8a08d62 (patch) | |
| tree | 412d2d74ceabd14860d313e9338de48e7b5d8291 /Src/zsh.h | |
| parent | 37646: bit missed out of previous readonly commit. (diff) | |
| download | zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.tar zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.tar.gz zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.tar.bz2 zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.tar.lz zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.tar.xz zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.tar.zst zsh-8eb9070d6785f423dd9bdbbb0513aa47c8a08d62.zip | |
37678: Now possible to quote "-" in pattern range
Diffstat (limited to 'Src/zsh.h')
| -rw-r--r-- | Src/zsh.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -192,24 +192,30 @@ struct mathfunc { #define Tilde ((char) 0x98) #define Qtick ((char) 0x99) #define Comma ((char) 0x9a) +#define Dash ((char) 0x9b) /* Only in patterns */ +/* + * Marks the last of the group above. + * Remaining tokens are even more special. + */ +#define LAST_NORMAL_TOK Dash /* * Null arguments: placeholders for single and double quotes * and backslashes. */ -#define Snull ((char) 0x9b) -#define Dnull ((char) 0x9c) -#define Bnull ((char) 0x9d) +#define Snull ((char) 0x9c) +#define Dnull ((char) 0x9d) +#define Bnull ((char) 0x9e) /* * Backslash which will be returned to "\" instead of being stripped * when we turn the string into a printable format. */ -#define Bnullkeep ((char) 0x9e) +#define Bnullkeep ((char) 0x9f) /* * Null argument that does not correspond to any character. * This should be last as it does not appear in ztokens and * is used to initialise the IMETA type in inittyptab(). */ -#define Nularg ((char) 0x9f) +#define Nularg ((char) 0xa0) /* * Take care to update the use of IMETA appropriately when adding @@ -220,7 +226,7 @@ struct mathfunc { * Also used in pattern character arrays as guaranteed not to * mark a character in a string. */ -#define Marker ((char) 0xa0) +#define Marker ((char) 0xa1) /* chars that need to be quoted if meant literally */ |
