robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
ab20681c52
master
1" Vim syntax file 2" Language: Configuration File (ini file) for MSDOS/MS Windows 3" Version: 2.4 4" Original Author: Sean M. McKee <mckee@misslink.net> 5" Previous Maintainer: Nima Talebi <nima@it.net.au> 6" Current Maintainer: Hong Xu <hong@topbug.net> 7" Homepage: http://www.vim.org/scripts/script.php?script_id=3747 8" Repository: https://github.com/xuhdev/syntax-dosini.vim 9" Last Change: 2024 Sept 08 10 11 12" quit when a syntax file was already loaded 13if exists ( "b:current_syntax" ) 14finish 15endif 16 17" using of line-continuation requires cpo&vim 18let s: cpo_save = & cpo 19set cpo & vim 20 21" shut case off 22syn case ignore 23 24syn match dosiniLabel "^.\{-}\ze\s * = "nextgroup = dosiniNumber , dosiniValue 25syn match dosiniValue "=\zs. * " 26syn match dosiniNumber "=\zs\s * \d\+\s * $ " 27syn match dosiniNumber "=\zs\s * \d * \.\d\+\s * $ " 28syn match dosiniNumber "=\zs\s * \d\+e [ +- ] \=\d\+\s * $ " 29syn region dosiniHeader start = "^\s * \[ "end = "\] " 30syn match dosiniComment "^ [ #; ] . * $ "contains = @Spell 31syn region dosiniSection start = "\s * \[. * \] "end = "\ze\s * \[. * \] "fold 32 \contains = dosiniLabel , dosiniValue , dosiniNumber , dosiniHeader , dosiniComment 33 34" Define the default highlighting. 35" Only when an item doesn't have highlighting yet 36 37hi def link dosiniNumber Number 38hi def link dosiniHeader Special 39hi def link dosiniComment Comment 40hi def link dosiniLabel Type 41hi def link dosiniValue String 42 43 44let b: current_syntax = "dosini" 45 46let & cpo = s: cpo_save 47unlet s: cpo_save 48 49" vim: sts=2 sw=2 et