mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0002
This commit is contained in:
29
runtime/syntax/netrwlist.vim
Normal file
29
runtime/syntax/netrwlist.vim
Normal file
@@ -0,0 +1,29 @@
|
||||
" Language : Netrw Remote-Directory Listing Syntax
|
||||
" Maintainer : Charles E. Campbell, Jr.
|
||||
" Last change: Jun 10, 2004
|
||||
" Version : 1
|
||||
|
||||
" Syntax Clearing: {{{1
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Directory List Syntax Highlighting: {{{1
|
||||
syn match netrwDir "^.*/$" contains=netrwSpecial
|
||||
syn match netrwSpecial "[*=@|/]$"
|
||||
syn match netrwSlash contained "/"
|
||||
syn match netrwComment '".*$'
|
||||
|
||||
" Highlighting Links: {{{1
|
||||
if !exists("did_drchip_dbg_syntax")
|
||||
let did_drchip_netrwlist_syntax= 1
|
||||
hi link netrwComment Comment
|
||||
hi link netrwDir Directory
|
||||
hi link netrwSpecial Function
|
||||
endif
|
||||
|
||||
" Current Syntax: {{{1
|
||||
let b:current_syntax = "netrwlist"
|
||||
" vim: ts=8 fdm=marker
|
@@ -19,6 +19,8 @@ syn match poFormat "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|
|
||||
syn match poFormat "%%" contained
|
||||
syn region poString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
\ contains=poSpecial,poFormat
|
||||
syn region poFuzzy start=+^#,\sfuzzy+ end=+^$+
|
||||
syn match poUntranslated +^msgstr\s""\n\n+
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
@@ -37,6 +39,8 @@ if version >= 508 || !exists("did_po_syn_inits")
|
||||
HiLink poSpecial Special
|
||||
HiLink poFormat poSpecial
|
||||
HiLink poString String
|
||||
HiLink poFuzzy Todo
|
||||
HiLink poUntranslated Todo
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
Reference in New Issue
Block a user