diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-14 09:59:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-14 09:59:04 +0000 |
commit | eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3 (patch) | |
tree | 90ce69fc60a966b5d31ad4700cbd84a72b3c2bed /Src/zsh.h | |
parent | 5858e79f4d942ab13414f5efaf6f280bac690060 (diff) | |
download | zsh-eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3.tar.gz zsh-eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3.tar.xz zsh-eab4f9a83c74b104bcfa81d574d5f8f8a7a85ad3.zip |
28528: Rearrange zleparse to lexflags
Add (z+n+)
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 1d793741a..cd479462b 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1823,6 +1823,34 @@ struct histent { #define HFILE_NO_REWRITE 0x0020 #define HFILE_USE_OPTIONS 0x8000 +/* + * Flags argument to bufferwords() used + * also by lexflags variable. + */ +/* + * Kick the lexer into special string-analysis + * mode without parsing. Any bit set in + * the flags has this effect, but this + * has otherwise all the default effects. + */ +#define LEXFLAGS_ACTIVE 0x0001 +/* + * Parse comments and treat each comment as a single string + */ +#define LEXFLAGS_COMMENTS_KEEP 0x0002 +/* + * Parse comments and strip them. + */ +#define LEXFLAGS_COMMENTS_STRIP 0x0004 +/* + * Either of the above + */ +#define LEXFLAGS_COMMENTS (LEXFLAGS_COMMENTS_KEEP|LEXFLAGS_COMMENTS_STRIP) +/* + * Treat newlines as whitespace + */ +#define LEXFLAGS_NEWLINE 0x0008 + /******************************************/ /* Definitions for programable completion */ /******************************************/ |