aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsogaiu <983021772@users.noreply.github.com>2023-04-23 17:56:30 +0900
committerAmaan Qureshi <amaanq12@gmail.com>2023-04-30 22:06:17 -0400
commitb9d183c2c50e4c86b2774db2d7a5b5b8af08e17a (patch)
treeb9a0b9ec0420ee1d7c42e81228a9195fdd47f7a9
parentAdjust indentation (diff)
downloadnvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.tar
nvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.tar.gz
nvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.tar.bz2
nvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.tar.lz
nvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.tar.xz
nvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.tar.zst
nvim-treesitter-b9d183c2c50e4c86b2774db2d7a5b5b8af08e17a.zip
Update list of functions
-rw-r--r--queries/janet_simple/highlights.scm151
1 files changed, 93 insertions, 58 deletions
diff --git a/queries/janet_simple/highlights.scm b/queries/janet_simple/highlights.scm
index 9496771bd..eafbc8c94 100644
--- a/queries/janet_simple/highlights.scm
+++ b/queries/janet_simple/highlights.scm
@@ -145,97 +145,129 @@
"with" "with-dyns" "with-syms" "with-vars"))
;; All builtin functions
+;;
+;; (each name (all-bindings)
+;; (when-let [info (dyn (symbol name))]
+;; (when (and (nil? (info :macro))
+;; (or (function? (info :value))
+;; (cfunction? (info :value))))
+;; (print name))))
((sym_lit) @function.builtin
(#any-of? @function.builtin
- "*" "+" "-" "/"
+ "%" "*" "+" "-" "/"
"<" "<=" "=" ">" ">="
+ ;; debugging -- start janet with -d and use (debug) to see these
".break" ".breakall" ".bytecode"
".clear" ".clearall"
".disasm"
".fiber"
".fn" ".frame"
+ ".locals"
".next" ".nextc"
".ppasm"
".signal" ".slot" ".slots" ".source" ".stack" ".step"
+ ;; back to regularly scheduled program
"abstract?" "accumulate" "accumulate2" "all" "all-bindings"
- "all-dynamics" "any?" "apply" "array" "array?"
+ "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"
- "asm" "assert"
- "bad-compile" "bad-parse" "band" "blshift" "bnot" "boolean?"
- "bor" "brshift" "brunshift" "buffer"
+ "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-filled"
- "buffer/popn" "buffer/push" "buffer/push-byte"
+ "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>="
+ "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"
- "dec" "deep=" "deep-not=" "defglobal" "describe" "dictionary?"
- "disasm" "distinct" "doc*" "doc-format" "dofile" "drop"
- "drop-until" "drop-while" "dyn"
- "eflush" "empty?" "env-lookup" "eprin" "eprinf" "eprint"
- "eprintf" "error" "errorf"
- "ev/call" "ev/close" "ev/capacity" "ev/chan" "ev/chunk"
- "ev/close" "ev/count" "ev/deadline" "ev/full" "ev/give"
- "ev/go" "ev/read" "ev/rselect" "ev/select" "ev/sleep"
- "ev/take" "ev/write"
+ "debugger" "debugger-on-status"
+ "dec" "deep-not=" "deep=" "defglobal" "describe"
+ "dictionary?"
+ "disasm" "distinct" "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/close" "ffi/context" "ffi/free"
"ffi/jitfn" "ffi/lookup" "ffi/malloc" "ffi/native"
- "ffi/read" "ffi/signature" "ffi/size" "ffi/struct"
- "ffi/trampoline" "ffi/write"
+ "ffi/pointer-buffer" "ffi/read" "ffi/signature" "ffi/size"
+ "ffi/struct" "ffi/trampoline" "ffi/write"
"fiber/can-resume?" "fiber/current" "fiber/getenv"
- "fiber/maxstack" "fiber/new" "fiber/root" "fiber/setenv"
- "fiber/setmaxstack" "fiber/status"
+ "fiber/last-value" "fiber/maxstack" "fiber/new" "fiber/root"
+ "fiber/setenv" "fiber/setmaxstack" "fiber/status"
"fiber?"
- "file/close" "file/flush" "file/open" "file/popen" "file/read"
- "file/seek" "file/tell" "file/temp" "file/write"
+ "file/close" "file/flush" "file/open" "file/read" "file/seek"
+ "file/tell" "file/temp" "file/write"
"filter" "find" "find-index" "first" "flatten" "flatten-into"
- "flush" "flycheck" "freeze" "frequencies" "function?"
- "gccollect" "gcinterval" "gcsetinterval" "gensym" "get"
- "get-in" "getline"
+ "flush" "flycheck" "freeze" "frequencies" "from-pairs"
+ "function?"
+ "gccollect" "gcinterval" "gcsetinterval"
+ "gensym" "get" "get-in" "getline" "getproto" "group-by"
"hash"
"idempotent?" "identity" "import*" "in" "inc" "index-of"
"indexed?"
- "int/s64" "int/u64"
+ "int/s64" "int/to-bytes" "int/to-number" "int/u64"
"int?"
"interleave" "interpose" "invert"
"juxt*"
- "keep" "keys"
+ "keep" "keep-syntax" "keep-syntax!" "keys"
"keyword"
"keyword/slice"
"keyword?"
"kvs"
"last" "length" "load-image"
- "macex" "macex1"
+ "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/hypot" "math/log" "math/log10" "math/log1p"
- "math/log2" "math/next" "math/pi" "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" "mean" "merge" "merge-into" "merge-module" "min" "mod"
+ "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/chunk"
- "net/close" "net/connect" "net/flush" "net/listen" "net/read"
- "net/recv-from" "net/send-to" "net/server" "net/write"
- "next" "nil?" "not" "not=" "number?"
+ "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/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"
@@ -246,21 +278,23 @@
"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"
+ "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"
+ "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"
+ "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"
- "scan-number" "setdyn" "signal" "slice" "slurp" "some" "sort"
- "sort-by" "sorted" "sorted-by" "spit"
+ "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"
@@ -279,8 +313,9 @@
"symbol/slice"
"symbol?"
"table"
- "table/clone" "table/getproto" "table/new" "table/rawget"
- "table/setproto" "table/to-struct"
+ "table/clear" "table/clone" "table/getproto" "table/new"
+ "table/proto-flatten" "table/rawget" "table/setproto"
+ "table/to-struct"
"table?"
"take" "take-until" "take-while"
;; XXX: obsolete
@@ -290,7 +325,7 @@
;; XXX: obsolete
"thread/close" "thread/current" "thread/exit" "thread/new"
"thread/receive" "thread/send"
- ;; resume non-obsolete
+ ;; end of obsolete
"trace" "true?" "truthy?"
"tuple"
"tuple/brackets" "tuple/setmap" "tuple/slice"
@@ -299,7 +334,7 @@
"type"
"unmarshal" "untrace" "update" "update-in"
"values" "varglobal"
- "walk"
+ "walk" "warn-compile"
"xprin" "xprinf" "xprint" "xprintf"
"yield"
"zero?" "zipcoll"))