zsh-syntax-highlighting
zsh-syntax-highlighting copied to clipboard
Fish shell like syntax highlighting for Zsh.
As pointed out in https://github.com/zsh-users/zsh-syntax-highlighting/pull/747#issuecomment-656121985 (by @jnooree), the `regexp` highlighter runs under whichever setting of the `RE_MATCH_PCRE` option was in effect when `_zsh_highlighter` was invoked. This gives rise to two...
In macOS, the word boundary syntax "\b" [is not supported](https://stackoverflow.com/a/12696899). I think it's a good idea to add comment for macOS users, to use "[[::]]" rather than "\b". Thank you...
Currently z-sy-h reimplements [`$zle_highlight`'s semantics](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting): https://github.com/zsh-users/zsh-syntax-highlighting/blob/91d2eeaf23c47341e8dc7ad66dbf85e38c2674de/zsh-syntax-highlighting.zsh#L163-L193 Work with zsh upstream to resolve this duplication. See https://github.com/zsh-users/zsh-syntax-highlighting/issues/418#issuecomment-649845279.
I've basically the same issue as the one reported here for the fast highlighter: https://www.reddit.com/r/zsh/comments/f7w14o/strange_bug_with_p10k_zshautosuggestions_fsyh/ You can watch it here: https://asciinema.org/a/0D0aVmCbw9jrVff0L7XAm9JH9 When not using the turbo-mode this is fixed, but...
```zsh % tests/generate.zsh $'echo foo\\\nbar"baz"' main backslash-continuation2 BUFFER=$'echo foo\\\nbar"baz"' expected_region_highlight=( '1 4 builtin' # echo '6 16 default' # foo\\\nbar"ba '12 16 double-quoted-argument' # ar"ba ) ``` What happens is...
Given that editing huge buffers (e.g., `fned vcs_info`) isn't very performant right now, shall we default `ZSH_HIGHLIGHT_MAXLENGTH` to some reasonable value if it's unset? Users will still be able to...
Consider converting zsh-syntax-highlighting from a `source`d script to an `autoload`ed function. Benefits include better isolation from calling environment and `zcompile` byte-compliation support.
See https://github.com/zsh-users/zsh-syntax-highlighting/issues/627#issuecomment-639383008 and the following comments.
Some people find the default colorscheme too colorful (e.g., [[1]](http://blog.patshead.com/2012/01/using-and-customizing-zsh-syntax-highlighting-with-oh-my-zsh.html)). - [ ] Ensure the documentation on changing the colorscheme is clear and findable. - [ ] Ensure the use...
Idea from https://github.com/zsh-users/zsh/commit/40723b3991557d0f5db66cbde9feb5cbc33bce78 ``` # PREBUFFER=$'echo $\\\n' # BUFFER=$'(echo foo)' not ok 1 - [1,8] «(echo fo» - expected (1 10 "default"), observed (1 8 "default"). not ok 2 -...