summary refs log tree commit diff
path: root/Src/lex.c
Commit message (Collapse)AuthorAgeFilesLines
* 34322: bug with interface to parsestr() etc.Peter Stephenson2015-01-181-9/+21
| | | | | | | Was showing up in places like ${(e)...} where command substitution could reallocate the token string, but actually there was never any guarantee that the lexer wouldn't do that, so this was always a bit iffy.
* 34319: fix alias expansion in history for command substitutionPeter Stephenson2015-01-181-1/+1
|
* 32413: turn off history word marking in cmd substPeter Stephenson2015-01-161-0/+2
|
* 34304: improve use of new cmd subst in completionPeter Stephenson2015-01-161-10/+103
|
* 34234: use structures for normal and raw lexical buffer statePeter Stephenson2015-01-111-110/+95
|
* Rearrange context saving.Peter Stephenson2015-01-091-261/+60
| | | | | | | Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous.
* Fix command substitutions to parse contents as they are read in.Peter Stephenson2015-01-081-178/+320
| | | | | | | Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test.
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles.
* 33940: handle backslash-meta correctly in lexerJun-ichi Takimoto2014-12-101-1/+13
|
* 33298: make lexrestore() more signal-safeBarton E. Schaefer2014-09-301-53/+57
|
* 32789: --enable-zsh-valgrind allows analysis of heap allocationPeter Stephenson2014-06-241-4/+6
|
* unposted: fix previous commit: ihwend -> hwendPeter Stephenson2013-07-221-1/+1
|
* 31559: Fix history line problem with aliases and commentsPeter Stephenson2013-07-221-0/+1
|
* 30783: We don't want leading "="s to be active whenPeter Stephenson2012-11-081-39/+41
| | | | | tokenising strings that aren't going to be treated as command line arguments
* 30715: use enum lextok for variables containing lexical tokensPeter Stephenson2012-10-051-10/+17
|
* users/17310: we can't treat < after [ as a normal character.Peter Stephenson2012-10-031-2/+2
| | | | Document problem and test for case that needs to work.
* users/17304: angle brackets aren't associated with special parsingPeter Stephenson2012-10-021-2/+2
| | | | inside square brackets
* 29955++: IGNORE_CLOSE_BRACES optionPeter Stephenson2011-12-081-1/+2
|
* 29934: Stef van Vlierberghe: uninitialised memory after lexer reallocPeter Stephenson2011-12-031-10/+2
|
* 29776: fix case of double quotes in double-quote-stylePeter Stephenson2011-09-151-1/+1
| | | | parsing where end character is something else
* 29491: remove some variables set but not usedPeter Stephenson2011-06-191-5/+4
|
* 29307, 29308 + replies: Fix some doubled words in docs and comments.Mikael Magnusson2011-05-191-1/+1
|
* 28799: lexical analyser didn't stop early enough with completion wordsPeter Stephenson2011-02-241-1/+1
|
* 28783: allow parentheses to be special in more places with SH_GLOBPeter Stephenson2011-02-211-1/+3
|
* 28537: fix word splitting on "((" when it was nested subshells rather thanPeter Stephenson2010-12-191-0/+5
| | | | arithmetic
* unposted: another neatening of lexflags use in ZLEPeter Stephenson2010-12-141-7/+14
|
* lexsave/lexrestore lexflagsPeter Stephenson2010-12-141-2/+5
| | | | add new LEXFLAGS_ZLE
* 28528: Rearrange zleparse to lexflagsPeter Stephenson2010-12-141-27/+18
| | | | Add (z+n+)
* 28526: remove bogus newline with stripped comment zplittingPeter Stephenson2010-12-131-1/+9
|
* 28510: add (z+c+) and (z+C+) parameter flagsPeter Stephenson2010-12-121-7/+46
|
* 28418: add ${NAME:OFFSET:LENGTH} substitutionPeter Stephenson2010-11-181-7/+19
|
* 28259: Finally fix some ancient problems with here-documentsPeter Stephenson2010-09-141-4/+6
|
* Mikael: 27929 + doc: global aliases shouldn't trigger HIST_IGNORE_SPACEPeter Stephenson2010-04-281-1/+1
|
* Fix ZLE access to pushed history linePeter Stephenson2010-03-221-0/+12
|
* 27556: sanitize more variables in lexsave()Peter Stephenson2010-01-041-0/+5
| | | | avoiding crashes in inner loops
* 26675: add POSIX_ALIASES optionPeter Stephenson2009-03-031-2/+4
|
* 26622: improve comments within $(...) and add testPeter Stephenson2009-02-271-1/+2
|
* 26617 c.f. Tomáš Smetana, 26610: comments weren't handled in $(...)Peter Stephenson2009-02-261-1/+11
|
* c.f. 26586: rename yylex to zshlex and yytext to zshlextextPeter Stephenson2009-02-251-26/+26
|
* 26061: fix clash between process subst and numeric globPeter Stephenson2008-11-181-2/+2
| | | | 26062: additional compmatch change, missed from 26047
* 26042 with some fixes from 26043 (Mikael):Peter Stephenson2008-11-131-12/+5
| | | | | allow <(...) and >(...) to occur in the middle of strings and =(...) to have extra text following
* 25571: when parsing use line numbers for the start of a token, not the endPeter Stephenson2008-08-311-0/+15
| | | | add test and move debug trap tests to new file
* 24699: bug with ${(Q)...} on initial ">"Peter Stephenson2008-03-081-1/+17
| | | | bug with ${(z)...} on string with unterminated "("
* 24588: tweak glob qualifier completionPeter Stephenson2008-02-231-1/+1
| | | | 24590: turn down error reporting when unquoting
* unposted: minor typo zsh-4.3.4-dev-5Peter Stephenson2007-12-171-1/+1
|
* 24271: handle parse failures in command substitution betterPeter Stephenson2007-12-161-11/+44
|
* 23795: improve ${(Q)...} with $'..'Peter Stephenson2007-08-231-0/+38
|
* 23757: suppress correction of command words followed by ()Peter Stephenson2007-08-141-3/+17
|
* 23511: error if here document too largePeter Stephenson2007-06-031-0/+10
|
* 23126, modified: bug in zle history inside $( and $((Peter Stephenson2007-01-231-9/+16
|