Skip to content

Commit 8d0b50e

Browse files
committed
Tweak comments
1 parent bc6fb6a commit 8d0b50e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

testdata/if.zsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ fi
2323
[[ x = y ]]&&((1>0))&& print x
2424

2525
# TODO: maybe show error for these invalid constructs (missing spaces)?
26+
# Since these are valid glob patterns (though unlikely), we can highlight it as
27+
# an error only if it's after a zshConditional, or if it's preceded or followed
28+
# by zshOperator.
2629
[[x=x]] && [x=x]

testdata/quotes.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Test quoting.
22

33
'single' 'var: $var' 'subst: $(ls)' 'esc: \n \x01 \001'
4-
"double" "var: $var" "subst: $(ls)" "esc: \n \x01 \001" # TODO: these last 2 are not highlighted
4+
"double" "var: $var" "subst: $(ls)" "esc: \n \x01 \001"
55
$'single' $'var: $var' $'subst: $(ls)' $'esc: \n \x01 \001'
66
`batick` `var: $var` `subst: $(ls)` `esc: \n \x01 \001`
77

88
"'nest'" "`nest`"
99
'"nest"' '`nest`'
1010

1111
"escape: \" \' \` \\ escape"
12-
'escape: \" \' \` \\ escape' # TODO: maybe highlight \' as an error?
12+
'escape: \" \' \` \\ escape'
1313
$'escape: \" \' \` \\ escape'

0 commit comments

Comments
 (0)