forked from Mirrors/helix
Merge branch 'master' of https://github.com/helix-editor/helix into tree_explore
commit
8ef95ee56a
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,18 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; ((section) @injection.content
|
||||
; (#set! injection.language "comment"))
|
||||
|
||||
((section
|
||||
(attribute
|
||||
(identifier) @_type
|
||||
(string) @_is_shader)
|
||||
(property
|
||||
(path) @_is_code
|
||||
(string) @injection.content))
|
||||
(#match? @_type "type")
|
||||
(#match? @_is_shader "Shader")
|
||||
(#eq? @_is_code "code")
|
||||
(#set! injection.language "glsl")
|
||||
)
|
||||
|
@ -0,0 +1,136 @@
|
||||
[
|
||||
(keyword_from)
|
||||
(keyword_filter)
|
||||
(keyword_derive)
|
||||
(keyword_group)
|
||||
(keyword_aggregate)
|
||||
(keyword_sort)
|
||||
(keyword_take)
|
||||
(keyword_window)
|
||||
(keyword_join)
|
||||
(keyword_select)
|
||||
(keyword_switch)
|
||||
(keyword_append)
|
||||
(keyword_remove)
|
||||
(keyword_intersect)
|
||||
(keyword_rolling)
|
||||
(keyword_rows)
|
||||
(keyword_expanding)
|
||||
(keyword_let)
|
||||
(keyword_prql)
|
||||
(keyword_from_text)
|
||||
] @keyword
|
||||
|
||||
(literal) @string
|
||||
|
||||
(assignment
|
||||
alias: (field) @variable.other.member)
|
||||
|
||||
alias: (identifier) @variable.other.member
|
||||
|
||||
(f_string) @string.special
|
||||
(s_string) @string.special
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(keyword_func) @keyword.function
|
||||
|
||||
(function_call
|
||||
(identifier) @function)
|
||||
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"="
|
||||
"=="
|
||||
"<"
|
||||
"<="
|
||||
"!="
|
||||
">="
|
||||
">"
|
||||
"->"
|
||||
(bang)
|
||||
] @operator
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
","
|
||||
"."
|
||||
(pipe)
|
||||
] @punctuation.delimiter
|
||||
|
||||
(literal
|
||||
(integer) @constant.numeric.integer)
|
||||
|
||||
(integer) @constant.numeric.integer
|
||||
|
||||
(literal
|
||||
(decimal_number) @constant.numeric.float)
|
||||
|
||||
(decimal_number) @constant.numeric.float
|
||||
|
||||
[
|
||||
(keyword_min)
|
||||
(keyword_max)
|
||||
(keyword_count)
|
||||
(keyword_count_distinct)
|
||||
(keyword_average)
|
||||
(keyword_avg)
|
||||
(keyword_sum)
|
||||
(keyword_stddev)
|
||||
(keyword_count)
|
||||
] @function
|
||||
|
||||
[
|
||||
(keyword_side)
|
||||
(keyword_version)
|
||||
(keyword_target)
|
||||
(keyword_null)
|
||||
(keyword_format)
|
||||
] @attribute
|
||||
|
||||
(target) @function.builtin
|
||||
|
||||
[
|
||||
(date)
|
||||
(time)
|
||||
(timestamp)
|
||||
] @string.special
|
||||
|
||||
[
|
||||
(keyword_left)
|
||||
(keyword_inner)
|
||||
(keyword_right)
|
||||
(keyword_full)
|
||||
(keyword_csv)
|
||||
(keyword_json)
|
||||
] @function.method
|
||||
|
||||
[
|
||||
(keyword_true)
|
||||
(keyword_false)
|
||||
] @constant.builtin.boolean
|
||||
|
||||
[
|
||||
(keyword_and)
|
||||
(keyword_or)
|
||||
] @keyword.operator
|
||||
|
||||
(function_definition
|
||||
(keyword_func)
|
||||
name: (identifier) @function)
|
||||
|
||||
(parameter
|
||||
(identifier) @variable.parameter)
|
||||
|
||||
(variable
|
||||
(keyword_let)
|
||||
name: (identifier) @constant)
|
@ -0,0 +1,8 @@
|
||||
((s_string) @injection.content
|
||||
(#set! injection.language "sql"))
|
||||
|
||||
(from_text
|
||||
(keyword_from_text)
|
||||
(keyword_json)
|
||||
(literal) @injection.content
|
||||
(#set! injection.language "json"))
|
@ -0,0 +1,38 @@
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
(title)
|
||||
] @markup.heading.1
|
||||
|
||||
[
|
||||
"adornment"
|
||||
] @markup.heading.marker
|
||||
|
||||
[
|
||||
(target)
|
||||
(reference)
|
||||
] @markup.link.url
|
||||
|
||||
[
|
||||
"bullet"
|
||||
] @markup.list.unnumbered
|
||||
|
||||
(strong) @markup.bold
|
||||
(emphasis) @markup.italic
|
||||
(literal) @markup.raw.inline
|
||||
|
||||
(list_item
|
||||
(term) @markup.bold
|
||||
(classifier)? @markup.italic)
|
||||
|
||||
(directive
|
||||
[".." (type) "::"] @function
|
||||
)
|
||||
|
||||
(field
|
||||
[":" (field_name) ":"] @variable.other.member
|
||||
)
|
||||
|
||||
(interpreted_text) @markup.raw.inline
|
||||
|
||||
(interpreted_text (role)) @keyword
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "1.63.0"
|
||||
channel = "1.65.0"
|
||||
components = ["rustfmt", "rust-src"]
|
||||
|
Loading…
Reference in New Issue