robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:56e8ed6: runtime(kivy): Updated maintainer info for syntax script479af3b006

master
991 B36 linesraw
1" Vim syntax file
2" Language:    Kivy
3" Maintainer:  Corey Prophitt <corey@prophitt.me>
4" Last Change: Jul 31st, 2024
5" Version:     1
6" URL:         https://kivy.org/
7
8if exists("b:current_syntax")
9    finish
10endif
11
12" Load Python syntax first (Python can be used within Kivy)
13syn include @pyth $VIMRUNTIME/syntax/python.vim
14
15" Kivy language rules can be found here
16"   https://kivy.org/doc/stable/guide/lang.html
17
18" Define Kivy syntax
19syn match kivyPreProc   /#:.*/
20syn match kivyComment   /#[^:].*/
21syn match kivyRule      /<\I\i*\(,\s*\I\i*\)*>:/
22syn match kivyAttribute /\<\I\i*\>/ nextgroup=kivyValue
23
24syn region kivyValue start=":" end=/$/  contains=@pyth skipwhite
25
26syn region kivyAttribute matchgroup=kivyIdent start=/[\a_][\a\d_]*:/ end=/$/ contains=@pyth skipwhite
27
28hi def link kivyPreproc   PreProc
29hi def link kivyComment   Comment
30hi def link kivyRule      Function
31hi def link kivyIdent     Statement
32hi def link kivyAttribute Label
33
34let b:current_syntax = "kivy"
35
36" vim: ts=8