annotate runtime/syntax/netrw.vim @ 9894:b01afb4e8f66 v7.4.2221

commit https://github.com/vim/vim/commit/91984b9034d3b698459622be277d963e0c6df60e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 16 21:58:41 2016 +0200 patch 7.4.2221 Problem: printf() does not support binary format. Solution: Add %b and %B. (Ozaki Kiichi)
author Christian Brabandt <cb@256bit.org>
date Tue, 16 Aug 2016 22:00:06 +0200
parents ffad29dc7eee
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
1 " Language : Netrw Remote-Directory Listing Syntax
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
2 " Maintainer : Charles E. Campbell
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
3 " Last change: Oct 06, 2014
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
4 " Version : 19
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
5 " ---------------------------------------------------------------------
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
6
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
7 " Syntax Clearing: {{{1
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
8 if version < 600
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
9 syntax clear
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
11 finish
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
12 endif
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
13
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
14 " ---------------------------------------------------------------------
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
15 " Directory List Syntax Highlighting: {{{1
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
16 syn cluster NetrwGroup contains=netrwHide,netrwSortBy,netrwSortSeq,netrwQuickHelp,netrwVersion,netrwCopyTgt
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
17 syn cluster NetrwTreeGroup contains=netrwDir,netrwSymLink,netrwExe
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
18
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
19 syn match netrwPlain "\(\S\+ \)*\S\+" contains=netrwLink,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
20 syn match netrwSpecial "\%(\S\+ \)*\S\+[*|=]\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
21 syn match netrwDir "\.\{1,2}/" contains=netrwClassify,@NoSpell
5618
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
22 syn match netrwDir "\%(\S\+ \)*\S\+/\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
23 syn match netrwSizeDate "\<\d\+\s\d\{1,2}/\d\{1,2}/\d\{4}\s" skipwhite contains=netrwDateSep,@NoSpell nextgroup=netrwTime
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
24 syn match netrwSymLink "\%(\S\+ \)*\S\+@\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2908
diff changeset
25 syn match netrwExe "\%(\S\+ \)*\S*[^~]\*\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
26 if has("gui_running") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4')
5618
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
27 syn match netrwTreeBar "^\%([-+|│] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
28 else
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
29 syn match netrwTreeBar "^\%([-+|] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
30 endif
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
31 syn match netrwTreeBarSpace " " contained
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
32
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
33 syn match netrwClassify "[*=|@/]\ze\%(\s\{2,}\|$\)" contained
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
34 syn match netrwDateSep "/" contained
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
35 syn match netrwTime "\d\{1,2}:\d\{2}:\d\{2}" contained contains=netrwTimeSep
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 829
diff changeset
36 syn match netrwTimeSep ":"
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
37
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
38 syn match netrwComment '".*\%(\t\|$\)' contains=@NetrwGroup,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
39 syn match netrwHide '^"\s*\(Hid\|Show\)ing:' skipwhite contains=@NoSpell nextgroup=netrwHidePat
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
40 syn match netrwSlash "/" contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
41 syn match netrwHidePat "[^,]\+" contained skipwhite contains=@NoSpell nextgroup=netrwHideSep
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
42 syn match netrwHideSep "," contained skipwhite nextgroup=netrwHidePat
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
43 syn match netrwSortBy "Sorted by" contained transparent skipwhite nextgroup=netrwList
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
44 syn match netrwSortSeq "Sort sequence:" contained transparent skipwhite nextgroup=netrwList
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
45 syn match netrwCopyTgt "Copy/Move Tgt:" contained transparent skipwhite nextgroup=netrwList
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
46 syn match netrwList ".*$" contained contains=netrwComma,@NoSpell
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
47 syn match netrwComma "," contained
5734
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5618
diff changeset
48 syn region netrwQuickHelp matchgroup=Comment start="Quick Help:\s\+" end="$" contains=netrwHelpCmd,netrwQHTopic,@NoSpell keepend contained
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5618
diff changeset
49 syn match netrwHelpCmd "\S\+\ze:" contained skipwhite contains=@NoSpell nextgroup=netrwCmdSep
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
50 syn match netrwQHTopic "([a-zA-Z &]\+)" contained skipwhite
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
51 syn match netrwCmdSep ":" contained nextgroup=netrwCmdNote
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
52 syn match netrwCmdNote ".\{-}\ze " contained contains=@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
53 syn match netrwVersion "(netrw.*)" contained contains=@NoSpell
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
54 syn match netrwLink "-->" contained skipwhite
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
55
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
56 " -----------------------------
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
57 " Special filetype highlighting {{{1
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
58 " -----------------------------
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
59 if exists("g:netrw_special_syntax") && netrw_special_syntax
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
60 syn match netrwBak "\(\S\+ \)*\S\+\.bak\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
61 syn match netrwCompress "\(\S\+ \)*\S\+\.\%(gz\|bz2\|Z\|zip\)\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
62 if has("unix")
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
63 syn match netrwCoreDump "\<core\%(\.\d\+\)\=\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
64 endif
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
65 syn match netrwLex "\(\S\+ \)*\S\+\.\%(l\|lex\)\>" contains=netrwTreeBar,@NoSpell
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
66 syn match netrwYacc "\(\S\+ \)*\S\+\.y\>" contains=netrwTreeBar,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
67 syn match netrwData "\(\S\+ \)*\S\+\.dat\>" contains=netrwTreeBar,@NoSpell
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
68 syn match netrwDoc "\(\S\+ \)*\S\+\.\%(doc\|txt\|pdf\|ps\)" contains=netrwTreeBar,@NoSpell
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
69 syn match netrwHdr "\(\S\+ \)*\S\+\.\%(h\|hpp\)\>" contains=netrwTreeBar,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
70 syn match netrwLib "\(\S\+ \)*\S*\.\%(a\|so\|lib\|dll\)\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
71 syn match netrwMakeFile "\<[mM]akefile\>\|\(\S\+ \)*\S\+\.mak\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
72 syn match netrwObj "\(\S\+ \)*\S*\.\%(o\|obj\)\>" contains=netrwTreeBar,@NoSpell
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
73 syn match netrwTags "\<\(ANmenu\|ANtags\)\>" contains=netrwTreeBar,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
74 syn match netrwTags "\<tags\>" contains=netrwTreeBar,@NoSpell
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2908
diff changeset
75 syn match netrwTilde "\(\S\+ \)*\S\+\~\*\=\>" contains=netrwTreeBar,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
76 syn match netrwTmp "\<tmp\(\S\+ \)*\S\+\>\|\(\S\+ \)*\S*tmp\>" contains=netrwTreeBar,@NoSpell
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
77 endif
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
78
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
79 " ---------------------------------------------------------------------
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
80 " Highlighting Links: {{{1
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
81 if !exists("did_drchip_netrwlist_syntax")
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
82 let did_drchip_netrwlist_syntax= 1
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
83 hi default link netrwClassify Function
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
84 hi default link netrwCmdSep Delimiter
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
85 hi default link netrwComment Comment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
86 hi default link netrwDir Directory
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
87 hi default link netrwHelpCmd Function
5734
657ade71d395 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5618
diff changeset
88 hi default link netrwQHTopic Number
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
89 hi default link netrwHidePat Statement
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
90 hi default link netrwHideSep netrwComment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
91 hi default link netrwList Statement
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
92 hi default link netrwVersion Identifier
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
93 hi default link netrwSymLink Question
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
94 hi default link netrwExe PreProc
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
95 hi default link netrwDateSep Delimiter
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
96
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
97 hi default link netrwTreeBar Special
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
98 hi default link netrwTimeSep netrwDateSep
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
99 hi default link netrwComma netrwComment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
100 hi default link netrwHide netrwComment
2908
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
101 hi default link netrwMarkFile TabLineSel
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5734
diff changeset
102 hi default link netrwLink Special
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
103
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
104 " special syntax highlighting (see :he g:netrw_special_syntax)
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
105 hi default link netrwBak NonText
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
106 hi default link netrwCompress Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
107 hi default link netrwCoreDump WarningMsg
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
108 hi default link netrwData DiffChange
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
109 hi default link netrwHdr netrwPlain
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
110 hi default link netrwLex netrwPlain
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
111 hi default link netrwLib DiffChange
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
112 hi default link netrwMakefile DiffChange
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
113 hi default link netrwObj Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
114 hi default link netrwTilde Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
115 hi default link netrwTmp Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
116 hi default link netrwTags Folded
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3153
diff changeset
117 hi default link netrwYacc netrwPlain
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
118 endif
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
119
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
120 " Current Syntax: {{{1
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
121 let b:current_syntax = "netrwlist"
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
122 " ---------------------------------------------------------------------
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
123 " vim: ts=8 fdm=marker