Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
dosini.vim50 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:               Configuration File (ini file) for MSDOS/MS Windows3" Version:                2.44" 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=37478" Repository:             https://github.com/xuhdev/syntax-dosini.vim9" Last Change:            2024 Sept 0810 11 12" quit when a syntax file was already loaded13if exists("b:current_syntax")14  finish15endif16 17" using of line-continuation requires cpo&vim18let s:cpo_save = &cpo19set cpo&vim20 21" shut case off22syn case ignore23 24syn match  dosiniLabel    "^.\{-}\ze\s*=" nextgroup=dosiniNumber,dosiniValue25syn 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=@Spell31syn region dosiniSection  start="\s*\[.*\]" end="\ze\s*\[.*\]" fold32      \ contains=dosiniLabel,dosiniValue,dosiniNumber,dosiniHeader,dosiniComment33 34" Define the default highlighting.35" Only when an item doesn't have highlighting yet36 37hi def link dosiniNumber   Number38hi def link dosiniHeader   Special39hi def link dosiniComment  Comment40hi def link dosiniLabel    Type41hi def link dosiniValue    String42 43 44let b:current_syntax = "dosini"45 46let &cpo = s:cpo_save47unlet s:cpo_save48 49" vim: sts=2 sw=2 et50 
codekingpro/portable-devtools · Team Ai