mirror of
https://github.com/XAMPPRocky/tokei.git
synced 2026-10-12 02:10:16 +00:00
added support for kvlang - https://kivy.org/doc/stable/guide/lang.html (#707)
Co-authored-by: rodzilla <[email protected]>
This commit is contained in:
@@ -697,6 +697,13 @@
|
||||
"quotes": [["\\\"", "\\\""], ["\\\"\\\"\\\"", "\\\"\\\"\\\""]],
|
||||
"extensions": ["kt", "kts"]
|
||||
},
|
||||
"KvLanguage": {
|
||||
"name":"KV Language",
|
||||
"line_comment": ["# "],
|
||||
"doc_quotes": [["\\\"\\\"\\\"", "\\\"\\\"\\\""], ["'''", "'''"]],
|
||||
"quotes": [["\\\"", "\\\""], ["'", "'"]],
|
||||
"extensions": ["kv"]
|
||||
},
|
||||
"Lean": {
|
||||
"line_comment": ["--"],
|
||||
"multi_line_comments": [["/-", "-/"]],
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# 22 lines 17 code 3 comments 2 blanks
|
||||
|
||||
|
||||
#:kivy 2.0.0
|
||||
#:import C kivy.utils.get_color_from_hex
|
||||
#:import KeypadButton keypadbutton
|
||||
#:include keypadbutton.kv
|
||||
#:set name value
|
||||
<DynamicWidgetClass>:
|
||||
color: C('#27272A')
|
||||
# general comment
|
||||
<Keypad@GridLayout>:
|
||||
width: self.minimum_width
|
||||
height: self.minimum_height
|
||||
size_hint: None, None
|
||||
cols: 3
|
||||
spacing: 6
|
||||
KeypadButton:
|
||||
text: '1'
|
||||
disabled: root.disabled
|
||||
on_press: root.dispatch('on_key_pressed', self.key_val)
|
||||
# a final comment
|
||||
Reference in New Issue
Block a user