annotate runtime/syntax/netrw.vim @ 4029:d179a8eff9d7 v7.3.769

updated for version 7.3.769 Problem: 'matchpairs' does not work with multi-byte characters. Solution: Make it work. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 17 Jan 2013 17:02:05 +0100
parents 37ecb8ff4560
children 22fa3049e934
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
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
2 " Maintainer : Charles E. Campbell, Jr.
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
3 " Last change: Jan 14, 2009
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
4 " Version : 16
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
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
19 syn match netrwPlain "\(\S\+ \)*\S\+" contains=@NoSpell
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
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
22 syn match netrwDir "\%(\S\+ \)*\S\+/" contains=netrwClassify,@NoSpell
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
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
26 syn match netrwTreeBar "^\%([-+|] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
27 syn match netrwTreeBarSpace " " contained
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
28
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
29 syn match netrwClassify "[*=|@/]\ze\%(\s\{2,}\|$\)" contained
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
30 syn match netrwDateSep "/" contained
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
31 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
32 syn match netrwTimeSep ":"
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
33
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
34 syn match netrwComment '".*\%(\t\|$\)' contains=@NetrwGroup,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
35 syn match netrwHide '^"\s*\(Hid\|Show\)ing:' skipwhite contains=@NoSpell nextgroup=netrwHidePat
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
36 syn match netrwSlash "/" contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
37 syn match netrwHidePat "[^,]\+" contained skipwhite contains=@NoSpell nextgroup=netrwHideSep
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
38 syn match netrwHideSep "," contained skipwhite nextgroup=netrwHidePat
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
39 syn match netrwSortBy "Sorted by" contained transparent skipwhite nextgroup=netrwList
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
40 syn match netrwSortSeq "Sort sequence:" contained transparent skipwhite nextgroup=netrwList
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
41 syn match netrwCopyTgt "Copy/Move Tgt:" contained transparent skipwhite nextgroup=netrwList
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
42 syn match netrwList ".*$" contained contains=netrwComma,@NoSpell
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
43 syn match netrwComma "," contained
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
44 syn region netrwQuickHelp matchgroup=Comment start="Quick Help:\s\+" end="$" contains=netrwHelpCmd,@NoSpell keepend contained
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
45 syn match netrwHelpCmd "\S\ze:" contained skipwhite contains=@NoSpell nextgroup=netrwCmdSep
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
46 syn match netrwCmdSep ":" contained nextgroup=netrwCmdNote
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
47 syn match netrwCmdNote ".\{-}\ze " contained contains=@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
48 syn match netrwVersion "(netrw.*)" contained contains=@NoSpell
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
49
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
50 " -----------------------------
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
51 " Special filetype highlighting {{{1
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
52 " -----------------------------
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
53 if exists("g:netrw_special_syntax") && netrw_special_syntax
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
54 syn match netrwBak "\(\S\+ \)*\S\+\.bak\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
55 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
56 if has("unix")
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
57 syn match netrwCoreDump "\<core\%(\.\d\+\)\=\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
58 endif
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
59 syn match netrwData "\(\S\+ \)*\S\+\.dat\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
60 syn match netrwHdr "\(\S\+ \)*\S\+\.h\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
61 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
62 syn match netrwMakeFile "\<[mM]akefile\>\|\(\S\+ \)*\S\+\.mak\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
63 syn match netrwObj "\(\S\+ \)*\S*\.\%(o\|obj\)\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
64 syn match netrwTags "\<tags\>" contains=netrwTreeBar,@NoSpell
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
65 syn match netrwTags "\<\(ANmenu\|ANtags\)\>" contains=netrwTreeBar,@NoSpell
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2908
diff changeset
66 syn match netrwTilde "\(\S\+ \)*\S\+\~\*\=\>" contains=netrwTreeBar,@NoSpell
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
67 syn match netrwTmp "\<tmp\(\S\+ \)*\S\+\>\|\(\S\+ \)*\S*tmp\>" contains=netrwTreeBar,@NoSpell
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
68 endif
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
69
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
70 " ---------------------------------------------------------------------
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
71 " Highlighting Links: {{{1
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
72 if !exists("did_drchip_netrwlist_syntax")
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
73 let did_drchip_netrwlist_syntax= 1
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
74 hi default link netrwClassify Function
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
75 hi default link netrwCmdSep Delimiter
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
76 hi default link netrwComment Comment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
77 hi default link netrwDir Directory
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
78 hi default link netrwHelpCmd Function
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
79 hi default link netrwHidePat Statement
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
80 hi default link netrwHideSep netrwComment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
81 hi default link netrwList Statement
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
82 hi default link netrwVersion Identifier
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
83 hi default link netrwSymLink Question
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
84 hi default link netrwExe PreProc
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
85 hi default link netrwDateSep Delimiter
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
86
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
87 hi default link netrwTreeBar Special
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
88 hi default link netrwTimeSep netrwDateSep
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
89 hi default link netrwComma netrwComment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
90 hi default link netrwHide netrwComment
2908
fd09a9c8468e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2751
diff changeset
91 hi default link netrwMarkFile TabLineSel
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
92
b9740fb41986 updated for version 7.2a
vimboss
parents: 1121
diff changeset
93 " special syntax highlighting (see :he g:netrw_special_syntax)
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
94 hi default link netrwBak NonText
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
95 hi default link netrwCompress Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
96 hi default link netrwCoreDump WarningMsg
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
97 hi default link netrwData DiffChange
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
98 hi default link netrwLib DiffChange
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
99 hi default link netrwMakefile DiffChange
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
100 hi default link netrwObj Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
101 hi default link netrwTilde Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
102 hi default link netrwTmp Folded
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1619
diff changeset
103 hi default link netrwTags Folded
829
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
104 endif
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
105
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
106 " Current Syntax: {{{1
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
107 let b:current_syntax = "netrwlist"
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
108 " ---------------------------------------------------------------------
dc8197342755 updated for version 7.0d04
vimboss
parents:
diff changeset
109 " vim: ts=8 fdm=marker