Update syntax hilighting plugin
[zsh.git] / .zsh / zsh-syntax-highlighting / highlighters / main / test-data / path-broken-symlink.zsh
index 84c7d59..c99f872 100644 (file)
 # vim: ft=zsh sw=2 ts=2 et
 # -------------------------------------------------------------------------------------------------
 
 # vim: ft=zsh sw=2 ts=2 et
 # -------------------------------------------------------------------------------------------------
 
-ln -s /nonexistent broken-symlink
-BUFFER=': broken-symlink'
-CURSOR=5 # to make path_prefix ineligible
+if [[ $OSTYPE == msys ]]; then
+  skip_test='Cannot create symlinks in msys2'
+else
+  ln -s /nonexistent broken-symlink
+  BUFFER=': broken-symlink'
+  CURSOR=5 # to make path_prefix ineligible
 
 
-expected_region_highlight=(
-  "3 16 path" # broken-symlink
-)
+  expected_region_highlight=(
+    "3 16 path" # broken-symlink
+  )
+fi