blob: cf42819bcd77af423f9f066f3bea2742afc5dd75 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
Bram Moolenaar5302d9e2011-09-14 17:55:08 +02002" Language: Configuration File (ini file) for MSDOS/MS Windows
Bram Moolenaar95bafa22018-10-02 13:26:25 +02003" Version: 2.2
Bram Moolenaar5302d9e2011-09-14 17:55:08 +02004" Original Author: Sean M. McKee <mckee@misslink.net>
5" Previous Maintainer: Nima Talebi <nima@it.net.au>
Bram Moolenaar95bafa22018-10-02 13:26:25 +02006" Current Maintainer: Hong Xu <hong@topbug.net>
Bram Moolenaarf1568ec2011-12-14 21:17:39 +01007" Homepage: http://www.vim.org/scripts/script.php?script_id=3747
Bram Moolenaar95bafa22018-10-02 13:26:25 +02008" Repository: https://github.com/xuhdev/syntax-dosini.vim
9" Last Change: 2018 Sep 11
Bram Moolenaarc81e5e72007-05-05 18:24:42 +000010
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020012" quit when a syntax file was already loaded
13if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000014 finish
15endif
16
17" shut case off
18syn case ignore
19
Bram Moolenaar95bafa22018-10-02 13:26:25 +020020syn match dosiniLabel "^.\{-}\ze\s*=" nextgroup=dosiniNumber,dosiniValue
21syn match dosiniValue "=\zs.*"
22syn match dosiniNumber "=\zs\s*\d\+\s*$"
23syn match dosiniNumber "=\zs\s*\d*\.\d\+\s*$"
24syn match dosiniNumber "=\zs\s*\d\+e[+-]\=\d\+\s*$"
Bram Moolenaar5302d9e2011-09-14 17:55:08 +020025syn region dosiniHeader start="^\s*\[" end="\]"
26syn match dosiniComment "^[#;].*$"
Bram Moolenaar071d4272004-06-13 20:20:40 +000027
28" Define the default highlighting.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020029" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +000030
Bram Moolenaarf37506f2016-08-31 22:22:10 +020031hi def link dosiniNumber Number
32hi def link dosiniHeader Special
33hi def link dosiniComment Comment
34hi def link dosiniLabel Type
Bram Moolenaar95bafa22018-10-02 13:26:25 +020035hi def link dosiniValue String
Bram Moolenaar071d4272004-06-13 20:20:40 +000036
Bram Moolenaar071d4272004-06-13 20:20:40 +000037
38let b:current_syntax = "dosini"
39
Bram Moolenaar5302d9e2011-09-14 17:55:08 +020040" vim: sts=2 sw=2 et