File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 23
23
[[ x = y ]]&& (( 1 > 0 )) && print x
24
24
25
25
# 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.
26
29
[[x= x]] && [x= x]
Original file line number Diff line number Diff line change 1
1
# Test quoting.
2
2
3
3
' 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"
5
5
$' single' $' var: $var' $' subst: $(ls)' $' esc: \n \x01 \001 '
6
6
` batick` ` var: $var ` ` subst: $( ls) ` ` esc: \n \x 01 \0 01`
7
7
8
8
" 'nest'" " ` nest` "
9
9
' "nest"' ' `nest`'
10
10
11
11
" escape: \" \' \` \\ escape"
12
- ' escape: \" \' \` \\ escape' # TODO: maybe highlight \ ' as an error ?
12
+ ' escape: \" \' \` \\ escape'
13
13
$' escape: \" \' \` \\ escape'
You can’t perform that action at this time.
0 commit comments