annotate runtime/syntax/kivy.vim @ 19722:c94c103e7cb4 v8.2.0417

patch 8.2.0417: Travis CI config can be improved Commit: https://github.com/vim/vim/commit/98be7fecac80b30c5a323b67903eb1d0094007ea Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 20 18:12:59 2020 +0100 patch 8.2.0417: Travis CI config can be improved Problem: Travis CI config can be improved. Solution: Remove COVERAGE variable. Add load-snd-dummy script. add "-i NONE" to avoid messages about viminfo. (Ozaki Kiichi, closes #5813)
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Mar 2020 18:15:05 +0100
parents 92751673cc37
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5968
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: Kivy
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Corey Prophitt <prophitt.corey@gmail.com>
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Last Change: May 29th, 2014
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " Version: 1
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " URL: http://kivy.org/
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 if exists("b:current_syntax")
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 finish
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 endif
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 " Load Python syntax first (Python can be used within Kivy)
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 syn include @pyth $VIMRUNTIME/syntax/python.vim
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 " Kivy language rules can be found here
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 " http://kivy.org/docs/guide/lang.html
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 " Define Kivy syntax
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 syn match kivyPreProc /#:.*/
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 syn match kivyComment /#.*/
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 syn match kivyRule /<\I\i*\(,\s*\I\i*\)*>:/
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 syn match kivyAttribute /\<\I\i*\>/ nextgroup=kivyValue
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 syn region kivyValue start=":" end=/$/ contains=@pyth skipwhite
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 syn region kivyAttribute matchgroup=kivyIdent start=/[\a_][\a\d_]*:/ end=/$/ contains=@pyth skipwhite
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 hi def link kivyPreproc PreProc
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 hi def link kivyComment Comment
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 hi def link kivyRule Function
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 hi def link kivyIdent Statement
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 hi def link kivyAttribute Label
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 let b:current_syntax = "kivy"
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35
92751673cc37 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 " vim: ts=8