annotate runtime/syntax/dosini.vim @ 2448:628147a4b3b2 vim73

Fix: on MS-Windows the "open with..." menu starts Vim without a file.
author Bram Moolenaar <bram@vim.org>
date Sat, 31 Jul 2010 20:53:54 +0200
parents 96cd8222a819
children f2de38a019a2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Configuration File (ini file) for MSDOS/MS Windows
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
3 " Version Info: @(#)dosini.vim 1.6 97/12/15 08:54:12
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
4 " Author: Sean M. McKee <mckee@misslink.net>
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
5 " Maintainer: Nima Talebi <nima@it.net.au>
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
6 " Last Change: Mon, 26 Jun 2006 22:07:28 +1000
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
7
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " shut case off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match dosiniLabel "^.\{-}="
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
21 syn region dosiniHeader start="^\[" end="\]"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match dosiniComment "^;.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 if version >= 508 || !exists("did_dosini_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let did_dosini_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 HiLink dosiniHeader Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 HiLink dosiniComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 HiLink dosiniLabel Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 let b:current_syntax = "dosini"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " vim:ts=8