Mercurial > vim
comparison runtime/syntax/zsh.vim @ 13912:a9fdf01085a8
Update runtime files.
commit https://github.com/vim/vim/commit/7db25fed5de1be922b8cbb0328149469606a0424
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 13 00:02:36 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 May 2018 00:15:05 +0200 |
parents | 45987b1b77dc |
children | 6d11fc4aa683 |
comparison
equal
deleted
inserted
replaced
13911:c02f0e120b11 | 13912:a9fdf01085a8 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Zsh shell script | 2 " Language: Zsh shell script |
3 " Maintainer: Christian Brabandt <cb@256bit.org> | 3 " Maintainer: Christian Brabandt <cb@256bit.org> |
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | 4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> |
5 " Latest Revision: 2017-11-22 | 5 " Latest Revision: 2018-05-12 |
6 " License: Vim (see :h license) | 6 " License: Vim (see :h license) |
7 " Repository: https://github.com/chrisbra/vim-zsh | 7 " Repository: https://github.com/chrisbra/vim-zsh |
8 | 8 |
9 if exists("b:current_syntax") | 9 if exists("b:current_syntax") |
10 finish | 10 finish |
65 syn match zshRedir '|&\=' | 65 syn match zshRedir '|&\=' |
66 | 66 |
67 syn region zshHereDoc matchgroup=zshRedir | 67 syn region zshHereDoc matchgroup=zshRedir |
68 \ start='<\@<!<<\s*\z([^<]\S*\)' | 68 \ start='<\@<!<<\s*\z([^<]\S*\)' |
69 \ end='^\z1\>' | 69 \ end='^\z1\>' |
70 \ contains=@zshSubst | 70 \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString |
71 syn region zshHereDoc matchgroup=zshRedir | 71 syn region zshHereDoc matchgroup=zshRedir |
72 \ start='<\@<!<<\s*\\\z(\S\+\)' | 72 \ start='<\@<!<<\s*\\\z(\S\+\)' |
73 \ end='^\z1\>' | 73 \ end='^\z1\>' |
74 \ contains=@zshSubst | 74 \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString |
75 syn region zshHereDoc matchgroup=zshRedir | 75 syn region zshHereDoc matchgroup=zshRedir |
76 \ start='<\@<!<<-\s*\\\=\z(\S\+\)' | 76 \ start='<\@<!<<-\s*\\\=\z(\S\+\)' |
77 \ end='^\s*\z1\>' | 77 \ end='^\s*\z1\>' |
78 \ contains=@zshSubst | 78 \ contains=@zshSubst,@zshDerefs,zshQuoted,zshPOSIXString |
79 syn region zshHereDoc matchgroup=zshRedir | 79 syn region zshHereDoc matchgroup=zshRedir |
80 \ start=+<\@<!<<\s*\(["']\)\z(\S\+\)\1+ | 80 \ start=+<\@<!<<\s*\(["']\)\z(\S\+\)\1+ |
81 \ end='^\z1\>' | 81 \ end='^\z1\>' |
82 syn region zshHereDoc matchgroup=zshRedir | 82 syn region zshHereDoc matchgroup=zshRedir |
83 \ start=+<\@<!<<-\s*\(["']\)\z(\S\+\)\1+ | 83 \ start=+<\@<!<<-\s*\(["']\)\z(\S\+\)\1+ |
116 \ rehash return sched set setcap shift | 116 \ rehash return sched set setcap shift |
117 \ source stat suspend test times trap true | 117 \ source stat suspend test times trap true |
118 \ ttyctl type ulimit umask unalias unfunction | 118 \ ttyctl type ulimit umask unalias unfunction |
119 \ unhash unlimit unset vared wait | 119 \ unhash unlimit unset vared wait |
120 \ whence where which zcompile zformat zftp zle | 120 \ whence where which zcompile zformat zftp zle |
121 \ zmodload zparseopts zprof zpty zregexparse | 121 \ zmodload zparseopts zprof zpty zrecompile |
122 \ zsocket zstyle ztcp | 122 \ zregexparse zsocket zstyle ztcp |
123 | 123 |
124 " Options, generated by: echo ${(j:\n:)options[(I)*]} | sort | 124 " Options, generated by: echo ${(j:\n:)options[(I)*]} | sort |
125 " Create a list of option names from zsh source dir: | 125 " Create a list of option names from zsh source dir: |
126 " #!/bin/zsh | 126 " #!/bin/zsh |
127 " topdir=/path/to/zsh-xxx | 127 " topdir=/path/to/zsh-xxx |