annotate runtime/syntax/kivy.vim @ 33971:807ee2d19caf

runtime(tmux): Update tmux syntax rules (#13708) Commit: https://github.com/vim/vim/commit/b42703a662e87ef0ab643f417869851f065eaac4 Author: Eric Pruitt <eric.pruitt@gmail.com> Date: Mon Dec 18 00:03:40 2023 -0800 runtime(tmux): Update tmux syntax rules (https://github.com/vim/vim/issues/13708) Signed-off-by: Eric Pruitt <eric.pruitt@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 18 Dec 2023 09: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