Merge 06faf7bd24 into ad522a0914
This commit is contained in:
commit
e2146f968d
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
source "../../zsh-syntax-highlighting.zsh"
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
# Load from given file
|
||||||
|
PREBUFFER=""
|
||||||
|
BUFFER="$(<$1)"
|
||||||
|
|
||||||
|
_zsh_highlight_main_highlighter
|
||||||
|
|
||||||
|
# This output can be diffed to detect changes in operation
|
||||||
|
print -rl -- "${region_highlight[@]}"
|
||||||
|
else
|
||||||
|
echo "Usage: ./parse.zsh {file}"
|
||||||
|
fi
|
||||||
Loading…
Reference in New Issue