Skip to content

Commit 5d1d416

Browse files
committed
*: Remove trailing whitespace
1 parent caa749d commit 5d1d416

13 files changed

+17
-22
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ to issue #418.
9191

9292
[zshcompsys-Standard-Styles]: https://zsh.sourceforge.io/Doc/Release/Completion-System.html#Standard-Styles
9393
[zshcompsys-Standard-Styles-format]: https://zsh.sourceforge.io/Doc/Release/Completion-System.html#index-format_002c-completion-style
94-
9594

9695

9796
## Other changes:
@@ -881,4 +880,3 @@ in this area.
881880
# Version 0.2.1
882881
883882
(Start of changelog.)
884-

docs/highlighters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ To create your own `acme` highlighter:
115115

116116
* Name your own functions and global variables `_zsh_highlight_acme_*`.
117117

118-
- In zsh-syntax-highlighting 0.4.0 and earlier, the entrypoints
118+
- In zsh-syntax-highlighting 0.4.0 and earlier, the entrypoints
119119
`_zsh_highlight_highlighter_acme_predicate` and
120120
`_zsh_highlight_highlighter_acme_paint`
121121
were named

highlighters/brackets/brackets-highlighter.zsh

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ _zsh_highlight_highlighter_main_paint()
432432
}
433433

434434
# Try to expand $1, if it's possible to do so safely.
435-
#
435+
#
436436
# Uses two parameters from the caller: $parameter_name_pattern and $res.
437437
#
438438
# If expansion was done, set $reply to the expansion and return true.
@@ -458,7 +458,7 @@ _zsh_highlight_main_highlighter__try_expand_parameter()
458458
else
459459
parameter_name=${arg:1}
460460
fi
461-
if [[ $res == none ]] &&
461+
if [[ $res == none ]] &&
462462
[[ ${parameter_name} =~ ^${~parameter_name_pattern}$ ]] &&
463463
[[ ${(tP)MATCH} != *special* ]]
464464
then
@@ -781,7 +781,7 @@ _zsh_highlight_main_highlighter_highlight_list()
781781
if (( ! in_redirection )); then
782782
if [[ $this_word == *':sudo_opt:'* ]]; then
783783
if [[ -n $flags_with_argument ]] &&
784-
{
784+
{
785785
# Trenary
786786
if [[ -n $flags_sans_argument ]]
787787
then [[ $arg == '-'[$flags_sans_argument]#[$flags_with_argument] ]]
@@ -809,7 +809,7 @@ _zsh_highlight_main_highlighter_highlight_list()
809809
this_word=':sudo_opt:'
810810
next_word+=':start:'
811811
next_word+=':sudo_opt:'
812-
elif [[ -n $flags_solo ]] &&
812+
elif [[ -n $flags_solo ]] &&
813813
{
814814
# Trenary
815815
if [[ -n $flags_sans_argument ]]
@@ -867,7 +867,7 @@ _zsh_highlight_main_highlighter_highlight_list()
867867
elif [[ $this_word == *':start:'* ]] && [[ $arg == $'\n' ]]; then
868868
style=commandseparator
869869
elif [[ $this_word == *':start:'* ]] && [[ $arg == ';' ]] && (( $#in_alias )); then
870-
style=commandseparator
870+
style=commandseparator
871871
else
872872
# Empty commands (semicolon follows nothing) are valid syntax.
873873
# However, in interactive use they are likely to be erroneous;
@@ -876,7 +876,7 @@ _zsh_highlight_main_highlighter_highlight_list()
876876
# Alias definitions are exempted from this check to allow multiline aliases
877877
# with explicit (redundant) semicolons: «alias foo=$'bar;\nbaz'» (issue #677).
878878
#
879-
# See also #691 about possibly changing the style used here.
879+
# See also #691 about possibly changing the style used here.
880880
style=unknown-token
881881
fi
882882

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

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

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

0 commit comments

Comments
 (0)