Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
151 lines
2.1 KiB
Scheme
151 lines
2.1 KiB
Scheme
; Tags
|
|
|
|
; TODO apply to every symbol in list? I think it should probably only be applied to the first child of the list
|
|
(list
|
|
(symbol) @tag)
|
|
|
|
; Includes
|
|
|
|
(list .
|
|
((symbol) @include
|
|
(#eq? @include "include")))
|
|
|
|
; Keywords
|
|
|
|
; I think there's a bug in tree-sitter the anchor doesn't seem to be working, see
|
|
; https://github.com/tree-sitter/tree-sitter/pull/2107
|
|
(list .
|
|
((symbol) @keyword
|
|
(#any-of? @keyword "defwindow" "defwidget" "defvar" "defpoll" "deflisten" "geometry" "children" "struts")))
|
|
|
|
; Loop
|
|
|
|
(loop_widget . "for" @repeat . (symbol) @variable . "in" @keyword.operator)
|
|
|
|
(loop_widget . "for" @repeat . (symbol) @variable . "in" @keyword.operator . (symbol) @variable)
|
|
|
|
; Builtin widgets
|
|
|
|
(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")))
|
|
|
|
; Variables
|
|
|
|
(ident) @variable
|
|
|
|
(array
|
|
(symbol) @variable)
|
|
|
|
; Properties & Fields
|
|
|
|
(keyword) @property
|
|
|
|
(json_access
|
|
(_)
|
|
"["
|
|
(simplexpr
|
|
(ident) @property))
|
|
|
|
(json_safe_access
|
|
(_)
|
|
"?."
|
|
"["
|
|
(simplexpr
|
|
(ident) @property))
|
|
|
|
(json_dot_access
|
|
(index) @property)
|
|
|
|
(json_safe_dot_access
|
|
(index) @property)
|
|
|
|
(json_object
|
|
(simplexpr
|
|
(ident) @field))
|
|
|
|
; Functions
|
|
|
|
(function_call
|
|
name: (ident) @function.call)
|
|
|
|
; Operators
|
|
|
|
[
|
|
"+"
|
|
"-"
|
|
"*"
|
|
"/"
|
|
"%"
|
|
"||"
|
|
"&&"
|
|
"=="
|
|
"!="
|
|
"=~"
|
|
">"
|
|
"<"
|
|
">="
|
|
"<="
|
|
"!"
|
|
"?."
|
|
"?:"
|
|
] @operator
|
|
|
|
; Punctuation
|
|
|
|
[":" "." ","] @punctuation.delimiter
|
|
["{" "}" "[" "]" "(" ")"] @punctuation.bracket
|
|
|
|
; Ternary expression
|
|
|
|
(ternary_expression
|
|
["?" ":"] @conditional.ternary)
|
|
|
|
; Literals
|
|
|
|
(number) @number
|
|
|
|
(float) @float
|
|
|
|
(boolean) @boolean
|
|
|
|
; Strings
|
|
|
|
[ (string_fragment) "\"" "'" "`" ] @string
|
|
|
|
(string_interpolation
|
|
"${" @punctuation.special
|
|
"}" @punctuation.special)
|
|
|
|
(escape_sequence) @string.escape
|
|
|
|
; Comments
|
|
|
|
(comment) @comment @spell
|
|
|
|
; Errors
|
|
|
|
(ERROR) @error
|