codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Kivy3" Maintainer: Corey Prophitt <corey@prophitt.me>4" Last Change: Jul 31st, 20245" Version: 16" URL: https://kivy.org/7 8if exists("b:current_syntax")9 finish10endif11 12" Load Python syntax first (Python can be used within Kivy)13syn include @pyth $VIMRUNTIME/syntax/python.vim14 15" Kivy language rules can be found here16" https://kivy.org/doc/stable/guide/lang.html17 18" Define Kivy syntax19syn match kivyPreProc /#:.*/20syn match kivyComment /#[^:].*/21syn match kivyRule /<\I\i*\(,\s*\I\i*\)*>:/22syn match kivyAttribute /\<\I\i*\>/ nextgroup=kivyValue23 24syn region kivyValue start=":" end=/$/ contains=@pyth skipwhite25 26syn region kivyAttribute matchgroup=kivyIdent start=/[\a_][\a\d_]*:/ end=/$/ contains=@pyth skipwhite27 28hi def link kivyPreproc PreProc29hi def link kivyComment Comment30hi def link kivyRule Function31hi def link kivyIdent Statement32hi def link kivyAttribute Label33 34let b:current_syntax = "kivy"35 36" vim: ts=837 