forked from ivlevdenis/kivylng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kv.tmLanguage
100 lines (100 loc) · 5.13 KB
/
kv.tmLanguage
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>kv</string>
</array>
<key>name</key>
<string>Kivy Syntax</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b(?:(import|from|as))\b</string>
<key>name</key>
<string>keyword.control.import.kv</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.class.kv</string>
</dict>
</dict>
<key>match</key>
<string>\b(<.*>)\b</string>
</dict>
<dict>
<key>include</key>
<string>#builtin_types_widgets_ui</string>
</dict>
<dict>
<key>include</key>
<string>#builtin_types_widgets_layouts</string>
</dict>
<dict>
<key>include</key>
<string>#builtin_attributes</string>
</dict>
<dict>
<key>include</key>
<string>#builtin_properties</string>
</dict>
<dict>
<key>include</key>
<string>source.python</string>
</dict>
</array>
<key>repository</key>
<dict>
<key>builtin_attributes</key>
<dict>
<key>match</key>
<string>(?<!\.)\b(on_active|on_color|on_focus|on_node_collapse|on_node_expand|on_pause|on_press|on_release|on_resume|on_size|on_text|on_texture_size|on_touch_down|on_touch_up|on_value|on_collapse|on_collapse_alpha|on_pos|on_background_image|on_background_color|on_orientation|on_arrow_image|on_arrow_pos|on_touch_move|on_tex|on_play|on_index|on_slides|on_offset|on_checkbox_active|on_group|on_lexer|on_foreground_color|on_origin|on_radius|on_hsv|on_hsv|on_select|on_entry_added|on_entries_cleared|on_subentry_to_entry|on_remove_subentry|on_submit|on_children|on_anim_delay|on_texture|on_nocache|on_ref_press|on_scroll_complete|on_anim_alpha|on_open|on_dismiss|on_content|on_container|on_source|on_transform|on_pre_enter|on_enter|on_pre_leave|on_leave|on_complete|on_progress|on_current|on_viewport|on_effect_x|on_effect_y|on_effect_cls|on_panel|on_config|on_menu|on_close|on_config_change|on_is_open|on_sizable_from|on_do_default_tab|on_default_tab_text|on_tab_width|on_tab_height|on_tab_pos|on_parent|on_text_validate|on_double_tap|on_triple_tap|on_quad_touch|on_readonly|on_cursor|on_hint_text|on_padding_x|on_padding_y|on_load_func|on_root_options|on_position_change|on_duration_change|on_state|on_volume|on_video|on_alpha|on_annotation|on_position|on_fullscreen|on_key_down|on_key_up|on_opacity)\b</string>
<key>name</key>
<string>entity.name.function.kv</string>
</dict>
<key>builtin_properties</key>
<dict>
<key>match</key>
<string>(?<!\.)\b(Color|Line|Rectangle|Ellipse|active|anchor_x|anchor_y|app|background_color|background_down|background_normal|bar_color|bold|border|canvas|canvas\.after|canvas\.before|cap|center|center_x|center_y|col_default_width|col_force_default|color|cols|do_rotation|do_scale|do_scroll|do_translation|font_name|font_size|foreground_color|group|halign|height|id|italic|left|max|min|multiline|markup|opacity|orientation|padding|points|pos|pos_hint|readonly|rgb|rgba|row_default_height|row_force_default|rows|scroll_x|scroll_y|separator_color|separator_height|size|size_hint|size_hint_x|size_hint_y|source|spacing|state|text|text_size|texture|top|valign|value|width)\b</string>
<key>name</key>
<string>keyword.other.kv</string>
</dict>
<key>builtin_types_widgets_layouts</key>
<dict>
<key>match</key>
<string>(?<!\.)\b(AnchorLayout|BoxLayout|FloatLayout|GridLayout|PageLayout|RelativeLayout|ScatterLayout|StackLayout)\b</string>
<key>name</key>
<string>support.type.kv</string>
</dict>
<key>builtin_types_widgets_ui</key>
<dict>
<key>match</key>
<string>(?<!\.)\b(Accordion|BorderImage|Bubble|BubbleButton|Button|Camera|Carousel|CheckBox|CodeInput|ColorPicker|Dropdown|FileChooser|Image|Label|ListView|Modalview|Popup|ProgressBar|Rst|RstDocument|Scatter|Slider|TextInput|Togglebutton|ScrollView|SelectableView|Slider|Spinner|Splitter|StencilView|Switch|TabbedPanel|TextInput|ToggleButton|TreeView|Video|VideoPlayer|VKeyboard|Widget)\b</string>
<key>name</key>
<string>support.type.kv</string>
</dict>
</dict>
<key>scopeName</key>
<string>source.kv</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string># </string>
</dict>
</array>
</dict>
<key>uuid</key>
<string>d7b6c18f-afd3-4030-8489-b5a3f3b6d4a4</string>
</dict>
</plist>