Update syntax hilighting plugin
[zsh.git] / .zsh / zsh-syntax-highlighting / highlighters / main / test-data / option-path_dirs.zsh
index 1f3002a..0300c7e 100644 (file)
 # vim: ft=zsh sw=2 ts=2 et
 # -------------------------------------------------------------------------------------------------
 
-## setup
-setopt PATH_DIRS
-mkdir -p foo/bar
-touch foo/bar/testing-issue-228
-chmod  +x foo/bar/testing-issue-228
-path+=( "$PWD"/foo )
+if [[ $OSTYPE == msys ]]; then
+  skip_test='Cannot chmod +x in msys2'
+else
+  setopt PATH_DIRS
+  mkdir -p foo/bar
+  touch foo/bar/testing-issue-228
+  chmod  +x foo/bar/testing-issue-228
+  path+=( "$PWD"/foo )
 
-BUFFER='bar/testing-issue-228'
+  BUFFER='bar/testing-issue-228'
 
-expected_region_highlight=(
-  "1 21 command" # bar/testing-issue-228
-)
+  expected_region_highlight=(
+    "1 21 command" # bar/testing-issue-228
+  )
+fi