codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Ipkg3" Maintainer: Idris Hackers (https://github.com/edwinb/idris2-vim), Serhii Khoma <srghma@gmail.com>4" Last Change: 2020 May 195" Version: 0.16" Author: ShinKage7" License: Vim (see :h license)8" Repository: https://github.com/ShinKage/idris2-nvim9"10" Syntax highlight for Idris 2 Package Descriptors (idris-lang.org)11"12 13if exists("b:current_syntax")14 finish15endif16 17" we want to use line continuations (\) BEGINNING18let s:cpo_save = &cpo19set cpo&vim20 21syn keyword ipkgKey22 \ package23 \ authors24 \ maintainers25 \ license26 \ brief27 \ readme28 \ homepage29 \ sourceloc30 \ bugtracker31 \ options32 \ opts33 \ sourcedir34 \ builddir35 \ outputdir36 \ prebuild37 \ postbuild38 \ preinstall39 \ postinstall40 \ preclean41 \ postclean42 \ version43 \ langversion44 \ modules45 \ main46 \ executable47 \ depends48 49" we want to use line continuations (\) END50let &cpo = s:cpo_save51unlet s:cpo_save52 53syn region ipkgString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell54syn match ipkgVersion "[0-9]*\([.][0-9]*\)*"55syn match ipkgName "[a-zA-Z][a-zA-z0-9_']*\([.][a-zA-Z][a-zA-z0-9_']*\)*" contained56syn match ipkgOperator "\(,\|&&\|<\|<=\|==\|>=\|>\)"57syn match ipkgComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$" contains=@Spell58 59highlight def link ipkgKey Statement60highlight def link ipkgString String61highlight def link ipkgVersion Number62highlight def link ipkgName Identifier63highlight def link ipkgOperator Operator64highlight def link ipkgComment Comment65 66let b:current_syntax = "ipkg"67 