Refresh generated neovim config
This commit is contained in:
@ -152,6 +152,9 @@
|
||||
field: (identifier) @variable.member)
|
||||
|
||||
; Variables
|
||||
(variable_declarator
|
||||
(identifier) @property)
|
||||
|
||||
(field_declaration
|
||||
(modifiers
|
||||
(modifier
|
||||
@ -167,9 +170,6 @@
|
||||
(variable_declarator
|
||||
name: (identifier) @constant))
|
||||
|
||||
(variable_declarator
|
||||
(identifier) @property)
|
||||
|
||||
((identifier) @constant
|
||||
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) ; SCREAM SNAKE CASE
|
||||
|
||||
|
||||
@ -24,14 +24,14 @@
|
||||
|
||||
((for_statement
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body compound_statement))
|
||||
(#not-kind-eq? @_body "compound_statement"))
|
||||
|
||||
(while_statement
|
||||
condition: (_) @indent.begin)
|
||||
|
||||
((while_statement
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body compound_statement))
|
||||
(#not-kind-eq? @_body "compound_statement"))
|
||||
|
||||
((if_statement)
|
||||
.
|
||||
@ -45,7 +45,7 @@
|
||||
(if_statement
|
||||
consequence: (_
|
||||
";" @indent.end) @_consequence
|
||||
(#not-has-type? @_consequence compound_statement)
|
||||
(#not-kind-eq? @_consequence "compound_statement")
|
||||
alternative: (else_clause
|
||||
"else" @indent.branch
|
||||
[
|
||||
|
||||
@ -31,8 +31,6 @@
|
||||
"$"
|
||||
"{"
|
||||
"}"
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
|
||||
@ -105,24 +105,19 @@
|
||||
(#lua-match? @variable.builtin "^[*].+[*]$"))
|
||||
|
||||
; quote
|
||||
"'" @string.escape
|
||||
|
||||
(format_specifier) @string.escape
|
||||
|
||||
(quoting_lit) @string.escape
|
||||
(quoting_lit
|
||||
"'" @string.escape)
|
||||
|
||||
; syntax quote
|
||||
"`" @string.escape
|
||||
(syn_quoting_lit
|
||||
"`" @string.escape)
|
||||
|
||||
"," @string.escape
|
||||
(unquoting_lit
|
||||
"," @string.escape)
|
||||
|
||||
",@" @string.escape
|
||||
|
||||
(syn_quoting_lit) @string.escape
|
||||
|
||||
(unquoting_lit) @none
|
||||
|
||||
(unquote_splicing_lit) @none
|
||||
(unquote_splicing_lit
|
||||
",@" @string.escape)
|
||||
|
||||
[
|
||||
"("
|
||||
|
||||
@ -1,5 +1,14 @@
|
||||
(metadata) @comment
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
"%" @punctuation.special
|
||||
|
||||
(ingredient
|
||||
"@" @punctuation.delimiter
|
||||
(name)? @string.special.symbol
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
"let" @keyword
|
||||
|
||||
"in" @keyword
|
||||
[
|
||||
"let"
|
||||
"in"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"{"
|
||||
@ -11,8 +12,15 @@
|
||||
|
||||
"." @punctuation.delimiter
|
||||
|
||||
[
|
||||
".."
|
||||
"="
|
||||
] @operator
|
||||
|
||||
(input) @constant
|
||||
|
||||
(null) @constant.builtin
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(string) @string
|
||||
@ -21,6 +29,9 @@
|
||||
|
||||
(float) @number.float
|
||||
|
||||
(float
|
||||
"." @number.float)
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(null) @keyword
|
||||
(path_seg) @property
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
(code_block
|
||||
(language) @injection.language
|
||||
(code) @injection.content)
|
||||
|
||||
@ -29,15 +29,15 @@
|
||||
|
||||
(arrow_function
|
||||
body: (_) @_body
|
||||
(#not-has-type? @_body statement_block)) @indent.begin
|
||||
(#not-kind-eq? @_body "statement_block")) @indent.begin
|
||||
|
||||
(assignment_expression
|
||||
right: (_) @_right
|
||||
(#not-has-type? @_right arrow_function function)) @indent.begin
|
||||
(#not-kind-eq? @_right "arrow_function" "function")) @indent.begin
|
||||
|
||||
(variable_declarator
|
||||
value: (_) @_value
|
||||
(#not-has-type? @_value arrow_function call_expression function)) @indent.begin
|
||||
(#not-kind-eq? @_value "arrow_function" "call_expression" "function")) @indent.begin
|
||||
|
||||
(arguments
|
||||
")" @indent.end)
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; Pass code blocks to Cpp highlighter
|
||||
(code
|
||||
(code_body) @injection.content
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((operation
|
||||
(command) @_command
|
||||
(message) @injection.content)
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
(change) @keyword
|
||||
|
||||
(filepath) @string.special.url
|
||||
(filepath) @string.special.path
|
||||
|
||||
(arrow) @punctuation.delimiter
|
||||
|
||||
|
||||
@ -147,9 +147,6 @@
|
||||
(type_var)
|
||||
] @type
|
||||
|
||||
((type_identifier) @type.builtin
|
||||
(#any-of? @type.builtin "Int" "Float" "String" "List"))
|
||||
|
||||
; Type Qualifiers
|
||||
[
|
||||
"const"
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
|
||||
((for_loop
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body closure))
|
||||
(#not-kind-eq? @_body "closure"))
|
||||
|
||||
; TODO: while, try
|
||||
(list
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
(aura) @constant.builtin
|
||||
|
||||
(Gap) @comment
|
||||
(lineComment) @comment
|
||||
|
||||
(boolean) @constant.builtin
|
||||
|
||||
|
||||
@ -1,13 +1,12 @@
|
||||
[
|
||||
((element
|
||||
(start_tag
|
||||
(tag_name) @_not_void_element))
|
||||
(#not-any-of? @_not_void_element
|
||||
"area" "base" "basefont" "bgsound" "br" "col" "command" "embed" "frame" "hr" "image" "img"
|
||||
"input" "isindex" "keygen" "link" "menuitem" "meta" "nextid" "param" "source" "track" "wbr"))
|
||||
(element
|
||||
(self_closing_tag))
|
||||
] @indent.begin
|
||||
((element
|
||||
(start_tag
|
||||
(tag_name) @_not_void_element))
|
||||
(#not-any-of? @_not_void_element
|
||||
"area" "base" "basefont" "bgsound" "br" "col" "command" "embed" "frame" "hr" "image" "img"
|
||||
"input" "isindex" "keygen" "link" "menuitem" "meta" "nextid" "param" "source" "track" "wbr")) @indent.begin
|
||||
|
||||
(element
|
||||
(self_closing_tag)) @indent.begin
|
||||
|
||||
((start_tag
|
||||
(tag_name) @_void_element)
|
||||
|
||||
@ -22,6 +22,15 @@
|
||||
|
||||
(variable_name) @variable
|
||||
|
||||
(unpaired_statement
|
||||
(tag_name)
|
||||
(variable
|
||||
(variable_name) @variable.parameter)
|
||||
.
|
||||
"="
|
||||
.
|
||||
(_))
|
||||
|
||||
(filter_name) @function.method
|
||||
|
||||
(filter_argument) @variable.parameter
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
([
|
||||
(paired_comment)
|
||||
(unpaired_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((content) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; injections.scm
|
||||
((json_value) @injection.content
|
||||
(#set! injection.language "json"))
|
||||
|
||||
@ -36,6 +36,8 @@
|
||||
(legacy_hex)
|
||||
(angle)
|
||||
(hex)
|
||||
(display)
|
||||
(position)
|
||||
] @number
|
||||
|
||||
"deg" @type
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
(exec
|
||||
(string) @injection.content
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
((foreach_statement
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body compound_statement))
|
||||
(#not-kind-eq? @_body "compound_statement"))
|
||||
|
||||
((foreach_instance_statement
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body compound_statement))
|
||||
(#not-kind-eq? @_body "compound_statement"))
|
||||
|
||||
@ -75,13 +75,14 @@
|
||||
"%=" "*=" "++" "+=" "--" "-=" "->" "->>" "-?>" "-?>>" "/=" "and" "as->" "as-macro" "as?->"
|
||||
"assert" "case" "catseq" "chr" "comment" "compif" "comptime" "compwhen" "cond" "coro" "def-"
|
||||
"default" "defdyn" "defer" "defmacro" "defmacro-" "defn" "defn-" "delay" "doc" "each" "eachk"
|
||||
"eachp" "eachy"
|
||||
; XXX: obsolete
|
||||
"edefer" "ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread" "ev/with-deadline"
|
||||
"ffi/defbind" "fiber-fn" "for" "forever" "forv" "generate" "if-let" "if-not" "if-with" "import"
|
||||
"juxt" "label" "let" "loop" "match" "or" "prompt" "protect" "repeat" "seq" "short-fn" "tabseq"
|
||||
"toggle" "tracev" "try" "unless" "use" "var-" "varfn" "when" "when-let" "when-with" "with"
|
||||
"with-dyns" "with-syms" "with-vars"))
|
||||
"eachp" "edefer" "ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread" "ev/with-deadline"
|
||||
"ev/with-lock" "ev/with-rlock" "ev/with-wlock" "ffi/defbind" "ffi/defbind-alias" "fiber-fn"
|
||||
"for" "forever" "forv" "generate" "if-let" "if-not" "if-with" "import" "juxt" "label" "let"
|
||||
"loop" "match" "or" "prompt" "protect" "repeat" "seq" "short-fn" "tabseq" "toggle" "tracev"
|
||||
"try" "unless" "use" "var-" "varfn" "when" "when-let" "when-with" "with" "with-dyns" "with-env"
|
||||
"with-syms" "with-vars"
|
||||
; obsolete builtin macros
|
||||
"eachy"))
|
||||
|
||||
; All builtin functions
|
||||
;
|
||||
@ -101,74 +102,77 @@
|
||||
"abstract?" "accumulate" "accumulate2" "all" "all-bindings" "all-dynamics" "any?" "apply"
|
||||
"array" "array/clear" "array/concat" "array/ensure" "array/fill" "array/insert" "array/new"
|
||||
"array/new-filled" "array/peek" "array/pop" "array/push" "array/remove" "array/slice"
|
||||
"array/trim" "array?" "asm" "bad-compile" "bad-parse" "band" "blshift" "bnot" "boolean?" "bor"
|
||||
"brshift" "brushift" "buffer" "buffer/bit" "buffer/bit-clear" "buffer/bit-set"
|
||||
"buffer/bit-toggle" "buffer/blit" "buffer/clear" "buffer/fill" "buffer/format" "buffer/new"
|
||||
"buffer/new-filled" "buffer/popn" "buffer/push" "buffer/push-at" "buffer/push-byte"
|
||||
"buffer/push-string" "buffer/push-word" "buffer/slice" "buffer/trim" "buffer?" "bxor" "bytes?"
|
||||
"cancel" "cfunction?" "cli-main" "cmp" "comp" "compare" "compare<" "compare<=" "compare="
|
||||
"compare>" "compare>=" "compile" "complement" "count" "curenv" "debug" "debug/arg-stack"
|
||||
"debug/break" "debug/fbreak" "debug/lineage" "debug/stack" "debug/stacktrace" "debug/step"
|
||||
"debug/unbreak" "debug/unfbreak" "debugger" "debugger-on-status" "dec" "deep-not=" "deep="
|
||||
"defglobal" "describe" "dictionary?" "disasm" "distinct" "div" "doc*" "doc-format" "doc-of"
|
||||
"dofile" "drop" "drop-until" "drop-while" "dyn" "eflush" "empty?" "env-lookup" "eprin" "eprinf"
|
||||
"eprint" "eprintf" "error" "errorf" "ev/acquire-lock" "ev/acquire-rlock" "ev/acquire-wlock"
|
||||
"ev/all-tasks" "ev/call" "ev/cancel" "ev/capacity" "ev/chan" "ev/chan-close" "ev/chunk"
|
||||
"ev/close" "ev/count" "ev/deadline" "ev/full" "ev/give" "ev/give-supervisor" "ev/go" "ev/lock"
|
||||
"ev/read" "ev/release-lock" "ev/release-rlock" "ev/release-wlock" "ev/rselect" "ev/rwlock"
|
||||
"ev/select" "ev/sleep" "ev/take" "ev/thread" "ev/thread-chan" "ev/write" "eval" "eval-string"
|
||||
"even?" "every?" "extreme" "false?" "ffi/align" "ffi/call" "ffi/calling-convetions" "ffi/close"
|
||||
"ffi/context" "ffi/free" "ffi/jitfn" "ffi/lookup" "ffi/malloc" "ffi/native" "ffi/pointer-buffer"
|
||||
"ffi/pointer-cfunction" "ffi/read" "ffi/signature" "ffi/size" "ffi/struct" "ffi/trampoline"
|
||||
"ffi/write" "fiber/can-resume?" "fiber/current" "fiber/getenv" "fiber/last-value"
|
||||
"fiber/maxstack" "fiber/new" "fiber/root" "fiber/setenv" "fiber/setmaxstack" "fiber/status"
|
||||
"fiber?" "file/close" "file/flush" "file/lines" "file/open" "file/read" "file/seek" "file/tell"
|
||||
"file/temp" "file/write" "filter" "find" "find-index" "first" "flatten" "flatten-into" "flush"
|
||||
"flycheck" "freeze" "frequencies" "from-pairs" "function?" "gccollect" "gcinterval"
|
||||
"gcsetinterval" "gensym" "get" "get-in" "getline" "getproto" "group-by" "has-key?" "has-value?"
|
||||
"hash" "idempotent?" "identity" "import*" "in" "inc" "index-of" "indexed?" "int/s64"
|
||||
"int/to-bytes" "int/to-number" "int/u64" "int?" "interleave" "interpose" "invert" "juxt*" "keep"
|
||||
"keep-syntax" "keep-syntax!" "keys" "keyword" "keyword/slice" "keyword?" "kvs" "last" "length"
|
||||
"load-image" "macex" "macex1" "maclintf" "make-env" "make-image" "map" "mapcat" "marshal"
|
||||
"math/abs" "math/acos" "math/acosh" "math/asin" "math/asinh" "math/atan" "math/atan2"
|
||||
"math/atanh" "math/cbrt" "math/ceil" "math/cos" "math/cosh" "math/erf" "math/erfc" "math/exp"
|
||||
"math/exp2" "math/expm1" "math/floor" "math/gamma" "math/gcd" "math/hypot" "math/lcm" "math/log"
|
||||
"math/log-gamma" "math/log10" "math/log1p" "math/log2" "math/next" "math/pow" "math/random"
|
||||
"math/rng" "math/rng-buffer" "math/rng-int" "math/rng-uniform" "math/round" "math/seedrandom"
|
||||
"math/sin" "math/sinh" "math/sqrt" "math/tan" "math/tanh" "math/trunc" "max" "max-of" "mean"
|
||||
"memcmp" "merge" "merge-into" "merge-module" "min" "min-of" "mod" "module/add-paths"
|
||||
"module/expand-path" "module/find" "module/value" "nan?" "nat?" "native" "neg?" "net/accept"
|
||||
"net/accept-loop" "net/address" "net/address-unpack" "net/chunk" "net/close" "net/connect"
|
||||
"net/flush" "net/listen" "net/localname" "net/peername" "net/read" "net/recv-from" "net/send-to"
|
||||
"net/server" "net/setsockopt" "net/shutdown" "net/write" "next" "nil?" "not" "not=" "number?"
|
||||
"odd?" "one?" "os/arch" "os/cd" "os/chmod" "os/clock" "os/compiler" "os/cpu-count"
|
||||
"os/cryptorand" "os/cwd" "os/date" "os/dir" "os/environ" "os/execute" "os/exit" "os/getenv"
|
||||
"os/link" "os/lstat" "os/mkdir" "os/mktime" "os/open" "os/perm-int" "os/perm-string" "os/pipe"
|
||||
"os/proc-close" "os/proc-kill" "os/proc-wait" "os/readlink" "os/realpath" "os/rename" "os/rm"
|
||||
"os/rmdir" "os/setenv" "os/shell" "os/sleep" "os/spawn" "os/stat" "os/symlink" "os/time"
|
||||
"os/touch" "os/umask" "os/which" "pairs" "parse" "parse-all" "parser/byte" "parser/clone"
|
||||
"parser/consume" "parser/eof" "parser/error" "parser/flush" "parser/has-more" "parser/insert"
|
||||
"parser/new" "parser/produce" "parser/state" "parser/status" "parser/where" "partial"
|
||||
"partition" "partition-by" "peg/compile" "peg/find" "peg/find-all" "peg/match" "peg/replace"
|
||||
"peg/replace-all" "pos?" "postwalk" "pp" "prewalk" "prin" "prinf" "print" "printf" "product"
|
||||
"propagate" "put" "put-in" "quit" "range" "reduce" "reduce2" "repl" "require" "resume" "return"
|
||||
"reverse" "reverse!" "run-context" "sandbox" "scan-number" "setdyn" "signal" "slice" "slurp"
|
||||
"some" "sort" "sort-by" "sorted" "sorted-by" "spit" "string" "string/ascii-lower"
|
||||
"string/ascii-upper" "string/bytes" "string/check-set" "string/find" "string/find-all"
|
||||
"string/format" "string/from-bytes" "string/has-prefix?" "string/has-suffix?" "string/join"
|
||||
"string/repeat" "string/replace" "string/replace-all" "string/reverse" "string/slice"
|
||||
"string/split" "string/trim" "string/triml" "string/trimr" "string?" "struct" "struct/getproto"
|
||||
"struct/proto-flatten" "struct/to-table" "struct/with-proto" "struct?" "sum" "symbol"
|
||||
"symbol/slice" "symbol?" "table" "table/clear" "table/clone" "table/getproto" "table/new"
|
||||
"table/proto-flatten" "table/rawget" "table/setproto" "table/to-struct" "table?" "take"
|
||||
"take-until" "take-while"
|
||||
"array/trim" "array/weak" "array?" "asm" "bad-compile" "bad-parse" "band" "blshift" "bnot"
|
||||
"boolean?" "bor" "brshift" "brushift" "buffer" "buffer/bit" "buffer/bit-clear" "buffer/bit-set"
|
||||
"buffer/bit-toggle" "buffer/blit" "buffer/clear" "buffer/fill" "buffer/format"
|
||||
"buffer/format-at" "buffer/from-bytes" "buffer/new" "buffer/new-filled" "buffer/popn"
|
||||
"buffer/push" "buffer/push-at" "buffer/push-byte" "buffer/push-float32" "buffer/push-float64"
|
||||
"buffer/push-string" "buffer/push-uint16" "buffer/push-uint32" "buffer/push-uint64"
|
||||
"buffer/push-word" "buffer/slice" "buffer/trim" "buffer?" "bundle/add" "bundle/add-directory"
|
||||
"bundle/add-file" "bundle/install" "bundle/installed?" "bundle/list" "bundle/manifest"
|
||||
"bundle/prune" "bundle/reinstall" "bundle/topolist" "bundle/uninstall" "bundle/update-all"
|
||||
"bxor" "bytes?" "cancel" "cfunction?" "cli-main" "cmp" "comp" "compare" "compare<" "compare<="
|
||||
"compare=" "compare>" "compare>=" "compile" "complement" "count" "curenv" "debug"
|
||||
"debug/arg-stack" "debug/break" "debug/fbreak" "debug/lineage" "debug/stack" "debug/stacktrace"
|
||||
"debug/step" "debug/unbreak" "debug/unfbreak" "debugger" "debugger-on-status" "dec" "deep-not="
|
||||
"deep=" "defglobal" "describe" "dictionary?" "disasm" "distinct" "div" "doc*" "doc-format"
|
||||
"doc-of" "dofile" "drop" "drop-until" "drop-while" "dyn" "eflush" "empty?" "env-lookup" "eprin"
|
||||
"eprinf" "eprint" "eprintf" "error" "errorf" "ev/acquire-lock" "ev/acquire-rlock"
|
||||
"ev/acquire-wlock" "ev/all-tasks" "ev/call" "ev/cancel" "ev/capacity" "ev/chan" "ev/chan-close"
|
||||
"ev/chunk" "ev/close" "ev/count" "ev/deadline" "ev/full" "ev/give" "ev/give-supervisor" "ev/go"
|
||||
"ev/lock" "ev/read" "ev/release-lock" "ev/release-rlock" "ev/release-wlock" "ev/rselect"
|
||||
"ev/rwlock" "ev/select" "ev/sleep" "ev/take" "ev/thread" "ev/thread-chan" "ev/write" "eval"
|
||||
"eval-string" "even?" "every?" "extreme" "false?" "ffi/align" "ffi/call"
|
||||
"ffi/calling-conventions" "ffi/close" "ffi/context" "ffi/free" "ffi/jitfn" "ffi/lookup"
|
||||
"ffi/malloc" "ffi/native" "ffi/pointer-buffer" "ffi/pointer-cfunction" "ffi/read"
|
||||
"ffi/signature" "ffi/size" "ffi/struct" "ffi/trampoline" "ffi/write" "fiber/can-resume?"
|
||||
"fiber/current" "fiber/getenv" "fiber/last-value" "fiber/maxstack" "fiber/new" "fiber/root"
|
||||
"fiber/setenv" "fiber/setmaxstack" "fiber/status" "fiber?" "file/close" "file/flush"
|
||||
"file/lines" "file/open" "file/read" "file/seek" "file/tell" "file/temp" "file/write" "filter"
|
||||
"find" "find-index" "first" "flatten" "flatten-into" "flush" "flycheck" "freeze" "frequencies"
|
||||
"from-pairs" "function?" "gccollect" "gcinterval" "gcsetinterval" "gensym" "get" "get-in"
|
||||
"getline" "getproto" "group-by" "has-key?" "has-value?" "hash" "idempotent?" "identity"
|
||||
"import*" "in" "inc" "index-of" "indexed?" "int/s64" "int/to-bytes" "int/to-number" "int/u64"
|
||||
"int?" "interleave" "interpose" "invert" "juxt*" "keep" "keep-syntax" "keep-syntax!" "keys"
|
||||
"keyword" "keyword/slice" "keyword?" "kvs" "last" "length" "lengthable?" "load-image" "macex"
|
||||
"macex1" "maclintf" "make-env" "make-image" "map" "mapcat" "marshal" "math/abs" "math/acos"
|
||||
"math/acosh" "math/asin" "math/asinh" "math/atan" "math/atan2" "math/atanh" "math/cbrt"
|
||||
"math/ceil" "math/cos" "math/cosh" "math/erf" "math/erfc" "math/exp" "math/exp2" "math/expm1"
|
||||
"math/floor" "math/frexp" "math/gamma" "math/gcd" "math/hypot" "math/lcm" "math/ldexp"
|
||||
"math/log" "math/log-gamma" "math/log10" "math/log1p" "math/log2" "math/next" "math/pow"
|
||||
"math/random" "math/rng" "math/rng-buffer" "math/rng-int" "math/rng-uniform" "math/round"
|
||||
"math/seedrandom" "math/sin" "math/sinh" "math/sqrt" "math/tan" "math/tanh" "math/trunc" "max"
|
||||
"max-of" "mean" "memcmp" "merge" "merge-into" "merge-module" "min" "min-of" "mod"
|
||||
"module/add-paths" "module/expand-path" "module/find" "module/value" "nan?" "nat?" "native"
|
||||
"neg?" "net/accept" "net/accept-loop" "net/address" "net/address-unpack" "net/chunk" "net/close"
|
||||
"net/connect" "net/flush" "net/listen" "net/localname" "net/peername" "net/read" "net/recv-from"
|
||||
"net/send-to" "net/server" "net/setsockopt" "net/shutdown" "net/write" "next" "nil?" "not"
|
||||
"not=" "number?" "odd?" "one?" "os/arch" "os/cd" "os/chmod" "os/clock" "os/compiler"
|
||||
"os/cpu-count" "os/cryptorand" "os/cwd" "os/date" "os/dir" "os/environ" "os/execute" "os/exit"
|
||||
"os/getenv" "os/isatty" "os/link" "os/lstat" "os/mkdir" "os/mktime" "os/open" "os/perm-int"
|
||||
"os/perm-string" "os/pipe" "os/posix-exec" "os/posix-fork" "os/proc-close" "os/proc-kill"
|
||||
"os/proc-wait" "os/readlink" "os/realpath" "os/rename" "os/rm" "os/rmdir" "os/setenv"
|
||||
"os/setlocale" "os/shell" "os/sigaction" "os/sleep" "os/spawn" "os/stat" "os/strftime"
|
||||
"os/symlink" "os/time" "os/touch" "os/umask" "os/which" "pairs" "parse" "parse-all"
|
||||
"parser/byte" "parser/clone" "parser/consume" "parser/eof" "parser/error" "parser/flush"
|
||||
"parser/has-more" "parser/insert" "parser/new" "parser/produce" "parser/state" "parser/status"
|
||||
"parser/where" "partial" "partition" "partition-by" "peg/compile" "peg/find" "peg/find-all"
|
||||
"peg/match" "peg/replace" "peg/replace-all" "pos?" "postwalk" "pp" "prewalk" "prin" "prinf"
|
||||
"print" "printf" "product" "propagate" "put" "put-in" "quit" "range" "reduce" "reduce2" "repl"
|
||||
"require" "resume" "return" "reverse" "reverse!" "run-context" "sandbox" "scan-number" "setdyn"
|
||||
"signal" "slice" "slurp" "some" "sort" "sort-by" "sorted" "sorted-by" "spit" "string"
|
||||
"string/ascii-lower" "string/ascii-upper" "string/bytes" "string/check-set" "string/find"
|
||||
"string/find-all" "string/format" "string/from-bytes" "string/has-prefix?" "string/has-suffix?"
|
||||
"string/join" "string/repeat" "string/replace" "string/replace-all" "string/reverse"
|
||||
"string/slice" "string/split" "string/trim" "string/triml" "string/trimr" "string?" "struct"
|
||||
"struct/getproto" "struct/proto-flatten" "struct/to-table" "struct/with-proto" "struct?" "sum"
|
||||
"symbol" "symbol/slice" "symbol?" "table" "table/clear" "table/clone" "table/getproto"
|
||||
"table/new" "table/proto-flatten" "table/rawget" "table/setproto" "table/to-struct" "table/weak"
|
||||
"table/weak-keys" "table/weak-values" "table?" "take" "take-until" "take-while" "thaw" "trace"
|
||||
"true?" "truthy?" "tuple" "tuple/brackets" "tuple/setmap" "tuple/slice" "tuple/sourcemap"
|
||||
"tuple/type" "tuple?" "type" "unmarshal" "untrace" "update" "update-in" "values" "varglobal"
|
||||
"walk" "warn-compile" "xprin" "xprinf" "xprint" "xprintf" "yield" "zero?" "zipcoll"
|
||||
; XXX: obsolete
|
||||
"tarray/buffer" "tarray/copy-bytes" "tarray/length" "tarray/new" "tarray/properties"
|
||||
"tarray/slice" "tarray/swap-bytes"
|
||||
; XXX: obsolete
|
||||
"thread/close" "thread/current" "thread/exit" "thread/new" "thread/receive" "thread/send"
|
||||
; end of obsolete
|
||||
"trace" "true?" "truthy?" "tuple" "tuple/brackets" "tuple/setmap" "tuple/slice"
|
||||
"tuple/sourcemap" "tuple/type" "tuple?" "type" "unmarshal" "untrace" "update" "update-in"
|
||||
"values" "varglobal" "walk" "warn-compile" "xprin" "xprinf" "xprint" "xprintf" "yield" "zero?"
|
||||
"zipcoll"))
|
||||
"tarray/slice" "tarray/swap-bytes" "thread/close" "thread/current" "thread/exit" "thread/new"
|
||||
"thread/receive" "thread/send"))
|
||||
|
||||
@ -58,26 +58,25 @@
|
||||
; jq -n 'builtins | map(split("/")[0]) | unique | .[]'
|
||||
((funcname) @function.builtin
|
||||
(#any-of? @function.builtin
|
||||
"IN" "INDEX" "JOIN" "acos" "acosh" "add" "all" "any" "arrays" "ascii_downcase" "ascii_upcase"
|
||||
"asin" "asinh" "atan" "atan2" "atanh" "booleans" "bsearch" "builtins" "capture" "cbrt" "ceil"
|
||||
"combinations" "contains" "copysign" "cos" "cosh" "debug" "del" "delpaths" "drem" "empty"
|
||||
"endswith" "env" "erf" "erfc" "error" "exp" "exp10" "exp2" "explode" "expm1" "fabs" "fdim"
|
||||
"finites" "first" "flatten" "floor" "fma" "fmax" "fmin" "fmod" "format" "frexp" "from_entries"
|
||||
"fromdate" "fromdateiso8601" "fromjson" "fromstream" "gamma" "get_jq_origin" "get_prog_origin"
|
||||
"get_search_list" "getpath" "gmtime" "group_by" "gsub" "halt" "halt_error" "has" "hypot"
|
||||
"implode" "in" "index" "indices" "infinite" "input" "input_filename" "input_line_number"
|
||||
"inputs" "inside" "isempty" "isfinite" "isinfinite" "isnan" "isnormal" "iterables" "j0" "j1"
|
||||
"jn" "join" "keys" "keys_unsorted" "last" "ldexp" "leaf_paths" "length" "lgamma" "lgamma_r"
|
||||
"limit" "localtime" "log" "log10" "log1p" "log2" "logb" "ltrimstr" "map" "map_values" "match"
|
||||
"max" "max_by" "min" "min_by" "mktime" "modf" "modulemeta" "nan" "nearbyint" "nextafter"
|
||||
"nexttoward" "normals" "not" "now" "nth" "nulls" "numbers" "objects" "path" "paths" "pow"
|
||||
"pow10" "range" "recurse" "recurse_down" "remainder" "repeat" "reverse" "rindex" "rint" "round"
|
||||
"rtrimstr" "scalars" "scalars_or_empty" "scalb" "scalbln" "scan" "select" "setpath"
|
||||
"significand" "sin" "sinh" "sort" "sort_by" "split" "splits" "sqrt" "startswith" "stderr"
|
||||
"strflocaltime" "strftime" "strings" "strptime" "sub" "tan" "tanh" "test" "tgamma" "to_entries"
|
||||
"todate" "todateiso8601" "tojson" "tonumber" "tostream" "tostring" "transpose" "trunc"
|
||||
"truncate_stream" "type" "unique" "unique_by" "until" "utf8bytelength" "values" "walk" "while"
|
||||
"with_entries" "y0" "y1" "yn"))
|
||||
"IN" "INDEX" "JOIN" "abs" "acos" "acosh" "add" "all" "any" "arrays" "ascii_downcase"
|
||||
"ascii_upcase" "asin" "asinh" "atan" "atan2" "atanh" "booleans" "bsearch" "builtins" "capture"
|
||||
"cbrt" "ceil" "combinations" "contains" "copysign" "cos" "cosh" "debug" "del" "delpaths" "drem"
|
||||
"empty" "endswith" "env" "erf" "erfc" "error" "exp" "exp10" "exp2" "explode" "expm1" "fabs"
|
||||
"fdim" "finites" "first" "flatten" "floor" "fma" "fmax" "fmin" "fmod" "format" "frexp"
|
||||
"from_entries" "fromdate" "fromdateiso8601" "fromjson" "fromstream" "gamma" "get_jq_origin"
|
||||
"get_prog_origin" "get_search_list" "getpath" "gmtime" "group_by" "gsub" "halt" "halt_error"
|
||||
"has" "hypot" "implode" "in" "index" "indices" "infinite" "input" "input_filename"
|
||||
"input_line_number" "inputs" "inside" "isempty" "isfinite" "isinfinite" "isnan" "isnormal"
|
||||
"iterables" "j0" "j1" "jn" "join" "keys" "keys_unsorted" "last" "ldexp" "length" "lgamma"
|
||||
"lgamma_r" "limit" "localtime" "log" "log10" "log1p" "log2" "logb" "ltrimstr" "map" "map_values"
|
||||
"match" "max" "max_by" "min" "min_by" "mktime" "modf" "modulemeta" "nan" "nearbyint" "nextafter"
|
||||
"nexttoward" "normals" "not" "now" "nth" "nulls" "numbers" "objects" "path" "paths" "pick" "pow"
|
||||
"pow10" "range" "recurse" "remainder" "repeat" "reverse" "rindex" "rint" "round" "rtrimstr"
|
||||
"scalars" "scalb" "scalbln" "scan" "select" "setpath" "significand" "sin" "sinh" "sort"
|
||||
"sort_by" "split" "splits" "sqrt" "startswith" "stderr" "strflocaltime" "strftime" "strings"
|
||||
"strptime" "sub" "tan" "tanh" "test" "tgamma" "to_entries" "todate" "todateiso8601" "tojson"
|
||||
"tonumber" "tostream" "tostring" "transpose" "trunc" "truncate_stream" "type" "unique"
|
||||
"unique_by" "until" "utf8bytelength" "values" "walk" "while" "with_entries" "y0" "y1" "yn"))
|
||||
|
||||
; Keywords
|
||||
[
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
; The right side of =~ literals
|
||||
(regex_literal
|
||||
(_) @injection.content
|
||||
|
||||
@ -4,16 +4,16 @@
|
||||
|
||||
; Definitions
|
||||
(arg
|
||||
(identifier) @local.definition.parameter)
|
||||
(variable) @local.definition.parameter)
|
||||
|
||||
(assign
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(for_args
|
||||
(identifier) @local.definition.var)
|
||||
(variable) @local.definition.var)
|
||||
|
||||
(match_patterns
|
||||
(identifier) @local.definition.var)
|
||||
(variable) @local.definition.var)
|
||||
|
||||
(import_item
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
(bool) @boolean
|
||||
|
||||
(comment) @comment
|
||||
(comment) @comment @spell
|
||||
|
||||
(regexp) @string.regexp
|
||||
|
||||
|
||||
@ -12,7 +12,6 @@
|
||||
(return_statement)
|
||||
(table_constructor)
|
||||
(arguments)
|
||||
(return_statement)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
|
||||
@ -8,28 +8,22 @@
|
||||
(setext_h2_underline) @markup.heading.2)
|
||||
|
||||
(atx_heading
|
||||
(atx_h1_marker) @markup.heading.1
|
||||
(inline) @markup.heading.1)
|
||||
(atx_h1_marker)) @markup.heading.1
|
||||
|
||||
(atx_heading
|
||||
(atx_h2_marker) @markup.heading.2
|
||||
(inline) @markup.heading.2)
|
||||
(atx_h2_marker)) @markup.heading.2
|
||||
|
||||
(atx_heading
|
||||
(atx_h3_marker) @markup.heading.3
|
||||
(inline) @markup.heading.3)
|
||||
(atx_h3_marker)) @markup.heading.3
|
||||
|
||||
(atx_heading
|
||||
(atx_h4_marker) @markup.heading.4
|
||||
(inline) @markup.heading.4)
|
||||
(atx_h4_marker)) @markup.heading.4
|
||||
|
||||
(atx_heading
|
||||
(atx_h5_marker) @markup.heading.5
|
||||
(inline) @markup.heading.5)
|
||||
(atx_h5_marker)) @markup.heading.5
|
||||
|
||||
(atx_heading
|
||||
(atx_h6_marker) @markup.heading.6
|
||||
(inline) @markup.heading.6)
|
||||
(atx_h6_marker)) @markup.heading.6
|
||||
|
||||
(info_string) @label
|
||||
|
||||
|
||||
@ -85,12 +85,15 @@
|
||||
[
|
||||
(link_destination)
|
||||
(uri_autolink)
|
||||
(email_autolink)
|
||||
] @markup.link.url @nospell
|
||||
|
||||
(entity_reference) @nospell
|
||||
|
||||
; Replace common HTML entities.
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special " ")
|
||||
(#set! conceal ""))
|
||||
(#set! conceal " "))
|
||||
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special "<")
|
||||
|
||||
@ -1,2 +1,9 @@
|
||||
([
|
||||
(comment)
|
||||
(line_comment)
|
||||
(ocaml_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((ocaml) @injection.content
|
||||
(#set! injection.language "ocaml"))
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
((else_clause
|
||||
(_) @_not_if) @indent.begin
|
||||
(#not-has-type? @_not_if if_expression))
|
||||
(#not-kind-eq? @_not_if "if_expression"))
|
||||
|
||||
((parameter) @indent.begin
|
||||
(#set! indent.start_at_same_line))
|
||||
|
||||
@ -192,7 +192,7 @@
|
||||
(identifier) @type)
|
||||
|
||||
((identifier) @type
|
||||
(#lua-match? @type "^[A-Z][a-zA-Z0-9]*$")
|
||||
(#lua-match? @type "^[_A-Z][_a-zA-Z0-9]*$")
|
||||
(#not-has-parent? @type parameter procedure_declaration call_expression))
|
||||
|
||||
; Fields
|
||||
|
||||
@ -23,9 +23,6 @@
|
||||
(match_expression)
|
||||
]) @indent.dedent
|
||||
|
||||
(member_call_expression
|
||||
object: (member_call_expression) @indent.branch)
|
||||
|
||||
[
|
||||
")"
|
||||
"}"
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((label_value) @injection.content
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((javascript) @injection.content
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
|
||||
@ -79,29 +79,12 @@
|
||||
] @keyword
|
||||
|
||||
;----headers-----
|
||||
(interface_header
|
||||
(name) @type.definition)
|
||||
|
||||
(imports
|
||||
(imports_entry
|
||||
(module) @module))
|
||||
|
||||
(packages
|
||||
(record_pattern
|
||||
(record_field_pattern
|
||||
(field_name) @module)))
|
||||
|
||||
(app_name) @string.special
|
||||
|
||||
(import_path) @string.special.path
|
||||
|
||||
[
|
||||
"app"
|
||||
"packages"
|
||||
"provides"
|
||||
"interface"
|
||||
"exposes"
|
||||
"expect"
|
||||
"module"
|
||||
"package"
|
||||
"import"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
@ -184,6 +167,9 @@
|
||||
(float)
|
||||
] @number.float
|
||||
|
||||
(string) @string
|
||||
[
|
||||
(string)
|
||||
(multiline_string)
|
||||
] @string
|
||||
|
||||
(char) @character
|
||||
|
||||
@ -8,6 +8,10 @@
|
||||
(exposes_list
|
||||
(ident) @local.reference)
|
||||
|
||||
(import_expr
|
||||
(as)
|
||||
(module) @local.definition)
|
||||
|
||||
(opaque_type_def
|
||||
(apply_type
|
||||
(concrete_type) @local.definition.type))
|
||||
@ -31,9 +35,6 @@
|
||||
(identifier_pattern
|
||||
(identifier) @local.definition)
|
||||
|
||||
(exposes
|
||||
(ident) @local.reference)
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
(tag_expr
|
||||
|
||||
@ -21,4 +21,5 @@
|
||||
(macro_definition)
|
||||
(macro_invocation)
|
||||
(attribute_item)
|
||||
(block)
|
||||
] @fold
|
||||
|
||||
@ -120,6 +120,9 @@
|
||||
(binding
|
||||
name: (identifier) @variable.parameter)
|
||||
|
||||
(lambda_expression
|
||||
parameters: (identifier) @variable.parameter)
|
||||
|
||||
; expressions
|
||||
(field_expression
|
||||
field: (identifier) @variable.member)
|
||||
@ -177,7 +180,6 @@
|
||||
; `macro` not implemented yet
|
||||
"object"
|
||||
"override"
|
||||
"package"
|
||||
"val"
|
||||
"var"
|
||||
"with"
|
||||
@ -211,6 +213,8 @@
|
||||
|
||||
(wildcard) @variable.parameter
|
||||
|
||||
(namespace_wildcard) @punctuation.special
|
||||
|
||||
(annotation) @attribute
|
||||
|
||||
; special keywords
|
||||
@ -235,6 +239,7 @@
|
||||
[
|
||||
"."
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
@ -248,6 +253,9 @@
|
||||
|
||||
[
|
||||
"=>"
|
||||
"?=>"
|
||||
"="
|
||||
"!"
|
||||
"<-"
|
||||
"@"
|
||||
] @operator
|
||||
@ -255,6 +263,7 @@
|
||||
[
|
||||
"import"
|
||||
"export"
|
||||
"package"
|
||||
] @keyword.import
|
||||
|
||||
[
|
||||
@ -278,6 +287,10 @@
|
||||
(case_clause
|
||||
"case" @keyword.conditional))
|
||||
|
||||
(case_block
|
||||
(case_clause
|
||||
"=>" @punctuation.delimiter))
|
||||
|
||||
(operator_identifier) @operator
|
||||
|
||||
((identifier) @type
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
[
|
||||
(rule_definition)
|
||||
(rule_inheritance)
|
||||
(module_definition)
|
||||
(checkpoint_definition)
|
||||
] @fold
|
||||
|
||||
@ -100,6 +100,8 @@
|
||||
(modify_specifier)
|
||||
] @keyword
|
||||
|
||||
(shebang_line) @keyword.directive
|
||||
|
||||
(class_body
|
||||
(property_declaration
|
||||
(pattern
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
(_)* @indent.branch)
|
||||
.
|
||||
_ @indent.branch
|
||||
(#not-has-type? @indent.branch type_parameters parameter))
|
||||
(#not-kind-eq? @indent.branch "type_parameters" "parameter"))
|
||||
|
||||
(ERROR
|
||||
[
|
||||
|
||||
@ -33,7 +33,8 @@
|
||||
; ('...'):format()
|
||||
((function_call
|
||||
(method_index
|
||||
(string) @printf
|
||||
(parenthesized_expression
|
||||
(string) @printf)
|
||||
key: (identifier) @_func))
|
||||
(#eq? @_func "format")
|
||||
(#set! injection.language "printf"))
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
(field_name) @variable.member
|
||||
|
||||
(comment) @comment
|
||||
(comment) @comment @spell
|
||||
|
||||
(number) @number
|
||||
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((content) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
|
||||
@ -1,13 +1,19 @@
|
||||
(h1) @markup.heading.1
|
||||
(h1
|
||||
(delimiter) @markup.heading.1
|
||||
(heading) @markup.heading.1)
|
||||
|
||||
(h2) @markup.heading.2
|
||||
(h2
|
||||
(delimiter) @markup.heading.2
|
||||
(heading) @markup.heading.2)
|
||||
|
||||
(h3) @markup.heading.3
|
||||
|
||||
(column_heading) @markup.heading.4
|
||||
(h3
|
||||
(heading) @markup.heading.3)
|
||||
|
||||
(column_heading
|
||||
"~" @markup.heading.4
|
||||
(heading) @markup.heading.4)
|
||||
|
||||
(column_heading
|
||||
(delimiter) @markup.heading.4
|
||||
(#set! conceal ""))
|
||||
|
||||
(tag
|
||||
|
||||
Reference in New Issue
Block a user