Skip to content

Commit 6b43dd3

Browse files
committed
*: Remove trailing whitespace
1 parent 6e0e950 commit 6b43dd3

13 files changed

+18
-22
lines changed

.editorconfig

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ indent_style = space
1212
tab_width = 8
1313
indent_size = 8
1414
indent_style = tab
15-

HACKING.md

-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,3 @@ IRC channel
9696
-----------
9797

9898
We're on #zsh-syntax-highlighting on Libera.Chat.
99-

changelog.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ to issue #418.
9191

9292
[zshcompsys-Standard-Styles]: http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Standard-Styles
9393
[zshcompsys-Standard-Styles-format]: http://zsh.sourceforge.net/Doc/Release/Completion-System.html#index-format_002c-completion-style
94-
94+
9595

9696

9797
## Other changes:
@@ -881,4 +881,3 @@ in this area.
881881
# Version 0.2.1
882882
883883
(Start of changelog.)
884-

docs/highlighters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ To create your own `acme` highlighter:
113113

114114
* Name your own functions and global variables `_zsh_highlight_acme_*`.
115115

116-
- In zsh-syntax-highlighting 0.4.0 and earlier, the entrypoints
116+
- In zsh-syntax-highlighting 0.4.0 and earlier, the entrypoints
117117
`_zsh_highlight_highlighter_acme_predicate` and
118118
`_zsh_highlight_highlighter_acme_paint`
119119
were named

highlighters/brackets/brackets-highlighter.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ _zsh_highlight_highlighter_brackets_paint()
9595
fi
9696
}
9797

98-
# Helper function to differentiate type
98+
# Helper function to differentiate type
9999
_zsh_highlight_brackets_match()
100100
{
101101
case $BUFFER[$1] in

highlighters/cursor/cursor-highlighter.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ _zsh_highlight_highlighter_cursor_predicate()
4242
_zsh_highlight_highlighter_cursor_paint()
4343
{
4444
[[ $WIDGET == zle-line-finish ]] && return
45-
45+
4646
_zsh_highlight_add_highlight $CURSOR $(( $CURSOR + 1 )) cursor
4747
}

highlighters/main/main-highlighter.zsh

+7-7
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ _zsh_highlight_highlighter_main_paint()
436436
}
437437

438438
# Try to expand $1, if it's possible to do so safely.
439-
#
439+
#
440440
# Uses two parameters from the caller: $parameter_name_pattern and $res.
441441
#
442442
# If expansion was done, set $reply to the expansion and return true.
@@ -462,7 +462,7 @@ _zsh_highlight_main_highlighter__try_expand_parameter()
462462
else
463463
parameter_name=${arg:1}
464464
fi
465-
if [[ $res == none ]] &&
465+
if [[ $res == none ]] &&
466466
[[ ${parameter_name} =~ ^${~parameter_name_pattern}$ ]] &&
467467
[[ ${(tP)MATCH} != *special* ]]
468468
then
@@ -785,7 +785,7 @@ _zsh_highlight_main_highlighter_highlight_list()
785785
if (( ! in_redirection )); then
786786
if [[ $this_word == *':sudo_opt:'* ]]; then
787787
if [[ -n $flags_with_argument ]] &&
788-
{
788+
{
789789
# Trenary
790790
if [[ -n $flags_sans_argument ]]
791791
then [[ $arg == '-'[$flags_sans_argument]#[$flags_with_argument] ]]
@@ -813,7 +813,7 @@ _zsh_highlight_main_highlighter_highlight_list()
813813
this_word=':sudo_opt:'
814814
next_word+=':start:'
815815
next_word+=':sudo_opt:'
816-
elif [[ -n $flags_solo ]] &&
816+
elif [[ -n $flags_solo ]] &&
817817
{
818818
# Trenary
819819
if [[ -n $flags_sans_argument ]]
@@ -871,7 +871,7 @@ _zsh_highlight_main_highlighter_highlight_list()
871871
elif [[ $this_word == *':start:'* ]] && [[ $arg == $'\n' ]]; then
872872
style=commandseparator
873873
elif [[ $this_word == *':start:'* ]] && [[ $arg == ';' ]] && (( $#in_alias )); then
874-
style=commandseparator
874+
style=commandseparator
875875
else
876876
# Empty commands (semicolon follows nothing) are valid syntax.
877877
# However, in interactive use they are likely to be erroneous;
@@ -880,7 +880,7 @@ _zsh_highlight_main_highlighter_highlight_list()
880880
# Alias definitions are exempted from this check to allow multiline aliases
881881
# with explicit (redundant) semicolons: «alias foo=$'bar;\nbaz'» (issue #677).
882882
#
883-
# See also #691 about possibly changing the style used here.
883+
# See also #691 about possibly changing the style used here.
884884
style=unknown-token
885885
fi
886886

@@ -1035,7 +1035,7 @@ _zsh_highlight_main_highlighter_highlight_list()
10351035
else
10361036
# assignment to a scalar parameter.
10371037
# (For array assignments, the command doesn't start until the ")" token.)
1038-
#
1038+
#
10391039
# Discard :start_of_pipeline:, if present, as '!' is not valid
10401040
# after assignments.
10411041
next_word+=':start:'

highlighters/main/test-data/path-dollared-word.zsh

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ else
3434
touch kappa.exe
3535
chmod +x kappa.exe
3636
cd kappa
37-
37+
3838
BUFFER='$PWD.exe; ${PWD}.exe'
39-
39+
4040
expected_region_highlight=(
4141
"1 8 unknown-token" # $PWD.exe - not eval'd; issue #328
4242
"9 9 commandseparator" # ;

highlighters/main/test-data/path-tilde-home2.zsh

-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ expected_region_highlight=(
3434
"1 2 command" # ls
3535
"4 4 default" # ~
3636
)
37-

tests/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ that is, `$i` and `$j` specify a range, 1-indexed, inclusive of both endpoints.
2020
If `$todo` exists, the test point is marked as TODO (the failure of that test
2121
point will not fail the test), and `$todo` is used as the explanation.
2222

23-
2.
23+
2.
2424
If a test sets `$skip_test` to a non-empty string, the test will be skipped
2525
with the provided string as the reason.
2626

27-
3.
27+
3.
2828
If a test sets `$fail_test` to a non-empty string, the test will be skipped
2929
with the provided string as the reason.
3030

tests/edit-failed-tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
type perl sponge >/dev/null || { print -ru2 -- "$0: This script requires perl(1) and sponge(1) [from moreutils]"; exit 1; }
3232

3333
local editor=( "${(@Q)${(z)${VISUAL:-${EDITOR:-vi}}}}" )
34-
() {
34+
() {
3535
> "$2" perl -nE '$highlighter = $1 if /^Running test (\S*)/; say "highlighters/${highlighter}/test-data/$1.zsh" if /^## (\S*)/' "$1"
3636
>>"$2" echo ""
3737
>>"$2" cat <"$1"

tests/generate.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ print 'expected_region_highlight=('
8787
local i
8888
local PREBUFFER
8989
local BUFFER
90-
90+
9191
PREBUFFER=""
9292
BUFFER="$buffer"
9393
region_highlight=()

zsh-syntax-highlighting.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ _zsh_highlight_call_widget()
404404
# We use the new codepath under two conditions:
405405
#
406406
# 1. If it's available, which we check by testing for add-zle-hook-widget's availability.
407-
#
407+
#
408408
# 2. If zsh has the memo= feature, which is required for interoperability reasons.
409409
# See issues #579 and #735, and the issues referenced from them.
410410
#

0 commit comments

Comments
 (0)