summaryrefslogtreecommitdiff
path: root/runtime/syntax/netrc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/netrc.vim')
-rw-r--r--runtime/syntax/netrc.vim21
1 files changed, 11 insertions, 10 deletions
diff --git a/runtime/syntax/netrc.vim b/runtime/syntax/netrc.vim
index d8eba30a8..9f15d1663 100644
--- a/runtime/syntax/netrc.vim
+++ b/runtime/syntax/netrc.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: netrc(5) configuration file
" Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2006-04-19
+" Latest Revision: 2010-01-03
if exists("b:current_syntax")
finish
@@ -11,12 +11,13 @@ let s:cpo_save = &cpo
set cpo&vim
syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl
-syn keyword netrcKeyword login nextgroup=netrcLogin,netrcSpecial
- \ skipwhite skipnl
+syn keyword netrcKeyword account
+ \ login
+ \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl
syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl
syn keyword netrcKeyword default
-syn keyword netrcKeyword macdef nextgroup=netrcInit,netrcMacroName
- \ skipwhite skipnl
+syn keyword netrcKeyword macdef
+ \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl
syn region netrcMacro contained start='.' end='^$'
syn match netrcMachine contained display '\S\+'
@@ -25,14 +26,14 @@ syn match netrcLogin contained display '\S\+'
syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
syn match netrcPassword contained display '\S\+'
syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
-syn match netrcMacroName contained display '\S\+' nextgroup=netrcMacro
- \ skipwhite skipnl
+syn match netrcMacroName contained display '\S\+'
+ \ nextgroup=netrcMacro skipwhite skipnl
syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
- \ nextgroup=netrcMacro skipwhite skipnl
+ \ nextgroup=netrcMacro skipwhite skipnl
syn keyword netrcSpecial contained anonymous
-syn match netrcInit contained '\<init$' nextgroup=netrcMacro
- \ skipwhite skipnl
+syn match netrcInit contained '\<init$'
+ \ nextgroup=netrcMacro skipwhite skipnl
syn sync fromstart