aboutsummaryrefslogtreecommitdiff
path: root/.config/shell/zsh-fast-syntax-highlighting/:chroma/-subcommand.ch
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/zsh-fast-syntax-highlighting/:chroma/-subcommand.ch')
-rw-r--r--.config/shell/zsh-fast-syntax-highlighting/:chroma/-subcommand.ch25
1 files changed, 0 insertions, 25 deletions
diff --git a/.config/shell/zsh-fast-syntax-highlighting/:chroma/-subcommand.ch b/.config/shell/zsh-fast-syntax-highlighting/:chroma/-subcommand.ch
deleted file mode 100644
index 0665548..0000000
--- a/.config/shell/zsh-fast-syntax-highlighting/:chroma/-subcommand.ch
+++ /dev/null
@@ -1,25 +0,0 @@
-# vim:ft=zsh:et:sw=4
-(( next_word = 2 | 8192 ))
-[[ "$__arg_type" = 3 ]] && return 2
-
-local __first_call="$1" __wrd="$2" __start_pos="$3" __end_pos="$4"
-
-if (( __first_call )); then
- FAST_HIGHLIGHT[chroma-subcommand]=""
- return 1
-elif (( in_redirection > 0 || this_word & 128 )) || [[ $__wrd == "<<<" ]]; then
- return 1
-elif [[ "$2" = -* ]]; then
- return 1
-elif [[ -z "${FAST_HIGHLIGHT[chroma-subcommand]}" ]]; then
- FAST_HIGHLIGHT[chroma-subcommand]="$__wrd"
- (( __start=__start_pos-${#PREBUFFER}, __end=__end_pos-${#PREBUFFER}, __start >= 0 )) \
- && reply+=("$__start $__end ${FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}subcommand]}")
-else
- return 1
-fi
-
-(( this_word = next_word ))
-_start_pos=$_end_pos
-
-return 0