From 6fbd2aa9579b46a277db9833b225da0c7fbf0ba1 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 28 Oct 2015 14:57:26 +0200 Subject: [PATCH] Add an XFail test for issue #222, "command word after repeat". --- highlighters/main/test-data/control-flow.zsh | 4 +++- highlighters/main/test-data/reserved-word.zsh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/highlighters/main/test-data/control-flow.zsh b/highlighters/main/test-data/control-flow.zsh index c2887c2..7e61372 100644 --- a/highlighters/main/test-data/control-flow.zsh +++ b/highlighters/main/test-data/control-flow.zsh @@ -28,7 +28,7 @@ # ------------------------------------------------------------------------------------------------- ZSH_HIGHLIGHT_STYLES[alias]=$unused_highlight -BUFFER='while if echo Hello; then ls /; else ls; fi; do stat "x"; done' +BUFFER='while if echo Hello; then ls /; else ls; fi; do stat "x"; done; repeat 10 ls' expected_region_highlight+=( "1 5 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # while @@ -46,4 +46,6 @@ expected_region_highlight+=( "49 52 $ZSH_HIGHLIGHT_STYLES[command]" # stat "54 56 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # "x" "59 62 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # done + "65 70 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # repeat + "75 76 $ZSH_HIGHLIGHT_STYLES[command] 'issue #222'" # ls ) diff --git a/highlighters/main/test-data/reserved-word.zsh b/highlighters/main/test-data/reserved-word.zsh index 3cd9cd2..b19af50 100644 --- a/highlighters/main/test-data/reserved-word.zsh +++ b/highlighters/main/test-data/reserved-word.zsh @@ -33,4 +33,6 @@ BUFFER='repeat "1" do done' expected_region_highlight=( "1 6 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # repeat "8 10 $ZSH_HIGHLIGHT_STYLES[double-quoted-argument]" # "1" + "12 13 $ZSH_HIGHLIGHT_STYLES[reserved-word] 'issue #222'" # do + "15 18 $ZSH_HIGHLIGHT_STYLES[reserved-word] 'fallout of previous test point'" # done )