feat(format-scripts): linewrap predicates

"format-ignore".kick()
This commit is contained in:
再生花 2024-02-23 17:42:01 +09:00 committed by GitHub
parent a29058fe8b
commit 31641d72a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 1622 additions and 1537 deletions

View file

@ -13,7 +13,8 @@
(list
.
(symbol) @keyword
(#any-of? @keyword "defwindow" "defwidget" "defvar" "defpoll" "deflisten" "geometry" "children" "struts"))
(#any-of? @keyword
"defwindow" "defwidget" "defvar" "defpoll" "deflisten" "geometry" "children" "struts"))
; Loop
(loop_widget
@ -38,7 +39,10 @@
(list
.
(symbol) @tag.builtin
(#any-of? @tag.builtin "box" "button" "calendar" "centerbox" "checkbox" "circular-progress" "color-button" "color-chooser" "combo-box-text" "eventbox" "expander" "graph" "image" "input" "label" "literal" "overlay" "progress" "revealer" "scale" "scroll" "transform"))
(#any-of? @tag.builtin
"box" "button" "calendar" "centerbox" "checkbox" "circular-progress" "color-button"
"color-chooser" "combo-box-text" "eventbox" "expander" "graph" "image" "input" "label" "literal"
"overlay" "progress" "revealer" "scale" "scroll" "transform"))
; Variables
(ident) @variable
@ -47,7 +51,9 @@
(symbol) @variable)
((ident) @variable.builtin
(#any-of? @variable.builtin "EWW_TEMPS" "EWW_RAM" "EWW_DISK" "EWW_BATTERY" "EWW_CPU" "EWW_NET" "EWW_TIME" "EWW_CONFIG_DIR" "EWW_CMD" "EWW_EXECUTABLE"))
(#any-of? @variable.builtin
"EWW_TEMPS" "EWW_RAM" "EWW_DISK" "EWW_BATTERY" "EWW_CPU" "EWW_NET" "EWW_TIME" "EWW_CONFIG_DIR"
"EWW_CMD" "EWW_EXECUTABLE"))
; Properties
(keyword) @property