comments: Fix issue #163 and #167: Highlight comments.

This commit is contained in:
Daniel Shahaf
2015-10-27 19:29:06 +02:00
parent e76f208cf8
commit 693de99a90
4 changed files with 18 additions and 4 deletions

View File

@@ -33,6 +33,6 @@ setopt interactive_comments
BUFFER='# echo foo'
expected_region_highlight=(
"1 1 ${(q-)ZSH_HIGHLIGHT_STYLES[comment]} 'issue #163'" # #
"2 10 ${(q-)ZSH_HIGHLIGHT_STYLES[comment]} 'issue #163'" # " echo foo"
"1 1 ${(q-)ZSH_HIGHLIGHT_STYLES[comment]}" # #
"2 10 ${(q-)ZSH_HIGHLIGHT_STYLES[comment]}" # " echo foo"
)

View File

@@ -35,5 +35,5 @@ BUFFER='echo "foo #bar" #baz # quux'
expected_region_highlight=(
"1 4 $ZSH_HIGHLIGHT_STYLES[command]" # echo
"6 15 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # "foo #bar"
"17 27 ${(q-)ZSH_HIGHLIGHT_STYLES[comment]} 'issue #163'" # #baz # quux
"17 27 ${(q-)ZSH_HIGHLIGHT_STYLES[comment]}" # #baz # quux
)