diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-05-18 22:10:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-05-18 22:10:28 +0000 |
commit | d9d305836e1f3af1577d438642b3c1f9daba7db6 (patch) | |
tree | 8f3f167531adb63063c45929f3eab1f11ae8e442 /runtime | |
parent | d8a4e563d0827c88caea9baf97f70083737fb9c9 (diff) |
updated for version 7.0072
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/editing.txt | 14 | ||||
-rw-r--r-- | runtime/syntax/crontab.vim | 30 |
2 files changed, 26 insertions, 18 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index 8ae870a5a6..c8b694193f 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 7.0aa. Last change: 2005 Apr 04 +*editing.txt* For Vim version 7.0aa. Last change: 2005 Apr 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -54,12 +54,12 @@ and then hit CTRL-^. {Vi: only one alternate file name is remembered} CTRL-G or *CTRL-G* *:f* *:fi* *:file* -:f[ile] Prints the current file name (as typed), the - cursor position (unless the 'ruler' option is set), - and the file status (readonly, modified, read errors, - new file). See the 'shortmess' option about how to - make this message shorter. {Vi does not include - column number} +:f[ile] Prints the current file name (as typed, unless ":cd" + was used), the cursor position (unless the 'ruler' + option is set), and the file status (readonly, + modified, read errors, new file). See the 'shortmess' + option about how to make this message shorter. + {Vi does not include column number} :f[ile]! like |:file|, but don't truncate the name even when 'shortmess' indicates this. diff --git a/runtime/syntax/crontab.vim b/runtime/syntax/crontab.vim index b7b8ef6f1b..372478c1ed 100644 --- a/runtime/syntax/crontab.vim +++ b/runtime/syntax/crontab.vim @@ -1,9 +1,10 @@ " Vim syntax file -" Language: crontab 2.3.3 +" Language: crontab " Maintainer: John Hoelzel johnh51@users.sourceforge.net -" Last change: Mon Jun 9 2003 -" Filenames: /tmp/crontab.* used by "crontab -e" -" URL: http://johnh51.get.to/vim/syntax/crontab.vim +" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz> +" Last Change: 2005-04-26 +" Filenames: /tmp/crontab.* used by "crontab -e" +" URL: http://trific.ath.cx/Ftp/vim/syntax/crontab.vim " " crontab line format: " Minutes Hours Days Months Days_of_Week Commands # comments @@ -16,20 +17,24 @@ elseif exists("b:current_syntax") finish endif -syntax match crontabMin "\_^[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabHr skipwhite -syntax match crontabHr "\<[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabDay skipwhite contained -syntax match crontabDay "\<[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabMnth skipwhite contained +syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=crontabHr skipwhite +syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite contained +syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained -syntax match crontabMnth "\<[a-z0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabDow skipwhite contained +syntax match crontabMnth "\s[-a-z0-9/,.*]\+" nextgroup=crontabDow skipwhite contained syntax keyword crontabMnth12 contained jan feb mar apr may jun jul aug sep oct nov dec -syntax match crontabDow "\<[a-z0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabCmd skipwhite contained +syntax match crontabDow "\s[-a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite contained syntax keyword crontabDow7 contained sun mon tue wed thu fri sat " syntax region crontabCmd start="\<[a-z0-9\/\(]" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend -syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend -syntax match crontabCmnt /#.*/ +syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained keepend +syntax match crontabCmnt "^\s*#.*" + +syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite + +syntax match crontabVar "^\s*\k\w*\s*="me=e-1 " Define the default highlighting. " For version 5.7 and earlier: only when not done already @@ -56,6 +61,9 @@ if version >= 508 || !exists("did_crontab_syn_inits") HiLink crontabDowS PreProc HiLink crontabDowN PreProc + HiLink crontabNick Special + HiLink crontabVar Identifier + " comment out next line for to suppress unix commands coloring. HiLink crontabCmd Type |