Daniel Shahaf
268656d52b
tests: Add a comment. No functional change.
2016-01-01 16:35:00 +00:00
Daniel Shahaf
38c3ac8831
docs: Note that Debian package has migrated to (been added to) Debian stretch.
2015-12-16 22:22:00 +00:00
Daniel Shahaf
82f5eb17ec
docs: Note Debian package name.
...
The Debian package should propagate to the "testing" suite (stretch) in a few days.
2015-12-12 11:04:38 +00:00
Daniel Shahaf
4f3910cbba
Fix issue #248 : Highlight 'pkexec' as a precommand.
2015-12-04 23:40:30 +00:00
Daniel Shahaf
73ee7c1f6c
Fix part of issue #238 , "fd redirections at command word".
...
This fixes fd's specified by a (single) digit. The named fd syntax remains an XFail.
2015-11-29 03:16:01 +00:00
Daniel Shahaf
48ecd29180
tests: Add two XFail tests for issue #238 , "fd redirections at command word".
2015-11-29 03:15:55 +00:00
Daniel Shahaf
430cf55368
tests: Cover [default].
2015-11-29 02:56:07 +00:00
Daniel Shahaf
46cd970bc4
tests: Improve tests by using $unused_highlight.
...
The default for [redirection] is 'none', so it wasn't actually being tested.
2015-11-29 02:53:58 +00:00
Daniel Shahaf
09c4114eb9
command word: Do not attempt to interpret command separator tokens as anything else.
...
The important part of this change is removing the second conjunct from the
condition; the remainder of the change gives one example of when that matters.
2015-11-29 02:02:42 +00:00
Daniel Shahaf
cf685a3a27
changelog: Start 0.4.1 section.
...
Also fix an error in the title of the 0.4.0 section.
2015-11-29 02:00:51 +00:00
Daniel Shahaf
69b6c4e450
release.md: Clarify release procedure.
2015-11-27 23:24:22 +00:00
Daniel Shahaf
7338c54a25
Post-release version number bump.
2015-11-27 23:20:09 +00:00
Daniel Shahaf
2d792b03bb
Tag version 0.4.0.
2015-11-27 23:19:23 +00:00
Daniel Shahaf
eee130f81d
changelog: Update through HEAD ( 952a97dbc9).
2015-11-27 23:17:47 +00:00
Daniel Shahaf
952a97dbc9
docs: Tweaks to highlighters.md after recent refactoring branch.
...
Merge remote-tracking branch 'danielsh/docs-highlighters.d-landing-page-v3'
* danielsh/docs-highlighters.d-landing-page-v3:
docs: Restore (with changes) links removed in f5ca4b891b .
docs: Followup to the recent docs branch: clean up some internal cross-references.
docs: Clarify tagline summary of 'root' highlighter
docs: Minor clarification.
Fixes zsh-users/zsh-syntax-highlighting#242 .
2015-11-27 04:12:02 +00:00
Daniel Shahaf
1f1ad09e38
docs: Restore (with changes) links removed in f5ca4b891b.
...
The preceding commit, which made docs/highlighters.md and
highlighters/README.md distinct, allows reverting their removal.
2015-11-27 04:07:02 +00:00
Daniel Shahaf
eb3715a56a
docs: Followup to the recent docs branch: clean up some internal cross-references.
2015-11-27 04:07:02 +00:00
Daniel Shahaf
95330c691b
docs: Clarify tagline summary of 'root' highlighter
2015-11-27 04:07:02 +00:00
Daniel Shahaf
371f8183d6
docs: Minor clarification.
2015-11-27 04:06:15 +00:00
Daniel Shahaf
2e5481ab9a
docs; INSTALL.md: Make 'system-wide' section easier to read.
2015-11-26 18:09:43 +00:00
Daniel Shahaf
2ed2f1e3c4
docs: INSTALL.md: Streamling .zshrc installation instructions.
2015-11-26 18:07:41 +00:00
Daniel Shahaf
b8ced86853
docs: Minor clarifications.
2015-11-26 17:15:48 +00:00
Daniel Shahaf
84734ba950
versionstamp: Better $ZSH_HIGHLIGHT_REVISION reporting when running from git.
2015-11-25 03:55:20 +00:00
Daniel Shahaf
635a68f7b4
driver: Fix error message wording
2015-11-25 03:54:33 +00:00
Daniel Shahaf
438a94496f
docs: Grammar fix.
2015-11-24 07:43:03 +00:00
Daniel Shahaf
7ee350efcd
docs: Port new text to individual highlighters' documentation.
...
The new text is from the preceding two commits, 22123ab622 + ded1c8789b .
Fixes a broken link.
2015-11-24 07:39:44 +00:00
Daniel Shahaf
22123ab622
docs: Follow-up to last: Fix markup.
2015-11-24 07:36:10 +00:00
Daniel Shahaf
ded1c8789b
docs: Clarify highlighters documentation.
2015-11-24 07:32:18 +00:00
Daniel Shahaf
0b3183f6cb
docs: Split README.md into INSTALL.md.
...
Fixes zsh-users/zsh-syntax-highlighting#235 .
2015-11-24 07:13:35 +00:00
Daniel Shahaf
5b34c23cfa
Merge remote-tracking branch 'phy1729/doc-all'
...
* phy1729/doc-all:
Remove broken links
docs: Create all.md
docs: Move docs into docs/
docs: Remove duplicate 'How to activate it' sections
docs: Move highlighter headers down one level
2015-11-24 06:30:45 +00:00
Daniel Shahaf
c575f8f375
Merge remote-tracking branch 'danielsh/docs-copyedit-v1'
...
* danielsh/docs-copyedit-v1:
docs copyedit: minor: Spelling/punctuation fix.
docs copyedit: Rewrap to 80 columns, part 4.
docs copyedit: Rewrap to 80 columns, part 3.
docs copyedit: Rewrap to 80 columns, part 2.
docs copyedit: Clarify tagline.
docs copyedit: minor.
docs copyedit: Review toplevel and tests README.md files.
docs copyedit: Rewrap to 80 columns.
docs copyedit: Restyle bold-italic to fixed-width.
docs copyedit: Port 6d93ea07fd to the other highlighters' README's.
docs copyedit: Whitespace.
2015-11-24 06:30:30 +00:00
Daniel Shahaf
6e99128987
docs copyedit: minor: Spelling/punctuation fix.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
bcc9db2784
docs copyedit: Rewrap to 80 columns, part 4.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
b989ae23d0
docs copyedit: Rewrap to 80 columns, part 3.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
3f163a2fd4
docs copyedit: Rewrap to 80 columns, part 2.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
3bedd8571e
docs copyedit: Clarify tagline.
...
Restore zsh URL removed a few commits ago.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
9ce97cd64d
docs copyedit: minor.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
49f7beecb5
docs copyedit: Review toplevel and tests README.md files.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
12097d55d1
docs copyedit: Rewrap to 80 columns.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
8ea392e361
docs copyedit: Restyle bold-italic to fixed-width.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
91e4a576fb
docs copyedit: Port 6d93ea07fd to the other highlighters' README's.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
6c033e62e9
docs copyedit: Whitespace.
2015-11-24 06:06:16 +00:00
Daniel Shahaf
e60737d320
'make perf': Unbreak by porting over 'make test' harness changes.
...
In particular, tests were relying on the harness to provide a sandbox working
directory, but the perf harness wasn't providing that.
2015-11-18 17:52:46 +00:00
Daniel Shahaf
17fbcad8ac
'main': Fix state check.
...
At this time, no user-visible consequences are known.
2015-11-18 16:37:38 +00:00
Daniel Shahaf
ea5186543d
changelog: Update through HEAD ( 1933de83be).
2015-11-18 06:21:54 +00:00
Daniel Shahaf
1933de83be
'make install': Remove +x permission from installed library and documntation files.
2015-11-18 02:14:03 +00:00
Daniel Shahaf
e2096f5c4e
'make install': Unbreak PREFIX=~/foo usage.
...
Change quoting to only quote the shell variable, not the make variable. This
allows the leading '~' to be unescaped for make's sh to expand.
Followup to b1619c0013 .
2015-11-18 01:49:30 +00:00
Daniel Shahaf
29fd6ec1de
Support the '|&', '&!', '&|' command separators.
2015-11-17 20:19:19 +00:00
Daniel Shahaf
3ed0f7f823
noop: Consolidate two identical conditionals.
2015-11-17 20:07:14 +00:00
Daniel Shahaf
2dbcb575e5
internal: Document the ':regular' state.
2015-11-17 19:40:58 +00:00
Daniel Shahaf
00de155063
docs: 'main': Improve styles documentation.
2015-11-17 18:41:14 +00:00
Daniel Shahaf
3bfd250cce
'make perf': Designate this target as '.PHONY'.
...
Patch-by: Matthew Martin
2015-11-17 17:50:14 +00:00
Daniel Shahaf
7d4252f5f5
minor: docs: Improve dollar-double-quoted-argument documentation.
2015-11-17 03:55:00 +00:00
Daniel Shahaf
21e5e26923
docs: Clarify 'create a new highlighter' documentation.
2015-11-17 03:22:14 +00:00
Daniel Shahaf
b1619c0013
Fix issue #219 : install documentation fully and properly.
...
- Install the top-level README.md, which wasn't installed before.
- Install docs to /usr/local/share/doc rather than /usr/local/share.
2015-11-17 02:45:00 +00:00
Daniel Shahaf
79b95c629e
Drop unnecessary shebang lines.
...
Done in c30301d474 and
c687bddea3 for other tests.
2015-11-17 02:04:23 +00:00
Daniel Shahaf
3669d69226
Fix copyright year.
2015-11-17 02:02:42 +00:00
Daniel Shahaf
4fcfb15913
Highlight parameter expansions that are a command word.
...
Fixes zsh-users/zsh-syntax-highlighting#101 .
2015-11-17 01:37:58 +00:00
Daniel Shahaf
bdc1449733
noop: Break out a helper function.
2015-11-17 01:37:12 +00:00
Daniel Shahaf
1397f1bae1
tests: Tweak the isolation wrapper for style and robustness.
...
Followup to c015339202 .
Suggested-by: Matthew Martin
2015-11-17 01:06:50 +00:00
Daniel Shahaf
8f19af6b31
driver: Tolerate KSH_ARRAYS being set in the calling context.
...
Fixes zsh-users/zsh-syntax-highlighting#162 .
2015-11-17 00:48:22 +00:00
Daniel Shahaf
6e3720f39d
dollar-double-quoted-argument: Support the syntax «"${foo}"». (Issue #186.)
2015-11-17 00:40:02 +00:00
Daniel Shahaf
28776371a0
tests: Add an XFail test for highlighting «"${foo}"». (Issue #186.)
2015-11-17 00:37:58 +00:00
Daniel Shahaf
4f0c293fde
cursor: Remove cursor highlighting when accepting a line.
...
Fixes zsh-users/zsh-syntax-highlighting#109 .
Similar to 59fbdda64c in the 'main' highlighter.
2015-11-17 00:05:06 +00:00
Daniel Shahaf
96ee5116b1
Fix issue #228 , "Support the PATH_DIRS option".
2015-11-16 23:14:48 +00:00
Daniel Shahaf
a636527f70
tests: Add an XFail test for issue #228 , "Support the PATH_DIRS option".
...
This builds upon the test harness auto-cleaned-up directories work (c01533920 ).
2015-11-16 23:04:11 +00:00
Daniel Shahaf
2b35ff1c15
minor: Rename a test file to a not-escape-needing name.
...
There's simply no reason to use such names, now that the filename is no longer
itself test data.
2015-11-16 22:57:47 +00:00
Daniel Shahaf
c015339202
tests: Provide an independent, auto-cleaned working directory to each test.
...
Fixes zsh-users/zsh-syntax-highlighting#182.
Prerequisite for testing issue #228 .
* tests/test-highlighting.zsh
(run_test): Move functionality to run_test_internal; make run_test be a wrapper
that handles creating and cleaning up the tempdir.
* tests/README.md: Document the new feature.
* "highlighters/main/test-data/path-space- .zsh"
* highlighters/main/test-data/path-tilde-named.zsh
* highlighters/main/test-data/path.zsh
Change test data to not depend on being run from the source directory.
2015-11-16 22:54:52 +00:00
Daniel Shahaf
b5d02a2f49
tests: Document test isolation, implemented some time ago.
2015-11-16 22:31:18 +00:00
Daniel Shahaf
e1078a8b4c
'make install': Allow setting $(SHARE_DIR).
2015-11-16 19:14:19 +00:00
Daniel Shahaf
3620ad951f
Add an XFail test for issue #231 , "Assignment terminating subshell flags closing parenthesis as an error".
2015-11-16 19:04:37 +00:00
Daniel Shahaf
b285c7b821
brackets: Highlight closing ')' of array assignments correctly. (Issue #226.)
...
Followup to c0dafd1d85 , which changed the highlight of
those ')'s from <nothing> to [reserved-word].
2015-11-16 18:44:44 +00:00
Daniel Shahaf
44e5323b53
changelog: Update through HEAD ( c0dafd1d85).
2015-10-30 19:07:30 +00:00
Daniel Shahaf
c0dafd1d85
brackets: Highlight the closing brackets of subshells and blocks. (Issue #226.)
2015-10-30 20:20:30 +02:00
Daniel Shahaf
28abb960de
noop: Follow-up to last: improve readability.
2015-10-30 20:14:03 +02:00
Daniel Shahaf
a59f442d2d
brackets: Highlight the closing brackets of arithmetic expansion. (Issue #226.)
2015-10-30 17:28:48 +00:00
Daniel Shahaf
8b4adbd991
Fix issue #222 , "command word after repeat".
2015-10-30 13:31:43 +00:00
Daniel Shahaf
6fbd2aa957
Add an XFail test for issue #222 , "command word after repeat".
2015-10-30 13:31:23 +00:00
Daniel Shahaf
9e178f9f39
subshells: Highlight the opening parenthesis correctly. (Issue #166.)
...
Followup to 0d1bfbcbfa .
2015-10-30 11:38:32 +02:00
Daniel Shahaf
5a38710564
subshells: Add an XFail test demonstrating that #166 is not yet fixed.
...
Reported-by: Antony Lee
2015-10-30 09:34:01 +00:00
Daniel Shahaf
d3deffbf46
minor: Fix WARN_CREATE_GLOBAL warnings issued by zsh 5.1.1-dev-0.
...
The following warnings are issued by zsh as of zsh-workers/37018 (commit
de9effbce601 to zsh itself):
_zsh_highlight_main_highlighter_highlight_dollar_string:17: array parameter match created globally in function _zsh_highlight_main_highlighter_highlight_dollar_string
_zsh_highlight_main_highlighter_highlight_dollar_string:17: array parameter mbegin created globally in function _zsh_highlight_main_highlighter_highlight_dollar_string
_zsh_highlight_main_highlighter_highlight_dollar_string:17: array parameter mend created globally in function _zsh_highlight_main_highlighter_highlight_dollar_string
_zsh_highlight_main_highlighter_highlight_dollar_string:17: numeric parameter parameter MBEGIN created globally in function _zsh_highlight_main_highlighter_highlight_dollar_string
_zsh_highlight_main_highlighter_highlight_dollar_string:17: numeric parameter parameter MEND created globally in function _zsh_highlight_main_highlighter_highlight_dollar_string
_zsh_highlight_main_highlighter_highlight_dollar_string:17: scalar parameter MATCH created globally in function _zsh_highlight_main_highlighter_highlight_dollar_string
_zsh_highlight_main_highlighter_highlight_string:11: array parameter match created globally in function _zsh_highlight_main_highlighter_highlight_string
_zsh_highlight_main_highlighter_highlight_string:11: array parameter mbegin created globally in function _zsh_highlight_main_highlighter_highlight_string
_zsh_highlight_main_highlighter_highlight_string:11: array parameter mend created globally in function _zsh_highlight_main_highlighter_highlight_string
_zsh_highlight_main_highlighter_highlight_string:11: numeric parameter parameter MBEGIN created globally in function _zsh_highlight_main_highlighter_highlight_string
_zsh_highlight_main_highlighter_highlight_string:11: numeric parameter parameter MEND created globally in function _zsh_highlight_main_highlighter_highlight_string
_zsh_highlight_main_highlighter_highlight_string:11: scalar parameter MATCH created globally in function _zsh_highlight_main_highlighter_highlight_string
2015-10-30 10:12:04 +02:00
Daniel Shahaf
8ab8c815ec
Fix syntax error with zsh-5.0.5-dev-1 and older.
...
zsh prior to workers/32609 (commit 9d47e8398d299e53ffe4e7ddf3731d2fedae9948)
does not support the (-n)-less «[[ $var ]]» syntax.
Fixes zsh-users/zsh-syntax-highlighting#225 .
2015-10-30 09:34:16 +02:00
Daniel Shahaf
afa6bb3882
states work: Extend state machine documentation.
2015-10-30 08:38:45 +02:00
Daniel Shahaf
1ac39b0af1
comments: Mark prematurely-terminated command as an error.
...
This is already done for commands prematurely terminated by ";".
2015-10-30 08:38:45 +02:00
Daniel Shahaf
693de99a90
comments: Fix issue #163 and #167 : Highlight comments.
2015-10-30 08:38:44 +02:00
Daniel Shahaf
e76f208cf8
comments: Add a PASSing test for the NO_INTERACTIVE_COMMENTS case.
2015-10-30 08:38:39 +02:00
Daniel Shahaf
e9ceb2017e
comments: Add XFail tests from issues #163 and #167 .
...
These tests are based on the patches contributed in those issues:
commit 9d9df4fe80 (upstream/pr/167)
Author: Miciah Masters <miciah.masters@gmail.com >
AuthorDate: Thu Apr 23 20:28:24 2015 -0400
Commit: Miciah Dashiel Butler Masters <mmasters@redhat.com >
CommitDate: Thu Apr 23 20:28:24 2015 -0400
Highlight comments
M highlighters/main/main-highlighter.zsh
A highlighters/main/test-data/comments.zsh
commit d94f1a037f (upstream/pr/163)
Author: sonnym <michaud.sonny@gmail.com >
AuthorDate: Fri Mar 6 18:27:57 2015 -0500
Commit: sonnym <michaud.sonny@gmail.com >
CommitDate: Fri Mar 6 21:16:27 2015 -0500
highlight comments when interactive_comments is on
M highlighters/main/main-highlighter.zsh
A highlighters/main/test-data/comment-embedded.zsh
A highlighters/main/test-data/comment-leading.zsh
Patch-by: sonnym <michaud.sonny@gmail.com >
Patch-by: Miciah Masters <miciah.masters@gmail.com >
(corrected and refreshed for harness changes by me)
2015-10-29 18:08:30 +02:00
Daniel Shahaf
2f05620b19
sudo: Flag an error when a required argument is missing.
2015-10-29 12:01:13 +00:00
Daniel Shahaf
9cb87473cc
sudo: Tweak state computations.
...
This causes the ':start:' state to be set in $next_word in iteration N-1,
rather than to only be added to $this_word in iteration N.
2015-10-29 12:01:13 +00:00
Daniel Shahaf
f49f3bf0c0
sudo: Extend tests.
2015-10-29 12:01:13 +00:00
Daniel Shahaf
a3047a9121
sudo: Highlight an empty sudo; as an error.
...
The word following 'sudo' was considered :regular:, although it isn't.
2015-10-29 12:01:13 +00:00
Daniel Shahaf
86e9249709
sudo/redirections: Fix remaining part of issue #221 , "sudo and redirection don't mix".
2015-10-29 12:01:13 +00:00
Daniel Shahaf
0d1bfbcbfa
Highlight subshells and anonymous functions correctly.
...
Fixes zsh-users/zsh-syntax-highlighting#166.
Fixes zsh-users/zsh-syntax-highlighting#194.
Builds upon the issue #207 work.
2015-10-29 12:01:13 +00:00
Daniel Shahaf
c216242b46
command word: Highlight more reserved words. Part of issue #207 .
2015-10-29 12:01:13 +00:00
Daniel Shahaf
2218e26bf8
command word: Highlight 'else' correctly. Part of issue #207 .
2015-10-29 12:01:13 +00:00
Daniel Shahaf
b397b12ac1
command word: Start fixing issue #207 , "Word following certain reserved words should be a command word".
2015-10-29 12:01:13 +00:00
Daniel Shahaf
87deac3062
command word: Add an XFail test for issue #207 .
2015-10-29 12:01:13 +00:00
Daniel Shahaf
01d7eeb3c7
Fix issue #205 , "';' after assignment is highlighted as unknown-token".
2015-10-29 12:01:13 +00:00
Daniel Shahaf
6d6fb8b03e
redirections: Document handling of redirections and possibly fix a latent bug.
...
The change of behaviour is triggered by test-data/sudo-redirection.zsh: the iteration
on "otheruser" sets $next_word to ":regular::sudo_opt::start::sudo_opt::start:" before
this patch, but to ":regular::sudo_opt::start:" after it (note the deduplication).
2015-10-29 12:01:13 +00:00
Daniel Shahaf
be006aded5
sudo/redirections: Fix part of issue #221 , "sudo and redirection don't mix".
2015-10-29 12:01:11 +00:00