-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathsource.python.kivy.js
More file actions
27 lines (25 loc) · 848 Bytes
/
source.python.kivy.js
File metadata and controls
27 lines (25 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/p0lygun/kivy-language-grammer>
// and licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.python'],
extensions: ['.kv'],
names: ['kvlang'],
patterns: [
{match: '#:.*?$', name: 'support.type.kivy'},
{match: '#.*?$', name: 'comment.kivy'},
{match: '\\<.+\\>', name: 'support.class.kivy'},
{match: '[A-Za-z][A-Za-z0-9]+$', name: 'support.function.kivy'},
{match: '.*?:$', name: 'support.function.kivy'},
{match: '(.*?):$', name: 'entity.name.section.kivy'},
{include: 'source.python'}
],
scopeName: 'source.python.kivy'
}
export default grammar