8bf423d16d 
								
							 
						 
						
							
							
								
								'main': Don't find command positions within multiline array literals.  
							
							... 
							
							
							
							Fixes  #333 . 
						
							2016-09-24 17:55:18 +00:00  
				
					
						
							
							
								 
						
							
								5627fd2045 
								
							 
						 
						
							
							
								
								dev tools: Stage the copyright block to make diffs smaller.  
							
							
							
						 
						
							2016-09-24 17:07:01 +00:00  
				
					
						
							
							
								 
						
							
								987c133486 
								
							 
						 
						
							
							
								
								dev tools: Tolerate invalid input.  
							
							
							
						 
						
							2016-09-24 17:06:21 +00:00  
				
					
						
							
							
								 
						
							
								a4196eda5e 
								
							 
						 
						
							
							
								
								'main': Restore compatibility with zsh-4.3.14 and older (after e3182c18de8f).  
							
							... 
							
							
							
							Fixes  #368 . 
						
							2016-09-23 15:55:06 +00:00  
				
					
						
							
							
								 
						
							
								e15a09840e 
								
							 
						 
						
							
							
								
								dev tools: Automate a recurring step: Set year correctly for new tests.  
							
							
							
						 
						
							2016-09-23 06:37:28 +00:00  
				
					
						
							
							
								 
						
							
								6f91850a01 
								
							 
						 
						
							
							
								
								'main': Highlight first command word in named functions defined in the sh syntax when MULTI_FUNC_DEF is set.  
							
							... 
							
							
							
							Fixes a subset of issue #237 . 
							
						 
						
							2016-09-23 06:37:26 +00:00  
				
					
						
							
							
								 
						
							
								2fabf7ca64 
								
							 
						 
						
							
							
								
								'main': More tests for mismstached parentheses and braces.  
							
							
							
						 
						
							2016-09-22 11:12:42 +00:00  
				
					
						
							
							
								 
						
							
								51b9d79c3b 
								
							 
						 
						
							
							
								
								'main': Highlight mismatched parentheses and braces.  
							
							
							
						 
						
							2016-09-22 11:12:42 +00:00  
				
					
						
							
							
								 
						
							
								0a9b347483 
								
							 
						 
						
							
							
								
								driver: Warn just once when a highlighter is missing.  
							
							... 
							
							
							
							The heretofore code warned once per keypress. 
							
						 
						
							2016-09-22 04:10:28 +00:00  
				
					
						
							
							
								 
						
							
								02807f1826 
								
							 
						 
						
							
							
								
								'main': Support the IGNORE_BRACES option.  
							
							... 
							
							
							
							This is related to a future "unbalanced { ( ) }" check for issue #344 . 
							
						 
						
							2016-09-22 03:45:04 +00:00  
				
					
						
							
							
								 
						
							
								a8a6384356 
								
							 
						 
						
							
							
								
								'main': Add tests for the IGNORE_BRACES option.  
							
							... 
							
							
							
							Also adds an XFail test for balanced braces for issue #344 . 
							
						 
						
							2016-09-22 03:41:53 +00:00  
				
					
						
							
							
								 
						
							
								fdaeec4514 
								
							 
						 
						
							
							
								
								'main': Followup to 51614ca2c994: Run cheaper conditions first.  
							
							... 
							
							
							
							This was suggested on #355 . 
							
						 
						
							2016-09-08 19:09:29 +00:00  
				
					
						
							
							
								 
						
							
								4c4baede51 
								
							 
						 
						
							
							
								
								'brackets': Don't highlight corresponding bracket on accept-line  
							
							
							
						 
						
							2016-09-08 15:22:43 +02:00  
				
					
						
							
							
								 
						
							
								da60234fb2 
								
							 
						 
						
							
							
								
								driver: Declare global variables  
							
							... 
							
							
							
							This caused warnings with `setopt warn_create_global`. 
							
						 
						
							2016-08-31 16:26:09 +00:00  
				
					
						
							
							
								 
						
							
								51614ca2c9 
								
							 
						 
						
							
							
								
								'main': Avoid triggering a zsh bug related to hashed commands.  
							
							... 
							
							
							
							This manifested in completion of the form «./foo<TAB>» where there happened to
be a program called 'foo' in $PATH.
Fixes  #354 .
Closes  #355 . 
							
						 
						
							2016-08-30 02:56:23 +00:00  
				
					
						
							
							
								 
						
							
								11c9081967 
								
							 
						 
						
							
							
								
								*: error messages: Fix quoting.  
							
							
							
						 
						
							2016-08-16 19:01:25 +00:00  
				
					
						
							
							
								 
						
							
								c7f7d2ff16 
								
							 
						 
						
							
							
								
								*: Change highlighters' namespace.  
							
							... 
							
							
							
							Fixes  #329 .
Merge remote-tracking branch 'danielsh/i329-v1'
* danielsh/i329-v1:
  highlighters: Rename entry points.
  driver: Rename highlighter entry points 
						
							2016-08-16 17:53:01 +00:00  
				
					
						
							
							
								 
						
							
								c793e0dcea 
								
							 
						 
						
							
							
								
								highlighters: Rename entry points.  
							
							... 
							
							
							
							This tracks the API change made in the previous commit, as suggested in the
(#if 0'd) deprecation warning. 
							
						 
						
							2016-08-16 17:51:43 +00:00  
				
					
						
							
							
								 
						
							
								a3d5dfcbda 
								
							 
						 
						
							
							
								
								driver: Rename highlighter entry points  
							
							... 
							
							
							
							This updates the docs and the driver, in a manner backwards compatible with
existing highlighters.  (None of the highlighters are touched by this change,
yet tests continue to pass.)
Part of issue #329 . 
							
						 
						
							2016-08-16 17:51:43 +00:00  
				
					
						
							
							
								 
						
							
								f91a7b885e 
								
							 
						 
						
							
							
								
								driver: Followup to 80148f6c840299f0980f4359ec5307ca63837dff: don't squat on the highlighters' namespace.  
							
							
							
						 
						
							2016-08-16 17:49:18 +00:00  
				
					
						
							
							
								 
						
							
								f3242cbd6a 
								
							 
						 
						
							
							
								
								driver: Followup to d711563fe1bf8fa6810bc34ac92a2fd3150290ed: actually make the driver reentrant.  
							
							... 
							
							
							
							Re-fixes #305 . 
							
						 
						
							2016-08-16 17:22:39 +00:00  
				
					
						
							
							
								 
						
							
								b2ba91f12f 
								
							 
						 
						
							
							
								
								noop: Rewrap.  
							
							
							
						 
						
							2016-08-16 17:09:42 +00:00  
				
					
						
							
							
								 
						
							
								d1e0defceb 
								
							 
						 
						
							
							
								
								README: Add a reference to upstream's documentation.  
							
							
							
						 
						
							2016-08-16 17:09:04 +00:00  
				
					
						
							
							
								 
						
							
								b7bb4f8657 
								
							 
						 
						
							
							
								
								README: Rephrase a question non-negatively^W neutrally.  
							
							
							
						 
						
							2016-08-16 17:08:47 +00:00  
				
					
						
							
							
								 
						
							
								2c002f9f89 
								
							 
						 
						
							
							
								
								noop: Add comments.  
							
							
							
						 
						
							2016-08-16 13:40:31 +00:00  
				
					
						
							
							
								 
						
							
								757d047f09 
								
							 
						 
						
							
							
								
								'main': The word after 'sudo' is only a non-command word if it is an option.  
							
							
							
						 
						
							2016-08-16 13:31:05 +00:00  
				
					
						
							
							
								 
						
							
								179b8e753f 
								
							 
						 
						
							
							
								
								'main': Test for redirection earlier.  
							
							... 
							
							
							
							This is a prerequisite for the next commit.
The incumbent code was wrong: the test of $in_redirection in the first hunk
would never have seen «(( in_redirection == 2 ))».  That had no visible
effect since options to sudo don't look like redirection operators. 
							
						 
						
							2016-08-16 13:27:36 +00:00  
				
					
						
							
							
								 
						
							
								6e2ef574c8 
								
							 
						 
						
							
							
								
								noop: Restructure code for clarity.  
							
							... 
							
							
							
							The structure now mirrors the stall construct at the top of the loop. 
							
						 
						
							2016-08-16 13:25:43 +00:00  
				
					
						
							
							
								 
						
							
								d1c773faa7 
								
							 
						 
						
							
							
								
								noop: Fix indentation.  
							
							
							
						 
						
							2016-08-16 13:00:55 +00:00  
				
					
						
							
							
								 
						
							
								295d62ec88 
								
							 
						 
						
							
							
								
								driver: Followup to last: make the value more unique.  
							
							... 
							
							
							
							Part of issue #305 . 
							
						 
						
							2016-08-12 09:43:54 +00:00  
				
					
						
							
							
								 
						
							
								d711563fe1 
								
							 
						 
						
							
							
								
								driver: Make it reentrant.  
							
							... 
							
							
							
							This fixes an infinite recursion in zsh without zle-line-pre-redraw [≤5.2] in
the following situation:
% source zsh-syntax-highlighting.zsh
% eval "my-self-insert() { zle -M 'foobar'; ${(q)widgets[self-insert]#*:} \"\$@\" }"
% zle -N self-insert my-self-insert
% source zsh-syntax-highlighting.zsh
Fixes  #305 . 
							
						 
						
							2016-08-12 09:19:36 +00:00  
				
					
						
							
							
								 
						
							
								e2f863c151 
								
							 
						 
						
							
							
								
								minor: Fix typo in development usage message.  
							
							
							
						 
						
							2016-08-12 09:19:36 +00:00  
				
					
						
							
							
								 
						
							
								4ad311ec0a 
								
							 
						 
						
							
							
								
								driver: Enable highlighting during isearch under zsh≥5.3.  
							
							... 
							
							
							
							This patch causes a behaviour difference in the [i257] scenario:
- Before this change, the zle_highlight[isearch] is applied and z-sy-h's
  highlighting isn't.
- With this change, both zle_highlight[isearch] and z-sy-h's
  highlighting are applied, so «echo foo» renders the first word in green
  underline (fg=green from ZSH_HIGHLIGHT_STYLES[builtin], underline from
  zle_highlight[isearch]).
This patch causes the presuppositional FAQ entry added in
a8fe22d422#261 , of which #288  was a spin-off.
[i257] https://github.com/zsh-users/zsh-syntax-highlighting/pull/257#issuecomment-168394665  
							
						 
						
							2016-07-30 20:08:12 +00:00  
				
					
						
							
							
								 
						
							
								171a4eec2d 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'danielsh/m0vie-i288-v2' (revised version of upstream/pr/288)  
							
							... 
							
							
							
							* danielsh/m0vie-i288-v2:
  driver: Don't highlight in isearch
  driver: Always bind zle-line-finish and use it instead of accept-*
  driver: Widget binding: Support binding incomplete/nonexistent widgets 
							
						 
						
							2016-07-29 21:09:31 +00:00  
				
					
						
							
							
								 
						
							
								a8fe22d422 
								
							 
						 
						
							
							
								
								driver: Don't highlight in isearch  
							
							... 
							
							
							
							zsh version 5.2 and lower don't support ISEARCHMATCH_ACTIVE and
we are unable to re-apply zle_highlight on top. Therefore it is
impossible to see the underlined matched area.
Since that information is more important, completely disable
highlighting in isearch in that case.
To do that, we need to make sure we are actually called when
something changes in isearch.
Trumps #257 .
The FAQ entry presupposes #245  will be fixed (in time for the release) too. 
							
						 
						
							2016-07-29 21:07:48 +00:00  
				
					
						
							
							
								 
						
							
								5bae621900 
								
							 
						 
						
							
							
								
								driver: Always bind zle-line-finish and use it instead of accept-*  
							
							... 
							
							
							
							Special handling for cursor imprint or partial path highlighting
is needed in more cases than accept-*. For example when accepting
a line from isearch, no accept-* widget is invoked.
The proper way is to use zle-line-finish.
Trumps #259 .
Fixes  #284 . 
							
						 
						
							2016-07-29 20:41:06 +00:00  
				
					
						
							
							
								 
						
							
								9e569bb0fe 
								
							 
						 
						
							
							
								
								driver: Widget binding: Support binding incomplete/nonexistent widgets  
							
							
							
						 
						
							2016-07-29 20:41:06 +00:00  
				
					
						
							
							
								 
						
							
								add6825898 
								
							 
						 
						
							
							
								
								dev tools: Extend tests/generate.zsh.  
							
							
							
						 
						
							2016-07-29 19:02:40 +00:00  
				
					
						
							
							
								 
						
							
								8013dc3b8d 
								
							 
						 
						
							
							
								
								dev tools: Add a script that generates a test-data file.  
							
							
							
						 
						
							2016-07-29 18:58:37 +00:00  
				
					
						
							
							
								 
						
							
								fa57633d81 
								
							 
						 
						
							
							
								
								'main': Enable test for issue  #238 .  
							
							
							
						 
						
							2016-07-28 08:14:23 +00:00  
				
					
						
							
							
								 
						
							
								0d41933c61 
								
							 
						 
						
							
							
								
								'main': Add test for issue  #343 , concerning the 'command' precommand.  
							
							
							
						 
						
							2016-07-28 07:54:28 +00:00  
				
					
						
							
							
								 
						
							
								e6fb61c42b 
								
							 
						 
						
							
							
								
								'main': Highlight a broken symlink as a file.  
							
							... 
							
							
							
							Merge remote-tracking branch 'upstream/pr/342'
* upstream/pr/342:
  'main': Highlight a broken symlink as a file.
  tests: Add an XFail test for issue #342 . 
							
						 
						
							2016-07-22 16:09:06 +00:00  
				
					
						
							
							
								 
						
							
								6b69389bd9 
								
							 
						 
						
							
							
								
								'main': New test, related to issue  #328 .  
							
							... 
							
							
							
							The test passes so I'm adding it directly to master. 
							
						 
						
							2016-07-22 15:52:43 +00:00  
				
					
						
							
							
								 
						
							
								3409a2e4d2 
								
							 
						 
						
							
							
								
								*: s/echo/print/  
							
							... 
							
							
							
							Just in case one of the interpolated variables contains a backslash. 
							
						 
						
							2016-07-21 04:01:50 +00:00  
				
					
						
							
							
								 
						
							
								53083da821 
								
							 
						 
						
							
							
								
								'main': Highlight a broken symlink as a file.  
							
							... 
							
							
							
							Fixes  #342 . 
						
							2016-07-20 02:01:15 +00:00  
				
					
						
							
							
								 
						
							
								95f7206a93 
								
							 
						 
						
							
							
								
								tests: Add an XFail test for issue  #342 .  
							
							
							
						 
						
							2016-07-20 02:00:28 +00:00  
				
					
						
							
							
								 
						
							
								fffe13a8fb 
								
							 
						 
						
							
							
								
								docs: Minor tweak.  
							
							... 
							
							
							
							Suggested-by: Matthew Martin 
							
						 
						
							2016-07-18 04:27:54 +00:00  
				
					
						
							
							
								 
						
							
								80148f6c84 
								
							 
						 
						
							
							
								
								docs: State highlighters' designated namespace.  
							
							
							
						 
						
							2016-07-12 07:05:37 +00:00  
				
					
						
							
							
								 
						
							
								ba16cf2fb2 
								
							 
						 
						
							
							
								
								docs: s/myhighlighter/acme/g  
							
							... 
							
							
							
							Makes the text easier to read ("_zsh_highlight_myhighlighter_highlighter" is
a mouthful). 
							
						 
						
							2016-07-12 07:03:18 +00:00  
				
					
						
							
							
								 
						
							
								3e59ab41b6 
								
							 
						 
						
							
							
								
								driver: Change a variable name to avoid squatting the highlighters' namespace.  
							
							... 
							
							
							
							Part of issue #329 . 
							
						 
						
							2016-07-12 06:50:49 +00:00