refactor: manual pre-cleanup

Moving comments, adding `format-ignore` to lines that will be better
with it
This commit is contained in:
Pham Huy Hoang 2024-01-05 03:19:54 +09:00 committed by Christian Clason
parent 15de22a2e1
commit edee83272e
37 changed files with 1656 additions and 1595 deletions

View file

@ -136,7 +136,7 @@
[ [
(boolean_type) (boolean_type)
(void_type) (void_type)
] @type.builtin;; ] @type.builtin
; Fields ; Fields

View file

@ -22,7 +22,7 @@
; loops ; loops
(for_statement) @local.scope (for_statement) @local.scope
(for_statement ; "for" body in case there are no braces (for_statement ; "for" body in case there are no braces
body: (_) @local.scope) body: (_) @local.scope)
(do_statement (do_statement
body: (_) @local.scope) body: (_) @local.scope)

View file

@ -1,75 +1,75 @@
; inherits: cpp ; inherits: cpp
((identifier) @function.builtin ((identifier) @function.builtin
(#any-of? @function.builtin ; format-ignore
; Digital I/O (#any-of? @function.builtin
"digitalRead" ; Digital I/O
"digitalWrite" "digitalRead"
"pinMode" "digitalWrite"
; Analog I/O "pinMode"
"analogRead" ; Analog I/O
"analogReference" "analogRead"
"analogWrite" "analogReference"
; Zero, Due & MKR Family "analogWrite"
"analogReadResolution" ; Zero, Due & MKR Family
"analogWriteResolution" "analogReadResolution"
; Advanced I/O "analogWriteResolution"
"noTone" ; Advanced I/O
"pulseIn" "noTone"
"pulseInLong" "pulseIn"
"shiftIn" "pulseInLong"
"shiftOut" "shiftIn"
"tone" "shiftOut"
; Time "tone"
"delay" ; Time
"delayMicroseconds" "delay"
"micros" "delayMicroseconds"
"millis" "micros"
; Math "millis"
"abs" ; Math
"constrain" "abs"
"map" "constrain"
"max" "map"
"min" "max"
"pow" "min"
"sq" "pow"
"sqrt" "sq"
; Trigonometry "sqrt"
"cos" ; Trigonometry
"sin" "cos"
"tan" "sin"
; Characters "tan"
"isAlpha" ; Characters
"isAlphaNumeric" "isAlpha"
"isAscii" "isAlphaNumeric"
"isControl" "isAscii"
"isDigit" "isControl"
"isGraph" "isDigit"
"isHexadecimalDigit" "isGraph"
"isLowerCase" "isHexadecimalDigit"
"isPrintable" "isLowerCase"
"isPunct" "isPrintable"
"isSpace" "isPunct"
"isUpperCase" "isSpace"
"isWhitespace" "isUpperCase"
; Random Numbers "isWhitespace"
"random" ; Random Numbers
"randomSeed" "random"
; Bits and Bytes "randomSeed"
"bit" ; Bits and Bytes
"bitClear" "bit"
"bitRead" "bitClear"
"bitSet" "bitRead"
"bitWrite" "bitSet"
"highByte" "bitWrite"
"lowByte" "highByte"
; External Interrupts "lowByte"
"attachInterrupt" ; External Interrupts
"detachInterrupt" "attachInterrupt"
; Interrupts "detachInterrupt"
"interrupts" ; Interrupts
"noInterrupts" "interrupts"
)) "noInterrupts"))
((identifier) @type.builtin ((identifier) @type.builtin
(#any-of? @type.builtin (#any-of? @type.builtin

View file

@ -127,7 +127,8 @@
(command_name (word) @function.call) (command_name (word) @function.call)
((command_name (word) @function.builtin) ((command_name (word) @function.builtin)
(#any-of? @function.builtin ; format-ignore
(#any-of? @function.builtin
"alias" "bg" "bind" "break" "builtin" "caller" "cd" "alias" "bg" "bind" "break" "builtin" "caller" "cd"
"command" "compgen" "complete" "compopt" "continue" "command" "compgen" "complete" "compopt" "continue"
"coproc" "dirs" "disown" "echo" "enable" "eval" "coproc" "dirs" "disown" "echo" "enable" "eval"

View file

@ -109,15 +109,11 @@
(#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$")) (#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
((python_identifier) @constant.builtin ((python_identifier) @constant.builtin
(#any-of? @constant.builtin ; format-ignore
;; https://docs.python.org/3/library/constants.html (#any-of? @constant.builtin
"NotImplemented" ; https://docs.python.org/3/library/constants.html
"Ellipsis" "NotImplemented" "Ellipsis"
"quit" "quit" "exit" "copyright" "credits" "license"))
"exit"
"copyright"
"credits"
"license"))
((assignment ((assignment
left: (python_identifier) @type.definition left: (python_identifier) @type.definition
@ -338,21 +334,22 @@
(type_conversion) @function.macro (type_conversion) @function.macro
([(identifier) (python_identifier)] @type.builtin ([(identifier) (python_identifier)] @type.builtin
(#any-of? @type.builtin ; format-ignore
;; https://docs.python.org/3/library/exceptions.html (#any-of? @type.builtin
"BaseException" "Exception" "ArithmeticError" "BufferError" "LookupError" "AssertionError" "AttributeError" ; https://docs.python.org/3/library/exceptions.html
"EOFError" "FloatingPointError" "GeneratorExit" "ImportError" "ModuleNotFoundError" "IndexError" "KeyError" "BaseException" "Exception" "ArithmeticError" "BufferError" "LookupError" "AssertionError" "AttributeError"
"KeyboardInterrupt" "MemoryError" "NameError" "NotImplementedError" "OSError" "OverflowError" "RecursionError" "EOFError" "FloatingPointError" "GeneratorExit" "ImportError" "ModuleNotFoundError" "IndexError" "KeyError"
"ReferenceError" "RuntimeError" "StopIteration" "StopAsyncIteration" "SyntaxError" "IndentationError" "TabError" "KeyboardInterrupt" "MemoryError" "NameError" "NotImplementedError" "OSError" "OverflowError" "RecursionError"
"SystemError" "SystemExit" "TypeError" "UnboundLocalError" "UnicodeError" "UnicodeEncodeError" "UnicodeDecodeError" "ReferenceError" "RuntimeError" "StopIteration" "StopAsyncIteration" "SyntaxError" "IndentationError" "TabError"
"UnicodeTranslateError" "ValueError" "ZeroDivisionError" "EnvironmentError" "IOError" "WindowsError" "SystemError" "SystemExit" "TypeError" "UnboundLocalError" "UnicodeError" "UnicodeEncodeError" "UnicodeDecodeError"
"BlockingIOError" "ChildProcessError" "ConnectionError" "BrokenPipeError" "ConnectionAbortedError" "UnicodeTranslateError" "ValueError" "ZeroDivisionError" "EnvironmentError" "IOError" "WindowsError"
"ConnectionRefusedError" "ConnectionResetError" "FileExistsError" "FileNotFoundError" "InterruptedError" "BlockingIOError" "ChildProcessError" "ConnectionError" "BrokenPipeError" "ConnectionAbortedError"
"IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "TimeoutError" "Warning" "ConnectionRefusedError" "ConnectionResetError" "FileExistsError" "FileNotFoundError" "InterruptedError"
"UserWarning" "DeprecationWarning" "PendingDeprecationWarning" "SyntaxWarning" "RuntimeWarning" "IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "TimeoutError" "Warning"
"FutureWarning" "ImportWarning" "UnicodeWarning" "BytesWarning" "ResourceWarning" "UserWarning" "DeprecationWarning" "PendingDeprecationWarning" "SyntaxWarning" "RuntimeWarning"
;; https://docs.python.org/3/library/stdtypes.html "FutureWarning" "ImportWarning" "UnicodeWarning" "BytesWarning" "ResourceWarning"
"bool" "int" "float" "complex" "list" "tuple" "range" "str" ; https://docs.python.org/3/library/stdtypes.html
"bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type" "object")) "bool" "int" "float" "complex" "list" "tuple" "range" "str"
"bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type" "object"))
(comment) @comment @spell (comment) @comment @spell

View file

@ -124,12 +124,12 @@
((preproc_arg) @function.macro (#set! "priority" 90)) ((preproc_arg) @function.macro (#set! "priority" 90))
(preproc_defined) @function.macro (preproc_defined) @function.macro
(((field_expression ((field_expression
(field_identifier) @property)) @_parent (field_identifier) @property) @_parent
(#not-has-parent? @_parent template_method function_declarator call_expression)) (#not-has-parent? @_parent template_method function_declarator call_expression))
(field_designator) @property (field_designator) @property
(((field_identifier) @property) ((field_identifier) @property
(#has-ancestor? @property field_declaration) (#has-ancestor? @property field_declaration)
(#not-has-ancestor? @property function_declarator)) (#not-has-ancestor? @property function_declarator))
@ -168,6 +168,7 @@
value: (identifier) @constant) value: (identifier) @constant)
((identifier) @constant.builtin ((identifier) @constant.builtin
; format-ignore
(#any-of? @constant.builtin (#any-of? @constant.builtin
"stderr" "stdin" "stdout" "stderr" "stdin" "stdout"
"__FILE__" "__LINE__" "__DATE__" "__TIME__" "__FILE__" "__LINE__" "__DATE__" "__TIME__"
@ -181,6 +182,7 @@
"__FUNCTION__" "__func__" "__PRETTY_FUNCTION__" "__FUNCTION__" "__func__" "__PRETTY_FUNCTION__"
"__VA_ARGS__" "__VA_OPT__")) "__VA_ARGS__" "__VA_OPT__"))
(preproc_def (preproc_arg) @constant.builtin (preproc_def (preproc_arg) @constant.builtin
; format-ignore
(#any-of? @constant.builtin (#any-of? @constant.builtin
"stderr" "stdin" "stdout" "stderr" "stdin" "stdout"
"__FILE__" "__LINE__" "__DATE__" "__TIME__" "__FILE__" "__LINE__" "__DATE__" "__TIME__"

View file

@ -16,59 +16,65 @@
function: (identifier) @_function function: (identifier) @_function
arguments: (argument_list arguments: (argument_list
. (string_literal (string_content) @injection.content))) . (string_literal (string_content) @injection.content)))
(#any-of? @_function "printf" "printf_s" ; format-ignore
"vprintf" "vprintf_s" (#any-of? @_function
"scanf" "scanf_s" "printf" "printf_s"
"vscanf" "vscanf_s" "vprintf" "vprintf_s"
"wprintf" "wprintf_s" "scanf" "scanf_s"
"vwprintf" "vwprintf_s" "vscanf" "vscanf_s"
"wscanf" "wscanf_s" "wprintf" "wprintf_s"
"vwscanf" "vwscanf_s" "vwprintf" "vwprintf_s"
"cscanf" "_cscanf" "wscanf" "wscanf_s"
"printw" "vwscanf" "vwscanf_s"
"scanw") "cscanf" "_cscanf"
"printw"
"scanw")
(#set! injection.language "printf")) (#set! injection.language "printf"))
((call_expression ((call_expression
function: (identifier) @_function function: (identifier) @_function
arguments: (argument_list arguments: (argument_list
(_) . (string_literal (string_content) @injection.content))) (_) . (string_literal (string_content) @injection.content)))
(#any-of? @_function "fprintf" "fprintf_s" ; format-ignore
"sprintf" (#any-of? @_function
"dprintf" "fprintf" "fprintf_s"
"fscanf" "fscanf_s" "sprintf"
"sscanf" "sscanf_s" "dprintf"
"vsscanf" "vsscanf_s" "fscanf" "fscanf_s"
"vfprintf" "vfprintf_s" "sscanf" "sscanf_s"
"vsprintf" "vsscanf" "vsscanf_s"
"vdprintf" "vfprintf" "vfprintf_s"
"fwprintf" "fwprintf_s" "vsprintf"
"vfwprintf" "vfwprintf_s" "vdprintf"
"fwscanf" "fwscanf_s" "fwprintf" "fwprintf_s"
"swscanf" "swscanf_s" "vfwprintf" "vfwprintf_s"
"vswscanf" "vswscanf_s" "fwscanf" "fwscanf_s"
"vfscanf" "vfscanf_s" "swscanf" "swscanf_s"
"vfwscanf" "vfwscanf_s" "vswscanf" "vswscanf_s"
"wprintw" "vfscanf" "vfscanf_s"
"vw_printw" "vwprintw" "vfwscanf" "vfwscanf_s"
"wscanw" "wprintw"
"vw_scanw" "vwscanw") "vw_printw" "vwprintw"
"wscanw"
"vw_scanw" "vwscanw")
(#set! injection.language "printf")) (#set! injection.language "printf"))
((call_expression ((call_expression
function: (identifier) @_function function: (identifier) @_function
arguments: (argument_list arguments: (argument_list
(_) . (_) . (string_literal (string_content) @injection.content))) (_) . (_) . (string_literal (string_content) @injection.content)))
(#any-of? @_function "sprintf_s" ; format-ignore
"snprintf" "snprintf_s" (#any-of? @_function
"vsprintf_s" "sprintf_s"
"vsnprintf" "vsnprintf_s" "snprintf" "snprintf_s"
"swprintf" "swprintf_s" "vsprintf_s"
"snwprintf_s" "vsnprintf" "vsnprintf_s"
"vswprintf" "vswprintf_s" "swprintf" "swprintf_s"
"vsnwprintf_s" "snwprintf_s"
"mvprintw" "vswprintf" "vswprintf_s"
"mvscanw") "vsnwprintf_s"
"mvprintw"
"mvscanw")
(#set! injection.language "printf")) (#set! injection.language "printf"))
((call_expression ((call_expression

View file

@ -67,19 +67,20 @@
; Builtin dynamic variables ; Builtin dynamic variables
((sym_lit) @variable.builtin ((sym_lit) @variable.builtin
(#any-of? @variable.builtin ; format-ignore
"*agent*" "*allow-unresolved-vars*" "*assert*" (#any-of? @variable.builtin
"*clojure-version*" "*command-line-args*" "*agent*" "*allow-unresolved-vars*" "*assert*"
"*compile-files*" "*compile-path*" "*compiler-options*" "*clojure-version*" "*command-line-args*"
"*data-readers*" "*default-data-reader-fn*" "*compile-files*" "*compile-path*" "*compiler-options*"
"*err*" "*file*" "*flush-on-newline*" "*fn-loader*" "*data-readers*" "*default-data-reader-fn*"
"*in*" "*math-context*" "*ns*" "*out*" "*err*" "*file*" "*flush-on-newline*" "*fn-loader*"
"*print-dup*" "*print-length*" "*print-level*" "*in*" "*math-context*" "*ns*" "*out*"
"*print-meta*" "*print-namespace-maps*" "*print-readably*" "*print-dup*" "*print-length*" "*print-level*"
"*read-eval*" "*reader-resolver*" "*print-meta*" "*print-namespace-maps*" "*print-readably*"
"*source-path*" "*suppress-read*" "*read-eval*" "*reader-resolver*"
"*unchecked-math*" "*use-context-classloader*" "*source-path*" "*suppress-read*"
"*verbose-defrecords*" "*warn-on-reflection*")) "*unchecked-math*" "*use-context-classloader*"
"*verbose-defrecords*" "*warn-on-reflection*"))
; Builtin repl variables ; Builtin repl variables
((sym_lit) @variable.builtin ((sym_lit) @variable.builtin
@ -172,17 +173,18 @@
; Builtin macros ; Builtin macros
;; TODO: Do all these items belong here? ;; TODO: Do all these items belong here?
((sym_lit) @function.macro ((sym_lit) @function.macro
(#any-of? @function.macro ; format-ignore
"." ".." "->" "->>" "amap" "areduce" "as->" "assert" (#any-of? @function.macro
"binding" "bound-fn" "delay" "do" "dosync" "." ".." "->" "->>" "amap" "areduce" "as->" "assert"
"doto" "extend-protocol" "extend-type" "binding" "bound-fn" "delay" "do" "dosync"
"gen-class" "gen-interface" "io!" "lazy-cat" "doto" "extend-protocol" "extend-type"
"lazy-seq" "let" "letfn" "locking" "memfn" "monitor-enter" "gen-class" "gen-interface" "io!" "lazy-cat"
"monitor-exit" "proxy" "proxy-super" "pvalues" "lazy-seq" "let" "letfn" "locking" "memfn" "monitor-enter"
"refer-clojure" "reify" "set!" "some->" "some->>" "monitor-exit" "proxy" "proxy-super" "pvalues"
"time" "unquote" "unquote-splicing" "var" "vswap!" "refer-clojure" "reify" "set!" "some->" "some->>"
"with-bindings" "with-in-str" "with-loading-context" "with-local-vars" "time" "unquote" "unquote-splicing" "var" "vswap!"
"with-open" "with-out-str" "with-precision" "with-redefs")) "with-bindings" "with-in-str" "with-loading-context" "with-local-vars"
"with-open" "with-out-str" "with-precision" "with-redefs"))
; All builtin functions ; All builtin functions
; (->> (ns-publics *ns*) ; (->> (ns-publics *ns*)
@ -191,128 +193,129 @@
; clojure.pprint/pprint)) ; clojure.pprint/pprint))
;; ...and then lots of manual filtering... ;; ...and then lots of manual filtering...
((sym_lit) @function.builtin ((sym_lit) @function.builtin
(#any-of? @function.builtin ; format-ignore
"->ArrayChunk" "->Eduction" "->Vec" "->VecNode" "->VecSeq" (#any-of? @function.builtin
"-cache-protocol-fn" "-reset-methods" "PrintWriter-on" "->ArrayChunk" "->Eduction" "->Vec" "->VecNode" "->VecSeq"
"StackTraceElement->vec" "Throwable->map" "accessor" "-cache-protocol-fn" "-reset-methods" "PrintWriter-on"
"aclone" "add-classpath" "add-tap" "add-watch" "agent" "StackTraceElement->vec" "Throwable->map" "accessor"
"agent-error" "agent-errors" "aget" "alength" "alias" "aclone" "add-classpath" "add-tap" "add-watch" "agent"
"all-ns" "alter" "alter-meta!" "alter-var-root" "ancestors" "agent-error" "agent-errors" "aget" "alength" "alias"
"any?" "apply" "array-map" "aset" "aset-boolean" "aset-byte" "all-ns" "alter" "alter-meta!" "alter-var-root" "ancestors"
"aset-char" "aset-double" "aset-float" "aset-int" "any?" "apply" "array-map" "aset" "aset-boolean" "aset-byte"
"aset-long" "aset-short" "assoc" "assoc!" "assoc-in" "aset-char" "aset-double" "aset-float" "aset-int"
"associative?" "atom" "bases" "bean" "bigdec" "bigint" "biginteger" "aset-long" "aset-short" "assoc" "assoc!" "assoc-in"
"bit-and" "bit-and-not" "bit-clear" "bit-flip" "bit-not" "bit-or" "associative?" "atom" "bases" "bean" "bigdec" "bigint" "biginteger"
"bit-set" "bit-shift-left" "bit-shift-right" "bit-test" "bit-and" "bit-and-not" "bit-clear" "bit-flip" "bit-not" "bit-or"
"bit-xor" "boolean" "boolean-array" "boolean?" "bit-set" "bit-shift-left" "bit-shift-right" "bit-test"
"booleans" "bound-fn*" "bound?" "bounded-count" "bit-xor" "boolean" "boolean-array" "boolean?"
"butlast" "byte" "byte-array" "bytes" "bytes?" "booleans" "bound-fn*" "bound?" "bounded-count"
"cast" "cat" "char" "char-array" "char-escape-string" "butlast" "byte" "byte-array" "bytes" "bytes?"
"char-name-string" "char?" "chars" "chunk" "chunk-append" "cast" "cat" "char" "char-array" "char-escape-string"
"chunk-buffer" "chunk-cons" "chunk-first" "chunk-next" "char-name-string" "char?" "chars" "chunk" "chunk-append"
"chunk-rest" "chunked-seq?" "class" "class?" "chunk-buffer" "chunk-cons" "chunk-first" "chunk-next"
"clear-agent-errors" "clojure-version" "coll?" "chunk-rest" "chunked-seq?" "class" "class?"
"commute" "comp" "comparator" "compare" "compare-and-set!" "clear-agent-errors" "clojure-version" "coll?"
"compile" "complement" "completing" "concat" "conj" "commute" "comp" "comparator" "compare" "compare-and-set!"
"conj!" "cons" "constantly" "construct-proxy" "contains?" "compile" "complement" "completing" "concat" "conj"
"count" "counted?" "create-ns" "create-struct" "cycle" "conj!" "cons" "constantly" "construct-proxy" "contains?"
"dec" "dec'" "decimal?" "dedupe" "default-data-readers" "count" "counted?" "create-ns" "create-struct" "cycle"
"delay?" "deliver" "denominator" "deref" "derive" "dec" "dec'" "decimal?" "dedupe" "default-data-readers"
"descendants" "destructure" "disj" "disj!" "dissoc" "delay?" "deliver" "denominator" "deref" "derive"
"dissoc!" "distinct" "distinct?" "doall" "dorun" "double" "descendants" "destructure" "disj" "disj!" "dissoc"
"double-array" "eduction" "empty" "empty?" "ensure" "ensure-reduced" "dissoc!" "distinct" "distinct?" "doall" "dorun" "double"
"enumeration-seq" "error-handler" "error-mode" "eval" "double-array" "eduction" "empty" "empty?" "ensure" "ensure-reduced"
"even?" "every-pred" "every?" "extend" "extenders" "extends?" "enumeration-seq" "error-handler" "error-mode" "eval"
"false?" "ffirst" "file-seq" "filter" "filterv" "find" "even?" "every-pred" "every?" "extend" "extenders" "extends?"
"find-keyword" "find-ns" "find-protocol-impl" "false?" "ffirst" "file-seq" "filter" "filterv" "find"
"find-protocol-method" "find-var" "first" "flatten" "find-keyword" "find-ns" "find-protocol-impl"
"float" "float-array" "float?" "floats" "flush" "fn?" "find-protocol-method" "find-var" "first" "flatten"
"fnext" "fnil" "force" "format" "frequencies" "float" "float-array" "float?" "floats" "flush" "fn?"
"future-call" "future-cancel" "future-cancelled?" "fnext" "fnil" "force" "format" "frequencies"
"future-done?" "future?" "gensym" "get" "get-in" "future-call" "future-cancel" "future-cancelled?"
"get-method" "get-proxy-class" "get-thread-bindings" "future-done?" "future?" "gensym" "get" "get-in"
"get-validator" "group-by" "halt-when" "hash" "get-method" "get-proxy-class" "get-thread-bindings"
"hash-combine" "hash-map" "hash-ordered-coll" "hash-set" "get-validator" "group-by" "halt-when" "hash"
"hash-unordered-coll" "ident?" "identical?" "identity" "hash-combine" "hash-map" "hash-ordered-coll" "hash-set"
"ifn?" "in-ns" "inc" "inc'" "indexed?" "init-proxy" "hash-unordered-coll" "ident?" "identical?" "identity"
"inst-ms" "inst-ms*" "inst?" "instance?" "int" "int-array" "ifn?" "in-ns" "inc" "inc'" "indexed?" "init-proxy"
"int?" "integer?" "interleave" "intern" "interpose" "into" "inst-ms" "inst-ms*" "inst?" "instance?" "int" "int-array"
"into-array" "ints" "isa?" "iterate" "iterator-seq" "juxt" "int?" "integer?" "interleave" "intern" "interpose" "into"
"keep" "keep-indexed" "key" "keys" "keyword" "keyword?" "into-array" "ints" "isa?" "iterate" "iterator-seq" "juxt"
"last" "line-seq" "list" "list*" "list?" "load" "load-file" "keep" "keep-indexed" "key" "keys" "keyword" "keyword?"
"load-reader" "load-string" "loaded-libs" "long" "long-array" "last" "line-seq" "list" "list*" "list?" "load" "load-file"
"longs" "macroexpand" "macroexpand-1" "make-array" "make-hierarchy" "load-reader" "load-string" "loaded-libs" "long" "long-array"
"map" "map-entry?" "map-indexed" "map?" "mapcat" "mapv" "longs" "macroexpand" "macroexpand-1" "make-array" "make-hierarchy"
"max" "max-key" "memoize" "merge" "merge-with" "meta" "map" "map-entry?" "map-indexed" "map?" "mapcat" "mapv"
"method-sig" "methods" "min" "min-key" "mix-collection-hash" "max" "max-key" "memoize" "merge" "merge-with" "meta"
"mod" "munge" "name" "namespace" "namespace-munge" "nat-int?" "method-sig" "methods" "min" "min-key" "mix-collection-hash"
"neg-int?" "neg?" "newline" "next" "nfirst" "nil?" "nnext" "mod" "munge" "name" "namespace" "namespace-munge" "nat-int?"
"not-any?" "not-empty" "not-every?" "ns-aliases" "neg-int?" "neg?" "newline" "next" "nfirst" "nil?" "nnext"
"ns-imports" "ns-interns" "ns-map" "ns-name" "ns-publics" "not-any?" "not-empty" "not-every?" "ns-aliases"
"ns-refers" "ns-resolve" "ns-unalias" "ns-unmap" "nth" "ns-imports" "ns-interns" "ns-map" "ns-name" "ns-publics"
"nthnext" "nthrest" "num" "number?" "numerator" "object-array" "ns-refers" "ns-resolve" "ns-unalias" "ns-unmap" "nth"
"odd?" "parents" "partial" "partition" "partition-all" "nthnext" "nthrest" "num" "number?" "numerator" "object-array"
"partition-by" "pcalls" "peek" "persistent!" "pmap" "pop" "odd?" "parents" "partial" "partition" "partition-all"
"pop!" "pop-thread-bindings" "pos-int?" "pos?" "pr" "partition-by" "pcalls" "peek" "persistent!" "pmap" "pop"
"pr-str" "prefer-method" "prefers" "primitives-classnames" "pop!" "pop-thread-bindings" "pos-int?" "pos?" "pr"
"print" "print-ctor" "print-dup" "print-method" "print-simple" "pr-str" "prefer-method" "prefers" "primitives-classnames"
"print-str" "printf" "println" "println-str" "prn" "prn-str" "print" "print-ctor" "print-dup" "print-method" "print-simple"
"promise" "proxy-call-with-super" "proxy-mappings" "proxy-name" "print-str" "printf" "println" "println-str" "prn" "prn-str"
"push-thread-bindings" "qualified-ident?" "qualified-keyword?" "promise" "proxy-call-with-super" "proxy-mappings" "proxy-name"
"qualified-symbol?" "quot" "rand" "rand-int" "rand-nth" "random-sample" "push-thread-bindings" "qualified-ident?" "qualified-keyword?"
"range" "ratio?" "rational?" "rationalize" "re-find" "re-groups" "qualified-symbol?" "quot" "rand" "rand-int" "rand-nth" "random-sample"
"re-matcher" "re-matches" "re-pattern" "re-seq" "read" "range" "ratio?" "rational?" "rationalize" "re-find" "re-groups"
"read+string" "read-line" "read-string" "reader-conditional" "re-matcher" "re-matches" "re-pattern" "re-seq" "read"
"reader-conditional?" "realized?" "record?" "reduce" "read+string" "read-line" "read-string" "reader-conditional"
"reduce-kv" "reduced" "reduced?" "reductions" "ref" "ref-history-count" "reader-conditional?" "realized?" "record?" "reduce"
"ref-max-history" "ref-min-history" "ref-set" "refer" "reduce-kv" "reduced" "reduced?" "reductions" "ref" "ref-history-count"
"release-pending-sends" "rem" "remove" "remove-all-methods" "ref-max-history" "ref-min-history" "ref-set" "refer"
"remove-method" "remove-ns" "remove-tap" "remove-watch" "release-pending-sends" "rem" "remove" "remove-all-methods"
"repeat" "repeatedly" "replace" "replicate" "remove-method" "remove-ns" "remove-tap" "remove-watch"
"requiring-resolve" "reset!" "reset-meta!" "reset-vals!" "repeat" "repeatedly" "replace" "replicate"
"resolve" "rest" "restart-agent" "resultset-seq" "reverse" "requiring-resolve" "reset!" "reset-meta!" "reset-vals!"
"reversible?" "rseq" "rsubseq" "run!" "satisfies?" "resolve" "rest" "restart-agent" "resultset-seq" "reverse"
"second" "select-keys" "send" "send-off" "send-via" "reversible?" "rseq" "rsubseq" "run!" "satisfies?"
"seq" "seq?" "seqable?" "seque" "sequence" "sequential?" "second" "select-keys" "send" "send-off" "send-via"
"set" "set-agent-send-executor!" "set-agent-send-off-executor!" "seq" "seq?" "seqable?" "seque" "sequence" "sequential?"
"set-error-handler!" "set-error-mode!" "set-validator!" "set" "set-agent-send-executor!" "set-agent-send-off-executor!"
"set?" "short" "short-array" "shorts" "shuffle" "set-error-handler!" "set-error-mode!" "set-validator!"
"shutdown-agents" "simple-ident?" "simple-keyword?" "set?" "short" "short-array" "shorts" "shuffle"
"simple-symbol?" "slurp" "some" "some-fn" "some?" "shutdown-agents" "simple-ident?" "simple-keyword?"
"sort" "sort-by" "sorted-map" "sorted-map-by" "simple-symbol?" "slurp" "some" "some-fn" "some?"
"sorted-set" "sorted-set-by" "sorted?" "special-symbol?" "sort" "sort-by" "sorted-map" "sorted-map-by"
"spit" "split-at" "split-with" "str" "string?" "sorted-set" "sorted-set-by" "sorted?" "special-symbol?"
"struct" "struct-map" "subs" "subseq" "subvec" "supers" "spit" "split-at" "split-with" "str" "string?"
"swap!" "swap-vals!" "symbol" "symbol?" "tagged-literal" "struct" "struct-map" "subs" "subseq" "subvec" "supers"
"tagged-literal?" "take" "take-last" "take-nth" "take-while" "swap!" "swap-vals!" "symbol" "symbol?" "tagged-literal"
"tap>" "test" "the-ns" "thread-bound?" "to-array" "tagged-literal?" "take" "take-last" "take-nth" "take-while"
"to-array-2d" "trampoline" "transduce" "transient" "tap>" "test" "the-ns" "thread-bound?" "to-array"
"tree-seq" "true?" "type" "unchecked-add" "unchecked-add-int" "to-array-2d" "trampoline" "transduce" "transient"
"unchecked-byte" "unchecked-char" "unchecked-dec" "tree-seq" "true?" "type" "unchecked-add" "unchecked-add-int"
"unchecked-dec-int" "unchecked-divide-int" "unchecked-double" "unchecked-byte" "unchecked-char" "unchecked-dec"
"unchecked-float" "unchecked-inc" "unchecked-inc-int" "unchecked-dec-int" "unchecked-divide-int" "unchecked-double"
"unchecked-int" "unchecked-long" "unchecked-multiply" "unchecked-float" "unchecked-inc" "unchecked-inc-int"
"unchecked-multiply-int" "unchecked-negate" "unchecked-negate-int" "unchecked-int" "unchecked-long" "unchecked-multiply"
"unchecked-remainder-int" "unchecked-short" "unchecked-subtract" "unchecked-multiply-int" "unchecked-negate" "unchecked-negate-int"
"unchecked-subtract-int" "underive" "unquote" "unchecked-remainder-int" "unchecked-short" "unchecked-subtract"
"unquote-splicing" "unreduced" "unsigned-bit-shift-right" "unchecked-subtract-int" "underive" "unquote"
"update" "update-in" "update-proxy" "uri?" "uuid?" "unquote-splicing" "unreduced" "unsigned-bit-shift-right"
"val" "vals" "var-get" "var-set" "var?" "vary-meta" "vec" "update" "update-in" "update-proxy" "uri?" "uuid?"
"vector" "vector-of" "vector?" "volatile!" "volatile?" "val" "vals" "var-get" "var-set" "var?" "vary-meta" "vec"
"vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq" "vector" "vector-of" "vector?" "volatile!" "volatile?"
"zero?" "zipmap" "vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq"
;; earlier "zero?" "zipmap"
"drop" "drop-last" "drop-while" ;; earlier
"double?" "doubles" "drop" "drop-last" "drop-while"
"ex-data" "ex-info" "double?" "doubles"
;; 1.10 "ex-data" "ex-info"
"ex-cause" "ex-message" ;; 1.10
;; 1.11 "ex-cause" "ex-message"
"NaN?" "abs" "infinite?" "iteration" "random-uuid" ;; 1.11
"parse-boolean" "parse-double" "parse-long" "parse-uuid" "NaN?" "abs" "infinite?" "iteration" "random-uuid"
"seq-to-map-for-destructuring" "update-keys" "update-vals" "parse-boolean" "parse-double" "parse-long" "parse-uuid"
;; 1.12 "seq-to-map-for-destructuring" "update-keys" "update-vals"
"partitionv" "partitionv-all" "splitv-at")) ;; 1.12
"partitionv" "partitionv-all" "splitv-at"))

View file

@ -91,13 +91,15 @@
(argument_list (argument_list
(argument) @keyword.operator (argument) @keyword.operator
) )
(#any-of? @keyword.operator "NOT" "AND" "OR" ; format-ignore
"COMMAND" "POLICY" "TARGET" "TEST" "DEFINED" "IN_LIST" (#any-of? @keyword.operator
"EXISTS" "IS_NEWER_THAN" "IS_DIRECTORY" "IS_SYMLINK" "IS_ABSOLUTE" "NOT" "AND" "OR"
"MATCHES" "COMMAND" "POLICY" "TARGET" "TEST" "DEFINED" "IN_LIST"
"LESS" "GREATER" "EQUAL" "LESS_EQUAL" "GREATER_EQUAL" "EXISTS" "IS_NEWER_THAN" "IS_DIRECTORY" "IS_SYMLINK" "IS_ABSOLUTE"
"STRLESS" "STRGREATER" "STREQUAL" "STRLESS_EQUAL" "STRGREATER_EQUAL" "MATCHES"
"VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL" "LESS" "GREATER" "EQUAL" "LESS_EQUAL" "GREATER_EQUAL"
"STRLESS" "STRGREATER" "STREQUAL" "STRLESS_EQUAL" "STRGREATER_EQUAL"
"VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL"
) )
) )
(elseif_command (elseif_command
@ -105,13 +107,15 @@
(argument_list (argument_list
(argument) @keyword.operator (argument) @keyword.operator
) )
(#any-of? @keyword.operator "NOT" "AND" "OR" ; format-ignore
"COMMAND" "POLICY" "TARGET" "TEST" "DEFINED" "IN_LIST" (#any-of? @keyword.operator
"EXISTS" "IS_NEWER_THAN" "IS_DIRECTORY" "IS_SYMLINK" "IS_ABSOLUTE" "NOT" "AND" "OR"
"MATCHES" "COMMAND" "POLICY" "TARGET" "TEST" "DEFINED" "IN_LIST"
"LESS" "GREATER" "EQUAL" "LESS_EQUAL" "GREATER_EQUAL" "EXISTS" "IS_NEWER_THAN" "IS_DIRECTORY" "IS_SYMLINK" "IS_ABSOLUTE"
"STRLESS" "STRGREATER" "STREQUAL" "STRLESS_EQUAL" "STRGREATER_EQUAL" "MATCHES"
"VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL" "LESS" "GREATER" "EQUAL" "LESS_EQUAL" "GREATER_EQUAL"
"STRLESS" "STRGREATER" "STREQUAL" "STRLESS_EQUAL" "STRGREATER_EQUAL"
"VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL"
) )
) )

File diff suppressed because one or more lines are too long

View file

@ -1,41 +1,21 @@
; References ; References
(identifier) @local.reference (identifier) @local.reference
(alias) @local.reference (alias) @local.reference
; Module Definitions ; Module Definitions
(call (call
target: ((identifier) @_identifier (#eq? @_identifier "defmodule")) target:
(arguments (alias) @local.definition.type)) ((identifier) @_identifier
(#eq? @_identifier "defmodule"))
(arguments
(alias) @local.definition.type))
; Pattern Match Definitions ; Pattern Match Definitions
(binary_operator left: [ (binary_operator
(identifier) @local.definition.var ; format-ignore
(_ (identifier) @local.definition.var) left:
(_ (_ (identifier) @local.definition.var)) [
(_ (_ (_ (identifier) @local.definition.var)))
(_ (_ (_ (_ (identifier) @local.definition.var))))
(_ (_ (_ (_ (_ (identifier) @local.definition.var)))))
(_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))
(_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))
(_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))))
] operator: "=")
; Stab Clause Definitions
(stab_clause
left: [
(arguments [
(identifier) @local.definition.var (identifier) @local.definition.var
(_ (identifier) @local.definition.var) (_ (identifier) @local.definition.var)
(_ (_ (identifier) @local.definition.var)) (_ (_ (identifier) @local.definition.var))
@ -57,9 +37,15 @@
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))))
]) ]
(binary_operator operator: "=")
left: (arguments [ ; Stab Clause Definitions
; format-ignore
(stab_clause
left:
[
(arguments
[
(identifier) @local.definition.var (identifier) @local.definition.var
(_ (identifier) @local.definition.var) (_ (identifier) @local.definition.var)
(_ (_ (identifier) @local.definition.var)) (_ (_ (identifier) @local.definition.var))
@ -81,84 +67,131 @@
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))))
]) operator: "when") ])
])
(binary_operator
left:
(arguments
; format-ignore
[
(identifier) @local.definition.var
(_ (identifier) @local.definition.var)
(_ (_ (identifier) @local.definition.var))
(_ (_ (_ (identifier) @local.definition.var)))
(_ (_ (_ (_ (identifier) @local.definition.var))))
(_ (_ (_ (_ (_ (identifier) @local.definition.var)))))
(_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))
(_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))
(_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var)))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.var))))))))))))))))))))
])
operator: "when")
])
; Aliases ; Aliases
; format-ignore
(call (call
target: ((identifier) @_identifier (#any-of? @_identifier "require" "alias" "use" "import")) target:
(arguments [ ((identifier) @_identifier
(alias) @local.definition.import (#any-of? @_identifier "require" "alias" "use" "import"))
(_ (alias) @local.definition.import) (arguments
(_ (_ (alias) @local.definition.import)) [
(_ (_ (_ (alias) @local.definition.import))) (alias) @local.definition.import
(_ (_ (_ (_ (alias) @local.definition.import)))) (_ (alias) @local.definition.import)
] (_ (_ (alias) @local.definition.import))
)) (_ (_ (_ (alias) @local.definition.import)))
(_ (_ (_ (_ (alias) @local.definition.import))))
]))
; Local Function Definitions & Scopes ; Local Function Definitions & Scopes
; format-ignore
(call (call
target: ((identifier) @_identifier (#any-of? @_identifier "def" "defp" "defmacro" "defmacrop" "defguard" "defguardp" "defn" "defnp" "for")) target:
(arguments [ ((identifier) @_identifier
(identifier) @local.definition.function (#any-of? @_identifier "def" "defp" "defmacro" "defmacrop" "defguard" "defguardp" "defn" "defnp" "for"))
(binary_operator left: (identifier) @local.definition.function operator: "when") (arguments
(binary_operator (identifier) @local.definition.parameter) [
(call target: (identifier) @local.definition.function (arguments [ (identifier) @local.definition.function
(identifier) @local.definition.parameter (binary_operator
(_ (identifier) @local.definition.parameter) left: (identifier) @local.definition.function
(_ (_ (identifier) @local.definition.parameter)) operator: "when")
(_ (_ (_ (identifier) @local.definition.parameter))) (binary_operator
(_ (_ (_ (_ (identifier) @local.definition.parameter)))) (identifier) @local.definition.parameter)
(_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))) (call
(_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))) target: (identifier) @local.definition.function
(_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))) (arguments
(_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))) [
(_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))) (identifier) @local.definition.parameter
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))) (_ (identifier) @local.definition.parameter)
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))) (_ (_ (identifier) @local.definition.parameter))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))) (_ (_ (_ (identifier) @local.definition.parameter)))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))) (_ (_ (_ (_ (identifier) @local.definition.parameter))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))) (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))) (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))
])) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))
]?) (#set! definition.function.scope parent) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))
(do_block)? (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))
) @local.scope (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))))))
]))
]?)
(#set! definition.function.scope parent)(do_block)?) @local.scope
; ExUnit Test Definitions & Scopes ; ExUnit Test Definitions & Scopes
; format-ignore
(call (call
target: ((identifier) @_identifier (#eq? @_identifier "test")) target:
(arguments [ ((identifier) @_identifier
(string) (#eq? @_identifier "test"))
((string) . "," . [ (arguments
(identifier) @local.definition.parameter [
(_ (identifier) @local.definition.parameter) (string)
(_ (_ (identifier) @local.definition.parameter)) ((string)
(_ (_ (_ (identifier) @local.definition.parameter))) .
(_ (_ (_ (_ (identifier) @local.definition.parameter)))) ","
(_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))) .
(_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))) [
(_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))) (identifier) @local.definition.parameter
(_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))) (_ (identifier) @local.definition.parameter)
(_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))) (_ (_ (identifier) @local.definition.parameter))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))) (_ (_ (_ (identifier) @local.definition.parameter)))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))) (_ (_ (_ (_ (identifier) @local.definition.parameter))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))) (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))) (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))) (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))))) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))
]) (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))
]) (do_block)?) @local.scope (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter)))))))))))))))))))
(_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (_ (identifier) @local.definition.parameter))))))))))))))))))))
])
])
(do_block)?) @local.scope
; Stab Clause Scopes ; Stab Clause Scopes
(stab_clause) @local.scope (stab_clause) @local.scope

View file

@ -82,7 +82,7 @@
;; Match Pattern ;; Match Pattern
(underscore) @constant ; The "_" pattern. (underscore) @constant ; The "_" pattern.
(pattern_open_ending) @operator ; The ".." pattern. (pattern_open_ending) @operator ; The ".." pattern.
;; Alternations ;; Alternations
@ -179,21 +179,22 @@
;; Built-in Annotations ;; Built-in Annotations
((annotation "@" @attribute (identifier) @attribute) ((annotation "@" @attribute (identifier) @attribute)
(#any-of? @attribute ; format-ignore
; @GDScript (#any-of? @attribute
"export" "export_category" "export_color_no_alpha" "export_dir" ; @GDScript
"export_enum" "export_exp_easing" "export_file" "export_flags" "export" "export_category" "export_color_no_alpha" "export_dir"
"export_flags_2d_navigation" "export_flags_2d_physics" "export_enum" "export_exp_easing" "export_file" "export_flags"
"export_flags_2d_render" "export_flags_3d_navigation" "export_flags_2d_navigation" "export_flags_2d_physics"
"export_flags_3d_physics" "export_flags_3d_render" "export_global_dir" "export_flags_2d_render" "export_flags_3d_navigation"
"export_global_file" "export_group" "export_multiline" "export_node_path" "export_flags_3d_physics" "export_flags_3d_render" "export_global_dir"
"export_placeholder" "export_range" "export_subgroup" "icon" "onready" "export_global_file" "export_group" "export_multiline" "export_node_path"
"rpc" "tool" "warning_ignore" "export_placeholder" "export_range" "export_subgroup" "icon" "onready"
)) "rpc" "tool" "warning_ignore"))
;; Builtin Types ;; Builtin Types
([(identifier) (type)] @type.builtin ([(identifier) (type)] @type.builtin
; format-ignore
(#any-of? @type.builtin (#any-of? @type.builtin
; from godot-vscode-plugin ; from godot-vscode-plugin
"Vector2" "Vector2i" "Vector3" "Vector3i" "Vector2" "Vector2i" "Vector3" "Vector3i"
@ -222,122 +223,122 @@
;; Builtin Funcs ;; Builtin Funcs
(call (identifier) @function.builtin (call (identifier) @function.builtin
(#any-of? @function.builtin ; format-ignore
; @GlobalScope (#any-of? @function.builtin
"abs" "absf" "absi" "acos" "asin" "atan" "atan2" "bezier_derivative" ; @GlobalScope
"bezier_interpolate" "bytes_to_var" "bytes_to_var_with_objects" "ceil" "ceilf" "abs" "absf" "absi" "acos" "asin" "atan" "atan2" "bezier_derivative"
"ceili" "clamp" "clampf" "clampi" "cos" "cosh" "cubic_interpolate" "bezier_interpolate" "bytes_to_var" "bytes_to_var_with_objects" "ceil" "ceilf"
"cubic_interpolate_angle" "cubic_interpolate_angle_in_time" "ceili" "clamp" "clampf" "clampi" "cos" "cosh" "cubic_interpolate"
"cubic_interpolate_in_time" "db_to_linear" "deg_to_rad" "ease" "error_string" "cubic_interpolate_angle" "cubic_interpolate_angle_in_time"
"exp" "floor" "floorf" "floori" "fmod" "fposmod" "hash" "instance_from_id" "cubic_interpolate_in_time" "db_to_linear" "deg_to_rad" "ease" "error_string"
"inverse_lerp" "is_equal_approx" "is_finite" "is_inf" "is_instance_id_valid" "exp" "floor" "floorf" "floori" "fmod" "fposmod" "hash" "instance_from_id"
"is_instance_valid" "is_nan" "is_same" "is_zero_approx" "lerp" "lerp_angle" "inverse_lerp" "is_equal_approx" "is_finite" "is_inf" "is_instance_id_valid"
"lerpf" "linear_to_db" "log" "max" "maxf" "maxi" "min" "minf" "mini" "is_instance_valid" "is_nan" "is_same" "is_zero_approx" "lerp" "lerp_angle"
"move_toward" "nearest_po2" "pingpong" "posmod" "pow" "print" "print_rich" "lerpf" "linear_to_db" "log" "max" "maxf" "maxi" "min" "minf" "mini"
"print_verbose" "printerr" "printraw" "prints" "printt" "push_error" "move_toward" "nearest_po2" "pingpong" "posmod" "pow" "print" "print_rich"
"push_warning" "rad_to_deg" "rand_from_seed" "randf" "randf_range" "randfn" "print_verbose" "printerr" "printraw" "prints" "printt" "push_error"
"randi" "randi_range" "randomize" "remap" "rid_allocate_id" "rid_from_int64" "push_warning" "rad_to_deg" "rand_from_seed" "randf" "randf_range" "randfn"
"round" "roundf" "roundi" "seed" "sign" "signf" "signi" "sin" "sinh" "randi" "randi_range" "randomize" "remap" "rid_allocate_id" "rid_from_int64"
"smoothstep" "snapped" "snappedf" "snappedi" "sqrt" "step_decimals" "str" "round" "roundf" "roundi" "seed" "sign" "signf" "signi" "sin" "sinh"
"str_to_var" "tan" "tanh" "typeof" "var_to_bytes" "var_to_bytes_with_objects" "smoothstep" "snapped" "snappedf" "snappedi" "sqrt" "step_decimals" "str"
"var_to_str" "weakref" "wrap" "wrapf" "wrapi" "str_to_var" "tan" "tanh" "typeof" "var_to_bytes" "var_to_bytes_with_objects"
"var_to_str" "weakref" "wrap" "wrapf" "wrapi"
; @GDScript ; @GDScript
"Color8" "assert" "char" "convert" "dict_to_inst" "get_stack" "inst_to_dict" "Color8" "assert" "char" "convert" "dict_to_inst" "get_stack" "inst_to_dict"
"is_instance_of" "len" "print_debug" "print_stack" "range" "is_instance_of" "len" "print_debug" "print_stack" "range"
"type_exists" "type_exists"))
))
;; Builtin Constants ;; Builtin Constants
((identifier) @constant.builtin ((identifier) @constant.builtin
(#any-of? @constant.builtin ; format-ignore
; @GDScript (#any-of? @constant.builtin
"PI" "TAU" "INF" "NAN" ; @GDScript
"PI" "TAU" "INF" "NAN"
; @GlobalScope ; @GlobalScope
"SIDE_LEFT" "SIDE_TOP" "SIDE_RIGHT" "SIDE_BOTTOM" "CORNER_TOP_LEFT" "CORNER_TOP_RIGHT" "CORNER_BOTTOM_RIGHT" "SIDE_LEFT" "SIDE_TOP" "SIDE_RIGHT" "SIDE_BOTTOM" "CORNER_TOP_LEFT" "CORNER_TOP_RIGHT" "CORNER_BOTTOM_RIGHT"
"CORNER_BOTTOM_LEFT" "VERTICAL" "HORIZONTAL" "CLOCKWISE" "COUNTERCLOCKWISE" "HORIZONTAL_ALIGNMENT_LEFT" "CORNER_BOTTOM_LEFT" "VERTICAL" "HORIZONTAL" "CLOCKWISE" "COUNTERCLOCKWISE" "HORIZONTAL_ALIGNMENT_LEFT"
"HORIZONTAL_ALIGNMENT_CENTER" "HORIZONTAL_ALIGNMENT_RIGHT" "HORIZONTAL_ALIGNMENT_FILL" "VERTICAL_ALIGNMENT_TOP" "HORIZONTAL_ALIGNMENT_CENTER" "HORIZONTAL_ALIGNMENT_RIGHT" "HORIZONTAL_ALIGNMENT_FILL" "VERTICAL_ALIGNMENT_TOP"
"VERTICAL_ALIGNMENT_CENTER" "VERTICAL_ALIGNMENT_BOTTOM" "VERTICAL_ALIGNMENT_FILL" "INLINE_ALIGNMENT_TOP_TO" "VERTICAL_ALIGNMENT_CENTER" "VERTICAL_ALIGNMENT_BOTTOM" "VERTICAL_ALIGNMENT_FILL" "INLINE_ALIGNMENT_TOP_TO"
"INLINE_ALIGNMENT_CENTER_TO" "INLINE_ALIGNMENT_BASELINE_TO" "INLINE_ALIGNMENT_BOTTOM_TO" "INLINE_ALIGNMENT_TO_TOP" "INLINE_ALIGNMENT_CENTER_TO" "INLINE_ALIGNMENT_BASELINE_TO" "INLINE_ALIGNMENT_BOTTOM_TO" "INLINE_ALIGNMENT_TO_TOP"
"INLINE_ALIGNMENT_TO_CENTER" "INLINE_ALIGNMENT_TO_BASELINE" "INLINE_ALIGNMENT_TO_BOTTOM" "INLINE_ALIGNMENT_TOP" "INLINE_ALIGNMENT_TO_CENTER" "INLINE_ALIGNMENT_TO_BASELINE" "INLINE_ALIGNMENT_TO_BOTTOM" "INLINE_ALIGNMENT_TOP"
"INLINE_ALIGNMENT_CENTER" "INLINE_ALIGNMENT_BOTTOM" "INLINE_ALIGNMENT_IMAGE_MASK" "INLINE_ALIGNMENT_TEXT_MASK" "INLINE_ALIGNMENT_CENTER" "INLINE_ALIGNMENT_BOTTOM" "INLINE_ALIGNMENT_IMAGE_MASK" "INLINE_ALIGNMENT_TEXT_MASK"
"EULER_ORDER_XYZ" "EULER_ORDER_XZY" "EULER_ORDER_YXZ" "EULER_ORDER_YZX" "EULER_ORDER_ZXY" "EULER_ORDER_ZYX" "KEY_NONE" "EULER_ORDER_XYZ" "EULER_ORDER_XZY" "EULER_ORDER_YXZ" "EULER_ORDER_YZX" "EULER_ORDER_ZXY" "EULER_ORDER_ZYX" "KEY_NONE"
"KEY_SPECIAL" "KEY_ESCAPE" "KEY_TAB" "KEY_BACKTAB" "KEY_BACKSPACE" "KEY_ENTER" "KEY_KP_ENTER" "KEY_INSERT" "KEY_DELETE" "KEY_SPECIAL" "KEY_ESCAPE" "KEY_TAB" "KEY_BACKTAB" "KEY_BACKSPACE" "KEY_ENTER" "KEY_KP_ENTER" "KEY_INSERT" "KEY_DELETE"
"KEY_PAUSE" "KEY_PRINT" "KEY_SYSREQ" "KEY_CLEAR" "KEY_HOME" "KEY_END" "KEY_LEFT" "KEY_UP" "KEY_RIGHT" "KEY_DOWN" "KEY_PAUSE" "KEY_PRINT" "KEY_SYSREQ" "KEY_CLEAR" "KEY_HOME" "KEY_END" "KEY_LEFT" "KEY_UP" "KEY_RIGHT" "KEY_DOWN"
"KEY_PAGEUP" "KEY_PAGEDOWN" "KEY_SHIFT" "KEY_CTRL" "KEY_META" "KEY_ALT" "KEY_CAPSLOCK" "KEY_NUMLOCK" "KEY_SCROLLLOCK" "KEY_PAGEUP" "KEY_PAGEDOWN" "KEY_SHIFT" "KEY_CTRL" "KEY_META" "KEY_ALT" "KEY_CAPSLOCK" "KEY_NUMLOCK" "KEY_SCROLLLOCK"
"KEY_F1" "KEY_F2" "KEY_F3" "KEY_F4" "KEY_F5" "KEY_F6" "KEY_F7" "KEY_F8" "KEY_F9" "KEY_F10" "KEY_F11" "KEY_F12" "KEY_F1" "KEY_F2" "KEY_F3" "KEY_F4" "KEY_F5" "KEY_F6" "KEY_F7" "KEY_F8" "KEY_F9" "KEY_F10" "KEY_F11" "KEY_F12"
"KEY_F13" "KEY_F14" "KEY_F15" "KEY_F16" "KEY_F17" "KEY_F18" "KEY_F19" "KEY_F20" "KEY_F21" "KEY_F22" "KEY_F23" "KEY_F24" "KEY_F13" "KEY_F14" "KEY_F15" "KEY_F16" "KEY_F17" "KEY_F18" "KEY_F19" "KEY_F20" "KEY_F21" "KEY_F22" "KEY_F23" "KEY_F24"
"KEY_F25" "KEY_F26" "KEY_F27" "KEY_F28" "KEY_F29" "KEY_F30" "KEY_F31" "KEY_F32" "KEY_F33" "KEY_F34" "KEY_F35" "KEY_F25" "KEY_F26" "KEY_F27" "KEY_F28" "KEY_F29" "KEY_F30" "KEY_F31" "KEY_F32" "KEY_F33" "KEY_F34" "KEY_F35"
"KEY_KP_MULTIPLY" "KEY_KP_DIVIDE" "KEY_KP_SUBTRACT" "KEY_KP_PERIOD" "KEY_KP_ADD" "KEY_KP_0" "KEY_KP_1" "KEY_KP_2" "KEY_KP_MULTIPLY" "KEY_KP_DIVIDE" "KEY_KP_SUBTRACT" "KEY_KP_PERIOD" "KEY_KP_ADD" "KEY_KP_0" "KEY_KP_1" "KEY_KP_2"
"KEY_KP_3" "KEY_KP_4" "KEY_KP_5" "KEY_KP_6" "KEY_KP_7" "KEY_KP_8" "KEY_KP_9" "KEY_MENU" "KEY_HYPER" "KEY_HELP" "KEY_KP_3" "KEY_KP_4" "KEY_KP_5" "KEY_KP_6" "KEY_KP_7" "KEY_KP_8" "KEY_KP_9" "KEY_MENU" "KEY_HYPER" "KEY_HELP"
"KEY_BACK" "KEY_FORWARD" "KEY_STOP" "KEY_REFRESH" "KEY_VOLUMEDOWN" "KEY_VOLUMEMUTE" "KEY_VOLUMEUP" "KEY_MEDIAPLAY" "KEY_BACK" "KEY_FORWARD" "KEY_STOP" "KEY_REFRESH" "KEY_VOLUMEDOWN" "KEY_VOLUMEMUTE" "KEY_VOLUMEUP" "KEY_MEDIAPLAY"
"KEY_MEDIASTOP" "KEY_MEDIAPREVIOUS" "KEY_MEDIANEXT" "KEY_MEDIARECORD" "KEY_HOMEPAGE" "KEY_FAVORITES" "KEY_SEARCH" "KEY_MEDIASTOP" "KEY_MEDIAPREVIOUS" "KEY_MEDIANEXT" "KEY_MEDIARECORD" "KEY_HOMEPAGE" "KEY_FAVORITES" "KEY_SEARCH"
"KEY_STANDBY" "KEY_OPENURL" "KEY_LAUNCHMAIL" "KEY_LAUNCHMEDIA" "KEY_LAUNCH0" "KEY_LAUNCH1" "KEY_LAUNCH2" "KEY_LAUNCH3" "KEY_STANDBY" "KEY_OPENURL" "KEY_LAUNCHMAIL" "KEY_LAUNCHMEDIA" "KEY_LAUNCH0" "KEY_LAUNCH1" "KEY_LAUNCH2" "KEY_LAUNCH3"
"KEY_LAUNCH4" "KEY_LAUNCH5" "KEY_LAUNCH6" "KEY_LAUNCH7" "KEY_LAUNCH8" "KEY_LAUNCH9" "KEY_LAUNCHA" "KEY_LAUNCHB" "KEY_LAUNCH4" "KEY_LAUNCH5" "KEY_LAUNCH6" "KEY_LAUNCH7" "KEY_LAUNCH8" "KEY_LAUNCH9" "KEY_LAUNCHA" "KEY_LAUNCHB"
"KEY_LAUNCHC" "KEY_LAUNCHD" "KEY_LAUNCHE" "KEY_LAUNCHF" "KEY_UNKNOWN" "KEY_SPACE" "KEY_EXCLAM" "KEY_QUOTEDBL" "KEY_LAUNCHC" "KEY_LAUNCHD" "KEY_LAUNCHE" "KEY_LAUNCHF" "KEY_UNKNOWN" "KEY_SPACE" "KEY_EXCLAM" "KEY_QUOTEDBL"
"KEY_NUMBERSIGN" "KEY_DOLLAR" "KEY_PERCENT" "KEY_AMPERSAND" "KEY_APOSTROPHE" "KEY_PARENLEFT" "KEY_PARENRIGHT" "KEY_NUMBERSIGN" "KEY_DOLLAR" "KEY_PERCENT" "KEY_AMPERSAND" "KEY_APOSTROPHE" "KEY_PARENLEFT" "KEY_PARENRIGHT"
"KEY_ASTERISK" "KEY_PLUS" "KEY_COMMA" "KEY_MINUS" "KEY_PERIOD" "KEY_SLASH" "KEY_0" "KEY_1" "KEY_2" "KEY_3" "KEY_4" "KEY_ASTERISK" "KEY_PLUS" "KEY_COMMA" "KEY_MINUS" "KEY_PERIOD" "KEY_SLASH" "KEY_0" "KEY_1" "KEY_2" "KEY_3" "KEY_4"
"KEY_5" "KEY_6" "KEY_7" "KEY_8" "KEY_9" "KEY_COLON" "KEY_SEMICOLON" "KEY_LESS" "KEY_EQUAL" "KEY_GREATER" "KEY_QUESTION" "KEY_5" "KEY_6" "KEY_7" "KEY_8" "KEY_9" "KEY_COLON" "KEY_SEMICOLON" "KEY_LESS" "KEY_EQUAL" "KEY_GREATER" "KEY_QUESTION"
"KEY_AT" "KEY_A" "KEY_B" "KEY_C" "KEY_D" "KEY_E" "KEY_F" "KEY_G" "KEY_H" "KEY_I" "KEY_J" "KEY_K" "KEY_L" "KEY_M" "KEY_AT" "KEY_A" "KEY_B" "KEY_C" "KEY_D" "KEY_E" "KEY_F" "KEY_G" "KEY_H" "KEY_I" "KEY_J" "KEY_K" "KEY_L" "KEY_M"
"KEY_N" "KEY_O" "KEY_P" "KEY_Q" "KEY_R" "KEY_S" "KEY_T" "KEY_U" "KEY_V" "KEY_W" "KEY_X" "KEY_Y" "KEY_Z" "KEY_N" "KEY_O" "KEY_P" "KEY_Q" "KEY_R" "KEY_S" "KEY_T" "KEY_U" "KEY_V" "KEY_W" "KEY_X" "KEY_Y" "KEY_Z"
"KEY_BRACKETLEFT" "KEY_BACKSLASH" "KEY_BRACKETRIGHT" "KEY_ASCIICIRCUM" "KEY_UNDERSCORE" "KEY_QUOTELEFT" "KEY_BRACELEFT" "KEY_BRACKETLEFT" "KEY_BACKSLASH" "KEY_BRACKETRIGHT" "KEY_ASCIICIRCUM" "KEY_UNDERSCORE" "KEY_QUOTELEFT" "KEY_BRACELEFT"
"KEY_BAR" "KEY_BRACERIGHT" "KEY_ASCIITILDE" "KEY_YEN" "KEY_SECTION" "KEY_GLOBE" "KEY_KEYBOARD" "KEY_JIS_EISU" "KEY_BAR" "KEY_BRACERIGHT" "KEY_ASCIITILDE" "KEY_YEN" "KEY_SECTION" "KEY_GLOBE" "KEY_KEYBOARD" "KEY_JIS_EISU"
"KEY_JIS_KANA" "KEY_CODE_MASK" "KEY_MODIFIER_MASK" "KEY_MASK_CMD_OR_CTRL" "KEY_MASK_SHIFT" "KEY_MASK_ALT" "KEY_JIS_KANA" "KEY_CODE_MASK" "KEY_MODIFIER_MASK" "KEY_MASK_CMD_OR_CTRL" "KEY_MASK_SHIFT" "KEY_MASK_ALT"
"KEY_MASK_META" "KEY_MASK_CTRL" "KEY_MASK_KPAD" "KEY_MASK_GROUP_SWITCH" "MOUSE_BUTTON_NONE" "MOUSE_BUTTON_LEFT" "KEY_MASK_META" "KEY_MASK_CTRL" "KEY_MASK_KPAD" "KEY_MASK_GROUP_SWITCH" "MOUSE_BUTTON_NONE" "MOUSE_BUTTON_LEFT"
"MOUSE_BUTTON_RIGHT" "MOUSE_BUTTON_MIDDLE" "MOUSE_BUTTON_WHEEL_UP" "MOUSE_BUTTON_WHEEL_DOWN" "MOUSE_BUTTON_WHEEL_LEFT" "MOUSE_BUTTON_RIGHT" "MOUSE_BUTTON_MIDDLE" "MOUSE_BUTTON_WHEEL_UP" "MOUSE_BUTTON_WHEEL_DOWN" "MOUSE_BUTTON_WHEEL_LEFT"
"MOUSE_BUTTON_WHEEL_RIGHT" "MOUSE_BUTTON_XBUTTON1" "MOUSE_BUTTON_XBUTTON2" "MOUSE_BUTTON_MASK_LEFT" "MOUSE_BUTTON_WHEEL_RIGHT" "MOUSE_BUTTON_XBUTTON1" "MOUSE_BUTTON_XBUTTON2" "MOUSE_BUTTON_MASK_LEFT"
"MOUSE_BUTTON_MASK_RIGHT" "MOUSE_BUTTON_MASK_MIDDLE" "MOUSE_BUTTON_MASK_MB_XBUTTON1" "MOUSE_BUTTON_MASK_MB_XBUTTON2" "MOUSE_BUTTON_MASK_RIGHT" "MOUSE_BUTTON_MASK_MIDDLE" "MOUSE_BUTTON_MASK_MB_XBUTTON1" "MOUSE_BUTTON_MASK_MB_XBUTTON2"
"JOY_BUTTON_INVALID" "JOY_BUTTON_A" "JOY_BUTTON_B" "JOY_BUTTON_X" "JOY_BUTTON_Y" "JOY_BUTTON_BACK" "JOY_BUTTON_GUIDE" "JOY_BUTTON_INVALID" "JOY_BUTTON_A" "JOY_BUTTON_B" "JOY_BUTTON_X" "JOY_BUTTON_Y" "JOY_BUTTON_BACK" "JOY_BUTTON_GUIDE"
"JOY_BUTTON_START" "JOY_BUTTON_LEFT_STICK" "JOY_BUTTON_RIGHT_STICK" "JOY_BUTTON_LEFT_SHOULDER" "JOY_BUTTON_START" "JOY_BUTTON_LEFT_STICK" "JOY_BUTTON_RIGHT_STICK" "JOY_BUTTON_LEFT_SHOULDER"
"JOY_BUTTON_RIGHT_SHOULDER" "JOY_BUTTON_DPAD_UP" "JOY_BUTTON_DPAD_DOWN" "JOY_BUTTON_DPAD_LEFT" "JOY_BUTTON_DPAD_RIGHT" "JOY_BUTTON_RIGHT_SHOULDER" "JOY_BUTTON_DPAD_UP" "JOY_BUTTON_DPAD_DOWN" "JOY_BUTTON_DPAD_LEFT" "JOY_BUTTON_DPAD_RIGHT"
"JOY_BUTTON_MISC1" "JOY_BUTTON_PADDLE1" "JOY_BUTTON_PADDLE2" "JOY_BUTTON_PADDLE3" "JOY_BUTTON_PADDLE4" "JOY_BUTTON_MISC1" "JOY_BUTTON_PADDLE1" "JOY_BUTTON_PADDLE2" "JOY_BUTTON_PADDLE3" "JOY_BUTTON_PADDLE4"
"JOY_BUTTON_TOUCHPAD" "JOY_BUTTON_SDL_MAX" "JOY_BUTTON_MAX" "JOY_AXIS_INVALID" "JOY_AXIS_LEFT_X" "JOY_AXIS_LEFT_Y" "JOY_BUTTON_TOUCHPAD" "JOY_BUTTON_SDL_MAX" "JOY_BUTTON_MAX" "JOY_AXIS_INVALID" "JOY_AXIS_LEFT_X" "JOY_AXIS_LEFT_Y"
"JOY_AXIS_RIGHT_X" "JOY_AXIS_RIGHT_Y" "JOY_AXIS_TRIGGER_LEFT" "JOY_AXIS_TRIGGER_RIGHT" "JOY_AXIS_SDL_MAX" "JOY_AXIS_RIGHT_X" "JOY_AXIS_RIGHT_Y" "JOY_AXIS_TRIGGER_LEFT" "JOY_AXIS_TRIGGER_RIGHT" "JOY_AXIS_SDL_MAX"
"JOY_AXIS_MAX" "MIDI_MESSAGE_NONE" "MIDI_MESSAGE_NOTE_OFF" "MIDI_MESSAGE_NOTE_ON" "MIDI_MESSAGE_AFTERTOUCH" "JOY_AXIS_MAX" "MIDI_MESSAGE_NONE" "MIDI_MESSAGE_NOTE_OFF" "MIDI_MESSAGE_NOTE_ON" "MIDI_MESSAGE_AFTERTOUCH"
"MIDI_MESSAGE_CONTROL_CHANGE" "MIDI_MESSAGE_PROGRAM_CHANGE" "MIDI_MESSAGE_CHANNEL_PRESSURE" "MIDI_MESSAGE_PITCH_BEND" "MIDI_MESSAGE_CONTROL_CHANGE" "MIDI_MESSAGE_PROGRAM_CHANGE" "MIDI_MESSAGE_CHANNEL_PRESSURE" "MIDI_MESSAGE_PITCH_BEND"
"MIDI_MESSAGE_SYSTEM_EXCLUSIVE" "MIDI_MESSAGE_QUARTER_FRAME" "MIDI_MESSAGE_SONG_POSITION_POINTER" "MIDI_MESSAGE_SYSTEM_EXCLUSIVE" "MIDI_MESSAGE_QUARTER_FRAME" "MIDI_MESSAGE_SONG_POSITION_POINTER"
"MIDI_MESSAGE_SONG_SELECT" "MIDI_MESSAGE_TUNE_REQUEST" "MIDI_MESSAGE_TIMING_CLOCK" "MIDI_MESSAGE_START" "MIDI_MESSAGE_SONG_SELECT" "MIDI_MESSAGE_TUNE_REQUEST" "MIDI_MESSAGE_TIMING_CLOCK" "MIDI_MESSAGE_START"
"MIDI_MESSAGE_CONTINUE" "MIDI_MESSAGE_STOP" "MIDI_MESSAGE_ACTIVE_SENSING" "MIDI_MESSAGE_SYSTEM_RESET" "OK" "FAILED" "MIDI_MESSAGE_CONTINUE" "MIDI_MESSAGE_STOP" "MIDI_MESSAGE_ACTIVE_SENSING" "MIDI_MESSAGE_SYSTEM_RESET" "OK" "FAILED"
"ERR_UNAVAILABLE" "ERR_UNCONFIGURED" "ERR_UNAUTHORIZED" "ERR_PARAMETER_RANGE_ERROR" "ERR_OUT_OF_MEMORY" "ERR_UNAVAILABLE" "ERR_UNCONFIGURED" "ERR_UNAUTHORIZED" "ERR_PARAMETER_RANGE_ERROR" "ERR_OUT_OF_MEMORY"
"ERR_FILE_NOT_FOUND" "ERR_FILE_BAD_DRIVE" "ERR_FILE_BAD_PATH" "ERR_FILE_NO_PERMISSION" "ERR_FILE_ALREADY_IN_USE" "ERR_FILE_NOT_FOUND" "ERR_FILE_BAD_DRIVE" "ERR_FILE_BAD_PATH" "ERR_FILE_NO_PERMISSION" "ERR_FILE_ALREADY_IN_USE"
"ERR_FILE_CANT_OPEN" "ERR_FILE_CANT_WRITE" "ERR_FILE_CANT_READ" "ERR_FILE_UNRECOGNIZED" "ERR_FILE_CORRUPT" "ERR_FILE_CANT_OPEN" "ERR_FILE_CANT_WRITE" "ERR_FILE_CANT_READ" "ERR_FILE_UNRECOGNIZED" "ERR_FILE_CORRUPT"
"ERR_FILE_MISSING_DEPENDENCIES" "ERR_FILE_EOF" "ERR_CANT_OPEN" "ERR_CANT_CREATE" "ERR_QUERY_FAILED" "ERR_FILE_MISSING_DEPENDENCIES" "ERR_FILE_EOF" "ERR_CANT_OPEN" "ERR_CANT_CREATE" "ERR_QUERY_FAILED"
"ERR_ALREADY_IN_USE" "ERR_LOCKED" "ERR_TIMEOUT" "ERR_CANT_CONNECT" "ERR_CANT_RESOLVE" "ERR_CONNECTION_ERROR" "ERR_ALREADY_IN_USE" "ERR_LOCKED" "ERR_TIMEOUT" "ERR_CANT_CONNECT" "ERR_CANT_RESOLVE" "ERR_CONNECTION_ERROR"
"ERR_CANT_ACQUIRE_RESOURCE" "ERR_CANT_FORK" "ERR_INVALID_DATA" "ERR_INVALID_PARAMETER" "ERR_ALREADY_EXISTS" "ERR_CANT_ACQUIRE_RESOURCE" "ERR_CANT_FORK" "ERR_INVALID_DATA" "ERR_INVALID_PARAMETER" "ERR_ALREADY_EXISTS"
"ERR_DOES_NOT_EXIST" "ERR_DATABASE_CANT_READ" "ERR_DATABASE_CANT_WRITE" "ERR_COMPILATION_FAILED" "ERR_METHOD_NOT_FOUND" "ERR_DOES_NOT_EXIST" "ERR_DATABASE_CANT_READ" "ERR_DATABASE_CANT_WRITE" "ERR_COMPILATION_FAILED" "ERR_METHOD_NOT_FOUND"
"ERR_LINK_FAILED" "ERR_SCRIPT_FAILED" "ERR_CYCLIC_LINK" "ERR_INVALID_DECLARATION" "ERR_DUPLICATE_SYMBOL" "ERR_LINK_FAILED" "ERR_SCRIPT_FAILED" "ERR_CYCLIC_LINK" "ERR_INVALID_DECLARATION" "ERR_DUPLICATE_SYMBOL"
"ERR_PARSE_ERROR" "ERR_BUSY" "ERR_SKIP" "ERR_HELP" "ERR_BUG" "ERR_PRINTER_ON_FIRE" "PROPERTY_HINT_NONE" "ERR_PARSE_ERROR" "ERR_BUSY" "ERR_SKIP" "ERR_HELP" "ERR_BUG" "ERR_PRINTER_ON_FIRE" "PROPERTY_HINT_NONE"
"PROPERTY_HINT_RANGE" "PROPERTY_HINT_ENUM" "PROPERTY_HINT_ENUM_SUGGESTION" "PROPERTY_HINT_EXP_EASING" "PROPERTY_HINT_RANGE" "PROPERTY_HINT_ENUM" "PROPERTY_HINT_ENUM_SUGGESTION" "PROPERTY_HINT_EXP_EASING"
"PROPERTY_HINT_LINK" "PROPERTY_HINT_FLAGS" "PROPERTY_HINT_LAYERS_2D_RENDER" "PROPERTY_HINT_LAYERS_2D_PHYSICS" "PROPERTY_HINT_LINK" "PROPERTY_HINT_FLAGS" "PROPERTY_HINT_LAYERS_2D_RENDER" "PROPERTY_HINT_LAYERS_2D_PHYSICS"
"PROPERTY_HINT_LAYERS_2D_NAVIGATION" "PROPERTY_HINT_LAYERS_3D_RENDER" "PROPERTY_HINT_LAYERS_3D_PHYSICS" "PROPERTY_HINT_LAYERS_2D_NAVIGATION" "PROPERTY_HINT_LAYERS_3D_RENDER" "PROPERTY_HINT_LAYERS_3D_PHYSICS"
"PROPERTY_HINT_LAYERS_3D_NAVIGATION" "PROPERTY_HINT_FILE" "PROPERTY_HINT_DIR" "PROPERTY_HINT_GLOBAL_FILE" "PROPERTY_HINT_LAYERS_3D_NAVIGATION" "PROPERTY_HINT_FILE" "PROPERTY_HINT_DIR" "PROPERTY_HINT_GLOBAL_FILE"
"PROPERTY_HINT_GLOBAL_DIR" "PROPERTY_HINT_RESOURCE_TYPE" "PROPERTY_HINT_MULTILINE_TEXT" "PROPERTY_HINT_EXPRESSION" "PROPERTY_HINT_GLOBAL_DIR" "PROPERTY_HINT_RESOURCE_TYPE" "PROPERTY_HINT_MULTILINE_TEXT" "PROPERTY_HINT_EXPRESSION"
"PROPERTY_HINT_PLACEHOLDER_TEXT" "PROPERTY_HINT_COLOR_NO_ALPHA" "PROPERTY_HINT_OBJECT_ID" "PROPERTY_HINT_TYPE_STRING" "PROPERTY_HINT_PLACEHOLDER_TEXT" "PROPERTY_HINT_COLOR_NO_ALPHA" "PROPERTY_HINT_OBJECT_ID" "PROPERTY_HINT_TYPE_STRING"
"PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE" "PROPERTY_HINT_OBJECT_TOO_BIG" "PROPERTY_HINT_NODE_PATH_VALID_TYPES" "PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE" "PROPERTY_HINT_OBJECT_TOO_BIG" "PROPERTY_HINT_NODE_PATH_VALID_TYPES"
"PROPERTY_HINT_SAVE_FILE" "PROPERTY_HINT_GLOBAL_SAVE_FILE" "PROPERTY_HINT_INT_IS_OBJECTID" "PROPERTY_HINT_SAVE_FILE" "PROPERTY_HINT_GLOBAL_SAVE_FILE" "PROPERTY_HINT_INT_IS_OBJECTID"
"PROPERTY_HINT_INT_IS_POINTER" "PROPERTY_HINT_ARRAY_TYPE" "PROPERTY_HINT_LOCALE_ID" "PROPERTY_HINT_LOCALIZABLE_STRING" "PROPERTY_HINT_INT_IS_POINTER" "PROPERTY_HINT_ARRAY_TYPE" "PROPERTY_HINT_LOCALE_ID" "PROPERTY_HINT_LOCALIZABLE_STRING"
"PROPERTY_HINT_NODE_TYPE" "PROPERTY_HINT_HIDE_QUATERNION_EDIT" "PROPERTY_HINT_PASSWORD" "PROPERTY_HINT_MAX" "PROPERTY_HINT_NODE_TYPE" "PROPERTY_HINT_HIDE_QUATERNION_EDIT" "PROPERTY_HINT_PASSWORD" "PROPERTY_HINT_MAX"
"PROPERTY_USAGE_NONE" "PROPERTY_USAGE_STORAGE" "PROPERTY_USAGE_EDITOR" "PROPERTY_USAGE_INTERNAL" "PROPERTY_USAGE_NONE" "PROPERTY_USAGE_STORAGE" "PROPERTY_USAGE_EDITOR" "PROPERTY_USAGE_INTERNAL"
"PROPERTY_USAGE_CHECKABLE" "PROPERTY_USAGE_CHECKED" "PROPERTY_USAGE_GROUP" "PROPERTY_USAGE_CATEGORY" "PROPERTY_USAGE_CHECKABLE" "PROPERTY_USAGE_CHECKED" "PROPERTY_USAGE_GROUP" "PROPERTY_USAGE_CATEGORY"
"PROPERTY_USAGE_SUBGROUP" "PROPERTY_USAGE_CLASS_IS_BITFIELD" "PROPERTY_USAGE_NO_INSTANCE_STATE" "PROPERTY_USAGE_SUBGROUP" "PROPERTY_USAGE_CLASS_IS_BITFIELD" "PROPERTY_USAGE_NO_INSTANCE_STATE"
"PROPERTY_USAGE_RESTART_IF_CHANGED" "PROPERTY_USAGE_SCRIPT_VARIABLE" "PROPERTY_USAGE_STORE_IF_NULL" "PROPERTY_USAGE_RESTART_IF_CHANGED" "PROPERTY_USAGE_SCRIPT_VARIABLE" "PROPERTY_USAGE_STORE_IF_NULL"
"PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED" "PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE" "PROPERTY_USAGE_CLASS_IS_ENUM" "PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED" "PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE" "PROPERTY_USAGE_CLASS_IS_ENUM"
"PROPERTY_USAGE_NIL_IS_VARIANT" "PROPERTY_USAGE_ARRAY" "PROPERTY_USAGE_ALWAYS_DUPLICATE" "PROPERTY_USAGE_NIL_IS_VARIANT" "PROPERTY_USAGE_ARRAY" "PROPERTY_USAGE_ALWAYS_DUPLICATE"
"PROPERTY_USAGE_NEVER_DUPLICATE" "PROPERTY_USAGE_HIGH_END_GFX" "PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT" "PROPERTY_USAGE_NEVER_DUPLICATE" "PROPERTY_USAGE_HIGH_END_GFX" "PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT"
"PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT" "PROPERTY_USAGE_KEYING_INCREMENTS" "PROPERTY_USAGE_DEFERRED_SET_RESOURCE" "PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT" "PROPERTY_USAGE_KEYING_INCREMENTS" "PROPERTY_USAGE_DEFERRED_SET_RESOURCE"
"PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT" "PROPERTY_USAGE_EDITOR_BASIC_SETTING" "PROPERTY_USAGE_READ_ONLY" "PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT" "PROPERTY_USAGE_EDITOR_BASIC_SETTING" "PROPERTY_USAGE_READ_ONLY"
"PROPERTY_USAGE_DEFAULT" "PROPERTY_USAGE_NO_EDITOR" "METHOD_FLAG_NORMAL" "METHOD_FLAG_EDITOR" "METHOD_FLAG_CONST" "PROPERTY_USAGE_DEFAULT" "PROPERTY_USAGE_NO_EDITOR" "METHOD_FLAG_NORMAL" "METHOD_FLAG_EDITOR" "METHOD_FLAG_CONST"
"METHOD_FLAG_VIRTUAL" "METHOD_FLAG_VARARG" "METHOD_FLAG_STATIC" "METHOD_FLAG_OBJECT_CORE" "METHOD_FLAGS_DEFAULT" "METHOD_FLAG_VIRTUAL" "METHOD_FLAG_VARARG" "METHOD_FLAG_STATIC" "METHOD_FLAG_OBJECT_CORE" "METHOD_FLAGS_DEFAULT"
"TYPE_NIL" "TYPE_BOOL" "TYPE_INT" "TYPE_FLOAT" "TYPE_STRING" "TYPE_VECTOR2" "TYPE_VECTOR2I" "TYPE_RECT2" "TYPE_RECT2I" "TYPE_NIL" "TYPE_BOOL" "TYPE_INT" "TYPE_FLOAT" "TYPE_STRING" "TYPE_VECTOR2" "TYPE_VECTOR2I" "TYPE_RECT2" "TYPE_RECT2I"
"TYPE_VECTOR3" "TYPE_VECTOR3I" "TYPE_TRANSFORM2D" "TYPE_VECTOR4" "TYPE_VECTOR4I" "TYPE_PLANE" "TYPE_QUATERNION" "TYPE_VECTOR3" "TYPE_VECTOR3I" "TYPE_TRANSFORM2D" "TYPE_VECTOR4" "TYPE_VECTOR4I" "TYPE_PLANE" "TYPE_QUATERNION"
"TYPE_AABB" "TYPE_BASIS" "TYPE_TRANSFORM3D" "TYPE_PROJECTION" "TYPE_COLOR" "TYPE_STRING_NAME" "TYPE_NODE_PATH" "TYPE_AABB" "TYPE_BASIS" "TYPE_TRANSFORM3D" "TYPE_PROJECTION" "TYPE_COLOR" "TYPE_STRING_NAME" "TYPE_NODE_PATH"
"TYPE_RID" "TYPE_OBJECT" "TYPE_CALLABLE" "TYPE_SIGNAL" "TYPE_DICTIONARY" "TYPE_ARRAY" "TYPE_PACKED_BYTE_ARRAY" "TYPE_RID" "TYPE_OBJECT" "TYPE_CALLABLE" "TYPE_SIGNAL" "TYPE_DICTIONARY" "TYPE_ARRAY" "TYPE_PACKED_BYTE_ARRAY"
"TYPE_PACKED_INT32_ARRAY" "TYPE_PACKED_INT64_ARRAY" "TYPE_PACKED_FLOAT32_ARRAY" "TYPE_PACKED_FLOAT64_ARRAY" "TYPE_PACKED_INT32_ARRAY" "TYPE_PACKED_INT64_ARRAY" "TYPE_PACKED_FLOAT32_ARRAY" "TYPE_PACKED_FLOAT64_ARRAY"
"TYPE_PACKED_STRING_ARRAY" "TYPE_PACKED_VECTOR2_ARRAY" "TYPE_PACKED_VECTOR3_ARRAY" "TYPE_PACKED_COLOR_ARRAY" "TYPE_MAX" "TYPE_PACKED_STRING_ARRAY" "TYPE_PACKED_VECTOR2_ARRAY" "TYPE_PACKED_VECTOR3_ARRAY" "TYPE_PACKED_COLOR_ARRAY" "TYPE_MAX"
"OP_EQUAL" "OP_NOT_EQUAL" "OP_LESS" "OP_LESS_EQUAL" "OP_GREATER" "OP_GREATER_EQUAL" "OP_ADD" "OP_SUBTRACT" "OP_EQUAL" "OP_NOT_EQUAL" "OP_LESS" "OP_LESS_EQUAL" "OP_GREATER" "OP_GREATER_EQUAL" "OP_ADD" "OP_SUBTRACT"
"OP_MULTIPLY" "OP_DIVIDE" "OP_NEGATE" "OP_POSITIVE" "OP_MODULE" "OP_POWER" "OP_SHIFT_LEFT" "OP_SHIFT_RIGHT" "OP_MULTIPLY" "OP_DIVIDE" "OP_NEGATE" "OP_POSITIVE" "OP_MODULE" "OP_POWER" "OP_SHIFT_LEFT" "OP_SHIFT_RIGHT"
"OP_BIT_AND" "OP_BIT_OR" "OP_BIT_XOR" "OP_BIT_NEGATE" "OP_AND" "OP_OR" "OP_XOR" "OP_NOT" "OP_IN" "OP_MAX" "OP_BIT_AND" "OP_BIT_OR" "OP_BIT_XOR" "OP_BIT_NEGATE" "OP_AND" "OP_OR" "OP_XOR" "OP_NOT" "OP_IN" "OP_MAX"))
))

View file

@ -1,11 +1,11 @@
( (
(function_declaration (function_declaration
name: (identifier) @local.definition.function) ;@function name: (identifier) @local.definition.function) ; @function
) )
( (
(method_declaration (method_declaration
name: (field_identifier) @local.definition.method); @function.method name: (field_identifier) @local.definition.method) ; @function.method
) )
(short_var_declaration (short_var_declaration

View file

@ -58,7 +58,7 @@
[ [
(quoted_template_start) ; " (quoted_template_start) ; "
(quoted_template_end); " (quoted_template_end) ; "
(template_literal) ; non-interpolation/directive content (template_literal) ; non-interpolation/directive content
] @string ] @string

View file

@ -92,134 +92,134 @@
((type_identifier) @type.builtin ((type_identifier) @type.builtin
(#lua-match? @type.builtin "^RNGState")) (#lua-match? @type.builtin "^RNGState"))
; format-ignore
(call_expression (call_expression
function: (identifier) @function.builtin function: (identifier) @function.builtin
(#any-of? @function.builtin (#any-of? @function.builtin
"abs" "abs"
"acos" "acos"
"all" "all"
"alloca" "alloca"
"and" "and"
"any" "any"
"aos_to_soa2" "aos_to_soa2"
"aos_to_soa3" "aos_to_soa3"
"aos_to_soa4" "aos_to_soa4"
"asin" "asin"
"assert" "assert"
"assume" "assume"
"atan" "atan"
"atan2" "atan2"
"atomic_add_global" "atomic_add_global"
"atomic_add_local" "atomic_add_local"
"atomic_and_global" "atomic_and_global"
"atomic_and_local" "atomic_and_local"
"atomic_compare_exchange_global" "atomic_compare_exchange_global"
"atomic_compare_exchange_local" "atomic_compare_exchange_local"
"atomic_max_global" "atomic_max_global"
"atomic_max_local" "atomic_max_local"
"atomic_min_global" "atomic_min_global"
"atomic_min_local" "atomic_min_local"
"atomic_or_global" "atomic_or_global"
"atomic_or_local" "atomic_or_local"
"atomic_subtract_global" "atomic_subtract_global"
"atomic_subtract_local" "atomic_subtract_local"
"atomic_swap_global" "atomic_swap_global"
"atomic_swap_local" "atomic_swap_local"
"atomic_xor_global" "atomic_xor_global"
"atomic_xor_local" "atomic_xor_local"
"avg_down" "avg_down"
"avg_up" "avg_up"
"broadcast" "broadcast"
"ceil" "ceil"
"clamp" "clamp"
"clock" "clock"
"cos" "cos"
"count_leading_zeros" "count_leading_zeros"
"count_trailing_zeros" "count_trailing_zeros"
"doublebits" "doublebits"
"exclusive_scan_add" "exclusive_scan_add"
"exclusive_scan_and" "exclusive_scan_and"
"exclusive_scan_or" "exclusive_scan_or"
"exp" "exp"
"extract" "extract"
"fastmath" "fastmath"
"float16bits" "float16bits"
"floatbits" "floatbits"
"float_to_half" "float_to_half"
"float_to_half_fast" "float_to_half_fast"
"float_to_srgb8" "float_to_srgb8"
"floor" "floor"
"frandom" "frandom"
"frexp" "frexp"
"half_to_float" "half_to_float"
"half_to_float_fast" "half_to_float_fast"
"insert" "insert"
"intbits" "intbits"
"invoke_sycl" "invoke_sycl"
"isnan" "isnan"
"ISPCAlloc" "ISPCAlloc"
"ISPCLaunch" "ISPCLaunch"
"ISPCSync" "ISPCSync"
"lanemask" "lanemask"
"ldexp" "ldexp"
"log" "log"
"max" "max"
"memcpy" "memcpy"
"memcpy64" "memcpy64"
"memmove" "memmove"
"memmove64" "memmove64"
"memory_barrier" "memory_barrier"
"memset" "memset"
"memset64" "memset64"
"min" "min"
"none" "none"
"num_cores" "num_cores"
"or" "or"
"packed_load_active" "packed_load_active"
"packed_store_active" "packed_store_active"
"packed_store_active2" "packed_store_active2"
"packmask" "packmask"
"popcnt" "popcnt"
"pow" "pow"
"prefetch_l1" "prefetch_l1"
"prefetch_l2" "prefetch_l2"
"prefetch_l3" "prefetch_l3"
"prefetch_nt" "prefetch_nt"
"prefetchw_l1" "prefetchw_l1"
"prefetchw_l2" "prefetchw_l2"
"prefetchw_l3" "prefetchw_l3"
"print" "print"
"random" "random"
"rcp" "rcp"
"rcp_fast" "rcp_fast"
"rdrand" "rdrand"
"reduce_add" "reduce_add"
"reduce_equal" "reduce_equal"
"reduce_max" "reduce_max"
"reduce_min" "reduce_min"
"rotate" "rotate"
"round" "round"
"rsqrt" "rsqrt"
"rsqrt_fast" "rsqrt_fast"
"saturating_add" "saturating_add"
"saturating_div" "saturating_div"
"saturating_mul" "saturating_mul"
"saturating_sub" "saturating_sub"
"seed_rng" "seed_rng"
"select" "select"
"shift" "shift"
"shuffle" "shuffle"
"signbits" "signbits"
"sign_extend" "sign_extend"
"sin" "sin"
"sincos" "sincos"
"soa_to_aos2" "soa_to_aos2"
"soa_to_aos3" "soa_to_aos3"
"soa_to_aos4" "soa_to_aos4"
"sqrt" "sqrt"
"streaming_load" "streaming_load"
"streaming_load_uniform" "streaming_load_uniform"
"streaming_store" "streaming_store"
"tan" "tan"
"trunc" "trunc"))
))

View file

@ -57,51 +57,53 @@
;; (print name)))) ;; (print name))))
((sym_lit) @function.macro ((sym_lit) @function.macro
(#any-of? @function.macro ; format-ignore
;; special forms (#any-of? @function.macro
"break" ; special forms
"def" "do" "break"
"fn" "def" "do"
"if" "fn"
"quasiquote" "quote" "if"
"set" "splice" "quasiquote" "quote"
"unquote" "upscope" "set" "splice"
"var" "unquote" "upscope"
"while" "var"
;; macros "while"
"%=" "*=" ; macros
"++" "+=" "%=" "*="
"--" "-=" "++" "+="
"->" "->>" "-?>" "-?>>" "--" "-="
"/=" "->" "->>" "-?>" "-?>>"
"and" "as->" "as-macro" "as?->" "assert" "/="
"case" "catseq" "chr" "comment" "compif" "comptime" "compwhen" "and" "as->" "as-macro" "as?->" "assert"
"cond" "coro" "case" "catseq" "chr" "comment" "compif" "comptime" "compwhen"
"def-" "default" "defdyn" "defer" "defmacro" "defmacro-" "cond" "coro"
"defn" "defn-" "def-" "default" "defdyn" "defer" "defmacro" "defmacro-"
"delay" "doc" "defn" "defn-"
"each" "eachk" "eachp" "delay" "doc"
"eachy" ;; XXX: obsolete "each" "eachk" "eachp"
"edefer" "eachy"
"ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread" ; XXX: obsolete
"ev/with-deadline" "edefer"
"ffi/defbind" "ev/do-thread" "ev/gather" "ev/spawn" "ev/spawn-thread"
"fiber-fn" "ev/with-deadline"
"for" "forever" "forv" "ffi/defbind"
"generate" "fiber-fn"
"if-let" "if-not" "if-with" "import" "for" "forever" "forv"
"juxt" "generate"
"label" "let" "loop" "if-let" "if-not" "if-with" "import"
"match" "juxt"
"or" "label" "let" "loop"
"prompt" "protect" "match"
"repeat" "or"
"seq" "short-fn" "prompt" "protect"
"tabseq" "toggle" "tracev" "try" "repeat"
"unless" "use" "seq" "short-fn"
"var-" "varfn" "tabseq" "toggle" "tracev" "try"
"when" "when-let" "when-with" "unless" "use"
"with" "with-dyns" "with-syms" "with-vars")) "var-" "varfn"
"when" "when-let" "when-with"
"with" "with-dyns" "with-syms" "with-vars"))
;; All builtin functions ;; All builtin functions
;; ;;
@ -113,189 +115,190 @@
;; (print name)))) ;; (print name))))
((sym_lit) @function.builtin ((sym_lit) @function.builtin
(#any-of? @function.builtin ; format-ignore
"%" "*" "+" "-" "/" (#any-of? @function.builtin
"<" "<=" "=" ">" ">=" "%" "*" "+" "-" "/"
;; debugging -- start janet with -d and use (debug) to see these "<" "<=" "=" ">" ">="
".break" ".breakall" ".bytecode" ; debugging -- start janet with -d and use (debug) to see these
".clear" ".clearall" ".break" ".breakall" ".bytecode"
".disasm" ".clear" ".clearall"
".fiber" ".fn" ".frame" ".disasm"
".locals" ".fiber" ".fn" ".frame"
".next" ".nextc" ".locals"
".ppasm" ".next" ".nextc"
".signal" ".slot" ".slots" ".source" ".stack" ".step" ".ppasm"
;; back to regularly scheduled program ".signal" ".slot" ".slots" ".source" ".stack" ".step"
"abstract?" "accumulate" "accumulate2" "all" "all-bindings" ; back to regularly scheduled program
"all-dynamics" "any?" "apply" "abstract?" "accumulate" "accumulate2" "all" "all-bindings"
"array" "all-dynamics" "any?" "apply"
"array/clear" "array/concat" "array/ensure" "array/fill" "array"
"array/insert" "array/new" "array/new-filled" "array/peek" "array/clear" "array/concat" "array/ensure" "array/fill"
"array/pop" "array/push" "array/remove" "array/slice" "array/trim" "array/insert" "array/new" "array/new-filled" "array/peek"
"array?" "array/pop" "array/push" "array/remove" "array/slice" "array/trim"
"asm" "array?"
"bad-compile" "bad-parse" "asm"
"band" "blshift" "bnot" "bad-compile" "bad-parse"
"boolean?" "band" "blshift" "bnot"
"bor" "brshift" "brushift" "boolean?"
"buffer" "bor" "brshift" "brushift"
"buffer/bit" "buffer/bit-clear" "buffer/bit-set" "buffer"
"buffer/bit-toggle" "buffer/blit" "buffer/clear" "buffer/fill" "buffer/bit" "buffer/bit-clear" "buffer/bit-set"
"buffer/format" "buffer/new" "buffer/new-filled" "buffer/popn" "buffer/bit-toggle" "buffer/blit" "buffer/clear" "buffer/fill"
"buffer/push" "buffer/push-at" "buffer/push-byte" "buffer/format" "buffer/new" "buffer/new-filled" "buffer/popn"
"buffer/push-string" "buffer/push-word" "buffer/slice" "buffer/push" "buffer/push-at" "buffer/push-byte"
"buffer/trim" "buffer/push-string" "buffer/push-word" "buffer/slice"
"buffer?" "buffer/trim"
"bxor" "buffer?"
"bytes?" "bxor"
"cancel" "bytes?"
"cfunction?" "cancel"
"cli-main" "cfunction?"
"cmp" "comp" "compare" "compare<" "compare<=" "compare=" "cli-main"
"compare>" "compare>=" "cmp" "comp" "compare" "compare<" "compare<=" "compare="
"compile" "complement" "count" "curenv" "compare>" "compare>="
"debug" "compile" "complement" "count" "curenv"
"debug/arg-stack" "debug/break" "debug/fbreak" "debug/lineage" "debug"
"debug/stack" "debug/stacktrace" "debug/step" "debug/unbreak" "debug/arg-stack" "debug/break" "debug/fbreak" "debug/lineage"
"debug/unfbreak" "debug/stack" "debug/stacktrace" "debug/step" "debug/unbreak"
"debugger" "debugger-on-status" "debug/unfbreak"
"dec" "deep-not=" "deep=" "defglobal" "describe" "debugger" "debugger-on-status"
"dictionary?" "dec" "deep-not=" "deep=" "defglobal" "describe"
"disasm" "distinct" "div" "doc*" "doc-format" "doc-of" "dofile" "dictionary?"
"drop" "drop-until" "drop-while" "dyn" "disasm" "distinct" "div" "doc*" "doc-format" "doc-of" "dofile"
"eflush" "empty?" "env-lookup" "drop" "drop-until" "drop-while" "dyn"
"eprin" "eprinf" "eprint" "eprintf" "error" "errorf" "eflush" "empty?" "env-lookup"
"ev/acquire-lock" "ev/acquire-rlock" "ev/acquire-wlock" "eprin" "eprinf" "eprint" "eprintf" "error" "errorf"
"ev/all-tasks" "ev/call" "ev/cancel" "ev/capacity" "ev/chan" "ev/acquire-lock" "ev/acquire-rlock" "ev/acquire-wlock"
"ev/chan-close" "ev/chunk" "ev/close" "ev/count" "ev/deadline" "ev/all-tasks" "ev/call" "ev/cancel" "ev/capacity" "ev/chan"
"ev/full" "ev/give" "ev/give-supervisor" "ev/go" "ev/lock" "ev/chan-close" "ev/chunk" "ev/close" "ev/count" "ev/deadline"
"ev/read" "ev/release-lock" "ev/release-rlock" "ev/full" "ev/give" "ev/give-supervisor" "ev/go" "ev/lock"
"ev/release-wlock" "ev/rselect" "ev/rwlock" "ev/select" "ev/read" "ev/release-lock" "ev/release-rlock"
"ev/sleep" "ev/take" "ev/thread" "ev/thread-chan" "ev/write" "ev/release-wlock" "ev/rselect" "ev/rwlock" "ev/select"
"eval" "eval-string" "even?" "every?" "extreme" "ev/sleep" "ev/take" "ev/thread" "ev/thread-chan" "ev/write"
"false?" "eval" "eval-string" "even?" "every?" "extreme"
"ffi/align" "ffi/call" "ffi/calling-convetions" "ffi/close" "false?"
"ffi/context" "ffi/free" "ffi/jitfn" "ffi/lookup" "ffi/malloc" "ffi/align" "ffi/call" "ffi/calling-convetions" "ffi/close"
"ffi/native" "ffi/pointer-buffer" "ffi/pointer-cfunction" "ffi/context" "ffi/free" "ffi/jitfn" "ffi/lookup" "ffi/malloc"
"ffi/read" "ffi/signature" "ffi/size" "ffi/struct" "ffi/native" "ffi/pointer-buffer" "ffi/pointer-cfunction"
"ffi/trampoline" "ffi/write" "ffi/read" "ffi/signature" "ffi/size" "ffi/struct"
"fiber/can-resume?" "fiber/current" "fiber/getenv" "ffi/trampoline" "ffi/write"
"fiber/last-value" "fiber/maxstack" "fiber/new" "fiber/root" "fiber/can-resume?" "fiber/current" "fiber/getenv"
"fiber/setenv" "fiber/setmaxstack" "fiber/status" "fiber/last-value" "fiber/maxstack" "fiber/new" "fiber/root"
"fiber?" "fiber/setenv" "fiber/setmaxstack" "fiber/status"
"file/close" "file/flush" "file/lines" "file/open" "file/read" "fiber?"
"file/seek" "file/tell" "file/temp" "file/write" "file/close" "file/flush" "file/lines" "file/open" "file/read"
"filter" "find" "find-index" "first" "flatten" "flatten-into" "file/seek" "file/tell" "file/temp" "file/write"
"flush" "flycheck" "freeze" "frequencies" "from-pairs" "filter" "find" "find-index" "first" "flatten" "flatten-into"
"function?" "flush" "flycheck" "freeze" "frequencies" "from-pairs"
"gccollect" "gcinterval" "gcsetinterval" "function?"
"gensym" "get" "get-in" "getline" "getproto" "group-by" "gccollect" "gcinterval" "gcsetinterval"
"has-key?" "has-value?" "hash" "gensym" "get" "get-in" "getline" "getproto" "group-by"
"idempotent?" "identity" "import*" "in" "inc" "index-of" "has-key?" "has-value?" "hash"
"indexed?" "idempotent?" "identity" "import*" "in" "inc" "index-of"
"int/s64" "int/to-bytes" "int/to-number" "int/u64" "indexed?"
"int?" "int/s64" "int/to-bytes" "int/to-number" "int/u64"
"interleave" "interpose" "invert" "int?"
"juxt*" "interleave" "interpose" "invert"
"keep" "keep-syntax" "keep-syntax!" "keys" "juxt*"
"keyword" "keep" "keep-syntax" "keep-syntax!" "keys"
"keyword/slice" "keyword"
"keyword?" "keyword/slice"
"kvs" "keyword?"
"last" "length" "load-image" "kvs"
"macex" "macex1" "maclintf" "last" "length" "load-image"
"make-env" "make-image" "map" "mapcat" "marshal" "macex" "macex1" "maclintf"
"math/abs" "math/acos" "math/acosh" "math/asin" "math/asinh" "make-env" "make-image" "map" "mapcat" "marshal"
"math/atan" "math/atan2" "math/atanh" "math/cbrt" "math/ceil" "math/abs" "math/acos" "math/acosh" "math/asin" "math/asinh"
"math/cos" "math/cosh" "math/erf" "math/erfc" "math/exp" "math/atan" "math/atan2" "math/atanh" "math/cbrt" "math/ceil"
"math/exp2" "math/expm1" "math/floor" "math/gamma" "math/gcd" "math/cos" "math/cosh" "math/erf" "math/erfc" "math/exp"
"math/hypot" "math/lcm" "math/log" "math/log-gamma" "math/exp2" "math/expm1" "math/floor" "math/gamma" "math/gcd"
"math/log10" "math/log1p" "math/log2" "math/next" "math/pow" "math/hypot" "math/lcm" "math/log" "math/log-gamma"
"math/random" "math/rng" "math/rng-buffer" "math/rng-int" "math/log10" "math/log1p" "math/log2" "math/next" "math/pow"
"math/rng-uniform" "math/round" "math/seedrandom" "math/sin" "math/random" "math/rng" "math/rng-buffer" "math/rng-int"
"math/sinh" "math/sqrt" "math/tan" "math/tanh" "math/trunc" "math/rng-uniform" "math/round" "math/seedrandom" "math/sin"
"max" "max-of" "mean" "memcmp" "merge" "merge-into" "math/sinh" "math/sqrt" "math/tan" "math/tanh" "math/trunc"
"merge-module" "min" "min-of" "mod" "max" "max-of" "mean" "memcmp" "merge" "merge-into"
"module/add-paths" "module/expand-path" "module/find" "merge-module" "min" "min-of" "mod"
"module/value" "module/add-paths" "module/expand-path" "module/find"
"nan?" "nat?" "native" "neg?" "module/value"
"net/accept" "net/accept-loop" "net/address" "nan?" "nat?" "native" "neg?"
"net/address-unpack" "net/chunk" "net/close" "net/connect" "net/accept" "net/accept-loop" "net/address"
"net/flush" "net/listen" "net/localname" "net/peername" "net/address-unpack" "net/chunk" "net/close" "net/connect"
"net/read" "net/recv-from" "net/send-to" "net/server" "net/flush" "net/listen" "net/localname" "net/peername"
"net/setsockopt" "net/shutdown" "net/write" "net/read" "net/recv-from" "net/send-to" "net/server"
"next" "net/setsockopt" "net/shutdown" "net/write"
"nil?" "next"
"not" "not=" "nil?"
"number?" "not" "not="
"odd?" "one?" "number?"
"os/arch" "os/cd" "os/chmod" "os/clock" "os/compiler" "odd?" "one?"
"os/cpu-count" "os/cryptorand" "os/cwd" "os/date" "os/dir" "os/arch" "os/cd" "os/chmod" "os/clock" "os/compiler"
"os/environ" "os/execute" "os/exit" "os/getenv" "os/link" "os/cpu-count" "os/cryptorand" "os/cwd" "os/date" "os/dir"
"os/lstat" "os/mkdir" "os/mktime" "os/open" "os/perm-int" "os/environ" "os/execute" "os/exit" "os/getenv" "os/link"
"os/perm-string" "os/pipe" "os/proc-close" "os/proc-kill" "os/lstat" "os/mkdir" "os/mktime" "os/open" "os/perm-int"
"os/proc-wait" "os/readlink" "os/realpath" "os/rename" "os/perm-string" "os/pipe" "os/proc-close" "os/proc-kill"
"os/rm" "os/rmdir" "os/setenv" "os/shell" "os/sleep" "os/proc-wait" "os/readlink" "os/realpath" "os/rename"
"os/spawn" "os/stat" "os/symlink" "os/time" "os/touch" "os/rm" "os/rmdir" "os/setenv" "os/shell" "os/sleep"
"os/umask" "os/which" "os/spawn" "os/stat" "os/symlink" "os/time" "os/touch"
"pairs" "os/umask" "os/which"
"parse" "parse-all" "pairs"
"parser/byte" "parser/clone" "parser/consume" "parser/eof" "parse" "parse-all"
"parser/error" "parser/flush" "parser/has-more" "parser/byte" "parser/clone" "parser/consume" "parser/eof"
"parser/insert" "parser/new" "parser/produce" "parser/state" "parser/error" "parser/flush" "parser/has-more"
"parser/status" "parser/where" "parser/insert" "parser/new" "parser/produce" "parser/state"
"partial" "partition" "partition-by" "parser/status" "parser/where"
"peg/compile" "peg/find" "peg/find-all" "peg/match" "partial" "partition" "partition-by"
"peg/replace" "peg/replace-all" "peg/compile" "peg/find" "peg/find-all" "peg/match"
"pos?" "postwalk" "pp" "prewalk" "peg/replace" "peg/replace-all"
"prin" "prinf" "print" "printf" "pos?" "postwalk" "pp" "prewalk"
"product" "propagate" "put" "put-in" "prin" "prinf" "print" "printf"
"quit" "product" "propagate" "put" "put-in"
"range" "reduce" "reduce2" "repl" "require" "resume" "quit"
"return" "reverse" "reverse!" "run-context" "range" "reduce" "reduce2" "repl" "require" "resume"
"sandbox" "scan-number" "setdyn" "signal" "slice" "slurp" "return" "reverse" "reverse!" "run-context"
"some" "sort" "sort-by" "sorted" "sorted-by" "spit" "sandbox" "scan-number" "setdyn" "signal" "slice" "slurp"
"string" "some" "sort" "sort-by" "sorted" "sorted-by" "spit"
"string/ascii-lower" "string/ascii-upper" "string/bytes" "string"
"string/check-set" "string/find" "string/find-all" "string/ascii-lower" "string/ascii-upper" "string/bytes"
"string/format" "string/from-bytes" "string/has-prefix?" "string/check-set" "string/find" "string/find-all"
"string/has-suffix?" "string/join" "string/repeat" "string/format" "string/from-bytes" "string/has-prefix?"
"string/replace" "string/replace-all" "string/reverse" "string/has-suffix?" "string/join" "string/repeat"
"string/slice" "string/split" "string/trim" "string/triml" "string/replace" "string/replace-all" "string/reverse"
"string/trimr" "string/slice" "string/split" "string/trim" "string/triml"
"string?" "string/trimr"
"struct" "string?"
"struct/getproto" "struct/proto-flatten" "struct/to-table" "struct"
"struct/with-proto" "struct/getproto" "struct/proto-flatten" "struct/to-table"
"struct?" "struct/with-proto"
"sum" "struct?"
"symbol" "sum"
"symbol/slice" "symbol"
"symbol?" "symbol/slice"
"table" "symbol?"
"table/clear" "table/clone" "table/getproto" "table/new" "table"
"table/proto-flatten" "table/rawget" "table/setproto" "table/clear" "table/clone" "table/getproto" "table/new"
"table/to-struct" "table/proto-flatten" "table/rawget" "table/setproto"
"table?" "table/to-struct"
"take" "take-until" "take-while" "table?"
;; XXX: obsolete "take" "take-until" "take-while"
"tarray/buffer" "tarray/copy-bytes" "tarray/length" ; XXX: obsolete
"tarray/new" "tarray/properties" "tarray/slice" "tarray/buffer" "tarray/copy-bytes" "tarray/length"
"tarray/swap-bytes" "tarray/new" "tarray/properties" "tarray/slice"
;; XXX: obsolete "tarray/swap-bytes"
"thread/close" "thread/current" "thread/exit" "thread/new" ; XXX: obsolete
"thread/receive" "thread/send" "thread/close" "thread/current" "thread/exit" "thread/new"
;; end of obsolete "thread/receive" "thread/send"
"trace" "true?" "truthy?" ; end of obsolete
"tuple" "trace" "true?" "truthy?"
"tuple/brackets" "tuple/setmap" "tuple/slice" "tuple"
"tuple/sourcemap" "tuple/type" "tuple/brackets" "tuple/setmap" "tuple/slice"
"tuple?" "tuple/sourcemap" "tuple/type"
"type" "tuple?"
"unmarshal" "untrace" "update" "update-in" "type"
"values" "varglobal" "unmarshal" "untrace" "update" "update-in"
"walk" "warn-compile" "values" "varglobal"
"xprin" "xprinf" "xprint" "xprintf" "walk" "warn-compile"
"yield" "xprin" "xprinf" "xprint" "xprintf"
"zero?" "zipcoll")) "yield"
"zero?" "zipcoll"))

View file

@ -1,3 +1,4 @@
; format-ignore
[ [
; ... refers to the portion that this indent query will have effects on ; ... refers to the portion that this indent query will have effects on
(class_body) ; { ... } of `class X` (class_body) ; { ... } of `class X`

View file

@ -70,6 +70,7 @@
name: (identifier) @local.definition.parameter) name: (identifier) @local.definition.parameter)
(catch_formal_parameter (catch_formal_parameter
name: (identifier) @local.definition.parameter) name: (identifier) @local.definition.parameter)
(inferred_parameters (identifier) @local.definition.parameter) ; (x,y) -> ... (inferred_parameters (identifier) @local.definition.parameter) ; (x,y) -> ...
(lambda_expression (lambda_expression
parameters: (identifier) @local.definition.parameter) ; x -> ... parameters: (identifier) @local.definition.parameter) ; x -> ...

View file

@ -59,197 +59,198 @@
; jq -n 'builtins | map(split("/")[0]) | unique | .[]' ; jq -n 'builtins | map(split("/")[0]) | unique | .[]'
((funcname) @function.builtin ((funcname) @function.builtin
(#any-of? @function.builtin ; format-ignore
"IN" (#any-of? @function.builtin
"INDEX" "IN"
"JOIN" "INDEX"
"acos" "JOIN"
"acosh" "acos"
"add" "acosh"
"all" "add"
"any" "all"
"arrays" "any"
"ascii_downcase" "arrays"
"ascii_upcase" "ascii_downcase"
"asin" "ascii_upcase"
"asinh" "asin"
"atan" "asinh"
"atan2" "atan"
"atanh" "atan2"
"booleans" "atanh"
"bsearch" "booleans"
"builtins" "bsearch"
"capture" "builtins"
"cbrt" "capture"
"ceil" "cbrt"
"combinations" "ceil"
"contains" "combinations"
"copysign" "contains"
"cos" "copysign"
"cosh" "cos"
"debug" "cosh"
"del" "debug"
"delpaths" "del"
"drem" "delpaths"
"empty" "drem"
"endswith" "empty"
"env" "endswith"
"erf" "env"
"erfc" "erf"
"error" "erfc"
"exp" "error"
"exp10" "exp"
"exp2" "exp10"
"explode" "exp2"
"expm1" "explode"
"fabs" "expm1"
"fdim" "fabs"
"finites" "fdim"
"first" "finites"
"flatten" "first"
"floor" "flatten"
"fma" "floor"
"fmax" "fma"
"fmin" "fmax"
"fmod" "fmin"
"format" "fmod"
"frexp" "format"
"from_entries" "frexp"
"fromdate" "from_entries"
"fromdateiso8601" "fromdate"
"fromjson" "fromdateiso8601"
"fromstream" "fromjson"
"gamma" "fromstream"
"get_jq_origin" "gamma"
"get_prog_origin" "get_jq_origin"
"get_search_list" "get_prog_origin"
"getpath" "get_search_list"
"gmtime" "getpath"
"group_by" "gmtime"
"gsub" "group_by"
"halt" "gsub"
"halt_error" "halt"
"has" "halt_error"
"hypot" "has"
"implode" "hypot"
"in" "implode"
"index" "in"
"indices" "index"
"infinite" "indices"
"input" "infinite"
"input_filename" "input"
"input_line_number" "input_filename"
"inputs" "input_line_number"
"inside" "inputs"
"isempty" "inside"
"isfinite" "isempty"
"isinfinite" "isfinite"
"isnan" "isinfinite"
"isnormal" "isnan"
"iterables" "isnormal"
"j0" "iterables"
"j1" "j0"
"jn" "j1"
"join" "jn"
"keys" "join"
"keys_unsorted" "keys"
"last" "keys_unsorted"
"ldexp" "last"
"leaf_paths" "ldexp"
"length" "leaf_paths"
"lgamma" "length"
"lgamma_r" "lgamma"
"limit" "lgamma_r"
"localtime" "limit"
"log" "localtime"
"log10" "log"
"log1p" "log10"
"log2" "log1p"
"logb" "log2"
"ltrimstr" "logb"
"map" "ltrimstr"
"map_values" "map"
"match" "map_values"
"max" "match"
"max_by" "max"
"min" "max_by"
"min_by" "min"
"mktime" "min_by"
"modf" "mktime"
"modulemeta" "modf"
"nan" "modulemeta"
"nearbyint" "nan"
"nextafter" "nearbyint"
"nexttoward" "nextafter"
"normals" "nexttoward"
"not" "normals"
"now" "not"
"nth" "now"
"nulls" "nth"
"numbers" "nulls"
"objects" "numbers"
"path" "objects"
"paths" "path"
"pow" "paths"
"pow10" "pow"
"range" "pow10"
"recurse" "range"
"recurse_down" "recurse"
"remainder" "recurse_down"
"repeat" "remainder"
"reverse" "repeat"
"rindex" "reverse"
"rint" "rindex"
"round" "rint"
"rtrimstr" "round"
"scalars" "rtrimstr"
"scalars_or_empty" "scalars"
"scalb" "scalars_or_empty"
"scalbln" "scalb"
"scan" "scalbln"
"select" "scan"
"setpath" "select"
"significand" "setpath"
"sin" "significand"
"sinh" "sin"
"sort" "sinh"
"sort_by" "sort"
"split" "sort_by"
"splits" "split"
"sqrt" "splits"
"startswith" "sqrt"
"stderr" "startswith"
"strflocaltime" "stderr"
"strftime" "strflocaltime"
"strings" "strftime"
"strptime" "strings"
"sub" "strptime"
"tan" "sub"
"tanh" "tan"
"test" "tanh"
"tgamma" "test"
"to_entries" "tgamma"
"todate" "to_entries"
"todateiso8601" "todate"
"tojson" "todateiso8601"
"tonumber" "tojson"
"tostream" "tonumber"
"tostring" "tostream"
"transpose" "tostring"
"trunc" "transpose"
"truncate_stream" "trunc"
"type" "truncate_stream"
"unique" "type"
"unique_by" "unique"
"until" "unique_by"
"utf8bytelength" "until"
"values" "utf8bytelength"
"walk" "values"
"while" "walk"
"with_entries" "while"
"y0" "with_entries"
"y1" "y0"
"yn")) "y1"
"yn"))
; Keywords ; Keywords

View file

@ -127,216 +127,217 @@
;; type_names = sort(union(get_types(Core), get_types(Base))) ;; type_names = sort(union(get_types(Core), get_types(Base)))
;; ;;
((identifier) @type.builtin ((identifier) @type.builtin
(#any-of? @type.builtin ; format-ignore
"AbstractArray" (#any-of? @type.builtin
"AbstractChannel" "AbstractArray"
"AbstractChar" "AbstractChannel"
"AbstractDict" "AbstractChar"
"AbstractDisplay" "AbstractDict"
"AbstractFloat" "AbstractDisplay"
"AbstractIrrational" "AbstractFloat"
"AbstractLock" "AbstractIrrational"
"AbstractMatch" "AbstractLock"
"AbstractMatrix" "AbstractMatch"
"AbstractPattern" "AbstractMatrix"
"AbstractRange" "AbstractPattern"
"AbstractSet" "AbstractRange"
"AbstractSlices" "AbstractSet"
"AbstractString" "AbstractSlices"
"AbstractUnitRange" "AbstractString"
"AbstractVecOrMat" "AbstractUnitRange"
"AbstractVector" "AbstractVecOrMat"
"Any" "AbstractVector"
"ArgumentError" "Any"
"Array" "ArgumentError"
"AssertionError" "Array"
"Atomic" "AssertionError"
"BigFloat" "Atomic"
"BigInt" "BigFloat"
"BitArray" "BigInt"
"BitMatrix" "BitArray"
"BitSet" "BitMatrix"
"BitVector" "BitSet"
"Bool" "BitVector"
"BoundsError" "Bool"
"By" "BoundsError"
"CanonicalIndexError" "By"
"CapturedException" "CanonicalIndexError"
"CartesianIndex" "CapturedException"
"CartesianIndices" "CartesianIndex"
"Cchar" "CartesianIndices"
"Cdouble" "Cchar"
"Cfloat" "Cdouble"
"Channel" "Cfloat"
"Char" "Channel"
"Cint" "Char"
"Cintmax_t" "Cint"
"Clong" "Cintmax_t"
"Clonglong" "Clong"
"Cmd" "Clonglong"
"Colon" "Cmd"
"ColumnSlices" "Colon"
"Complex" "ColumnSlices"
"ComplexF16" "Complex"
"ComplexF32" "ComplexF16"
"ComplexF64" "ComplexF32"
"ComposedFunction" "ComplexF64"
"CompositeException" "ComposedFunction"
"ConcurrencyViolationError" "CompositeException"
"Condition" "ConcurrencyViolationError"
"Cptrdiff_t" "Condition"
"Cshort" "Cptrdiff_t"
"Csize_t" "Cshort"
"Cssize_t" "Csize_t"
"Cstring" "Cssize_t"
"Cuchar" "Cstring"
"Cuint" "Cuchar"
"Cuintmax_t" "Cuint"
"Culong" "Cuintmax_t"
"Culonglong" "Culong"
"Cushort" "Culonglong"
"Cvoid" "Cushort"
"Cwchar_t" "Cvoid"
"Cwstring" "Cwchar_t"
"DataType" "Cwstring"
"DenseArray" "DataType"
"DenseMatrix" "DenseArray"
"DenseVecOrMat" "DenseMatrix"
"DenseVector" "DenseVecOrMat"
"Dict" "DenseVector"
"DimensionMismatch" "Dict"
"Dims" "DimensionMismatch"
"DivideError" "Dims"
"DomainError" "DivideError"
"EOFError" "DomainError"
"Enum" "EOFError"
"ErrorException" "Enum"
"Exception" "ErrorException"
"ExponentialBackOff" "Exception"
"Expr" "ExponentialBackOff"
"Float16" "Expr"
"Float32" "Float16"
"Float64" "Float32"
"Function" "Float64"
"GlobalRef" "Function"
"HTML" "GlobalRef"
"IO" "HTML"
"IOBuffer" "IO"
"IOContext" "IOBuffer"
"IOStream" "IOContext"
"IdDict" "IOStream"
"IndexCartesian" "IdDict"
"IndexLinear" "IndexCartesian"
"IndexStyle" "IndexLinear"
"InexactError" "IndexStyle"
"InitError" "InexactError"
"Int" "InitError"
"Int128" "Int"
"Int16" "Int128"
"Int32" "Int16"
"Int64" "Int32"
"Int8" "Int64"
"Integer" "Int8"
"InterruptException" "Integer"
"InvalidStateException" "InterruptException"
"Irrational" "InvalidStateException"
"KeyError" "Irrational"
"LazyString" "KeyError"
"LinRange" "LazyString"
"LineNumberNode" "LinRange"
"LinearIndices" "LineNumberNode"
"LoadError" "LinearIndices"
"Lt" "LoadError"
"MIME" "Lt"
"Matrix" "MIME"
"Method" "Matrix"
"MethodError" "Method"
"Missing" "MethodError"
"MissingException" "Missing"
"Module" "MissingException"
"NTuple" "Module"
"NamedTuple" "NTuple"
"Nothing" "NamedTuple"
"Number" "Nothing"
"Ordering" "Number"
"OrdinalRange" "Ordering"
"OutOfMemoryError" "OrdinalRange"
"OverflowError" "OutOfMemoryError"
"Pair" "OverflowError"
"ParseError" "Pair"
"PartialQuickSort" "ParseError"
"Perm" "PartialQuickSort"
"PermutedDimsArray" "Perm"
"Pipe" "PermutedDimsArray"
"ProcessFailedException" "Pipe"
"Ptr" "ProcessFailedException"
"QuoteNode" "Ptr"
"Rational" "QuoteNode"
"RawFD" "Rational"
"ReadOnlyMemoryError" "RawFD"
"Real" "ReadOnlyMemoryError"
"ReentrantLock" "Real"
"Ref" "ReentrantLock"
"Regex" "Ref"
"RegexMatch" "Regex"
"Returns" "RegexMatch"
"ReverseOrdering" "Returns"
"RoundingMode" "ReverseOrdering"
"RowSlices" "RoundingMode"
"SegmentationFault" "RowSlices"
"Set" "SegmentationFault"
"Signed" "Set"
"Slices" "Signed"
"Some" "Slices"
"SpinLock" "Some"
"StackFrame" "SpinLock"
"StackOverflowError" "StackFrame"
"StackTrace" "StackOverflowError"
"Stateful" "StackTrace"
"StepRange" "Stateful"
"StepRangeLen" "StepRange"
"StridedArray" "StepRangeLen"
"StridedMatrix" "StridedArray"
"StridedVecOrMat" "StridedMatrix"
"StridedVector" "StridedVecOrMat"
"String" "StridedVector"
"StringIndexError" "String"
"SubArray" "StringIndexError"
"SubString" "SubArray"
"SubstitutionString" "SubString"
"Symbol" "SubstitutionString"
"SystemError" "Symbol"
"Task" "SystemError"
"TaskFailedException" "Task"
"Text" "TaskFailedException"
"TextDisplay" "Text"
"Timer" "TextDisplay"
"Tmstruct" "Timer"
"Tuple" "Tmstruct"
"Type" "Tuple"
"TypeError" "Type"
"TypeVar" "TypeError"
"UInt" "TypeVar"
"UInt128" "UInt"
"UInt16" "UInt128"
"UInt32" "UInt16"
"UInt64" "UInt32"
"UInt8" "UInt64"
"UndefInitializer" "UInt8"
"UndefKeywordError" "UndefInitializer"
"UndefRefError" "UndefKeywordError"
"UndefVarError" "UndefRefError"
"Union" "UndefVarError"
"UnionAll" "Union"
"UnitRange" "UnionAll"
"Unsigned" "UnitRange"
"Val" "Unsigned"
"VecElement" "Val"
"VecOrMat" "VecElement"
"Vector" "VecOrMat"
"VersionNumber" "Vector"
"WeakKeyDict" "VersionNumber"
"WeakRef")) "WeakKeyDict"
"WeakRef"))
((identifier) @variable.builtin ((identifier) @variable.builtin
(#any-of? @variable.builtin "begin" "end") (#any-of? @variable.builtin "begin" "end")

View file

@ -52,8 +52,9 @@
parameter: (identifier) @local.definition.parameter parameter: (identifier) @local.definition.parameter
(_)) (_))
;; Single parameter arrow function
(function_expression (function_expression
. (identifier) @local.definition.parameter) ;; Single parameter arrow function . (identifier) @local.definition.parameter)
;;; Function/macro definitions ;;; Function/macro definitions

View file

@ -220,8 +220,9 @@
(function_call (function_call
(identifier) @function.builtin (identifier) @function.builtin
; format-ignore
(#any-of? @function.builtin (#any-of? @function.builtin
;; built-in functions in Lua 5.1 ; built-in functions in Lua 5.1
"assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs" "assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs"
"load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print" "load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print"
"rawequal" "rawget" "rawlen" "rawset" "require" "select" "setfenv" "setmetatable" "rawequal" "rawget" "rawlen" "rawset" "require" "select" "setfenv" "setmetatable"

View file

@ -67,7 +67,8 @@
. .
(string (string
content: (_) @injection.content) content: (_) @injection.content)
. (_) .) ; Limiting predicate handling to only functions with 4 arguments . (_)
.) ; Limiting predicate handling to only functions with 4 arguments
(#eq? @_user_cmd "vim.api.nvim_buf_create_user_command") (#eq? @_user_cmd "vim.api.nvim_buf_create_user_command")
(#set! injection.language "vim")) (#set! injection.language "vim"))

View file

@ -184,8 +184,9 @@
(function_call (function_call
(identifier) @function.builtin (identifier) @function.builtin
; format-ignore
(#any-of? @function.builtin (#any-of? @function.builtin
;; built-in functions in Lua 5.1 ; built-in functions in Lua 5.1
"assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs" "assert" "collectgarbage" "dofile" "error" "getfenv" "getmetatable" "ipairs"
"load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print" "load" "loadfile" "loadstring" "module" "next" "pairs" "pcall" "print"
"rawequal" "rawget" "rawlen" "rawset" "require" "select" "setfenv" "setmetatable" "rawequal" "rawget" "rawlen" "rawset" "require" "select" "setfenv" "setmetatable"

View file

@ -23,6 +23,7 @@
(arith_cmp_predicate) (arith_cmp_predicate)
] @keyword ] @keyword
; format-ignore
[ [
"module" "module"
"unrealized_conversion_cast" "unrealized_conversion_cast"

View file

@ -98,18 +98,20 @@
) )
; builtin functions (without builtins prefix) ; builtin functions (without builtins prefix)
(variable_expression name: (identifier) @function.builtin (#any-of? @function.builtin (variable_expression name: (identifier) @function.builtin
; nix eval --impure --expr 'with builtins; filter (x: !(elem x [ "abort" "derivation" "import" "throw" ]) && isFunction builtins.${x}) (attrNames builtins)' ; format-ignore
"add" "addErrorContext" "all" "any" "appendContext" "attrNames" "attrValues" "baseNameOf" "bitAnd" "bitOr" "bitXor" "break" "catAttrs" "ceil" "compareVersions" "concatLists" "concatMap" "concatStringsSep" "deepSeq" "derivationStrict" "dirOf" "div" "elem" "elemAt" "fetchGit" "fetchMercurial" "fetchTarball" "fetchTree" "fetchurl" "filter" "filterSource" "findFile" "floor" "foldl'" "fromJSON" "fromTOML" "functionArgs" "genList" "genericClosure" "getAttr" "getContext" "getEnv" "getFlake" "groupBy" "hasAttr" "hasContext" "hashFile" "hashString" "head" "intersectAttrs" "isAttrs" "isBool" "isFloat" "isFunction" "isInt" "isList" "isNull" "isPath" "isString" "length" "lessThan" "listToAttrs" "map" "mapAttrs" "match" "mul" "parseDrvName" "partition" "path" "pathExists" "placeholder" "readDir" "readFile" "removeAttrs" "replaceStrings" "scopedImport" "seq" "sort" "split" "splitVersion" "storePath" "stringLength" "sub" "substring" "tail" "toFile" "toJSON" "toPath" "toString" "toXML" "trace" "traceVerbose" "tryEval" "typeOf" "unsafeDiscardOutputDependency" "unsafeDiscardStringContext" "unsafeGetAttrPos" "zipAttrsWith" (#any-of? @function.builtin
; primops, `__<tab>` in `nix repl` ; nix eval --impure --expr 'with builtins; filter (x: !(elem x [ "abort" "derivation" "import" "throw" ]) && isFunction builtins.${x}) (attrNames builtins)'
"__add" "__filter" "__isFunction" "__split" "__addErrorContext" "__filterSource" "__isInt" "__splitVersion" "__all" "__findFile" "__isList" "__storeDir" "__any" "__floor" "__isPath" "__storePath" "__appendContext" "__foldl'" "__isString" "__stringLength" "__attrNames" "__fromJSON" "__langVersion" "__sub" "__attrValues" "__functionArgs" "__length" "__substring" "__bitAnd" "__genList" "__lessThan" "__tail" "__bitOr" "__genericClosure" "__listToAttrs" "__toFile" "__bitXor" "__getAttr" "__mapAttrs" "__toJSON" "__catAttrs" "__getContext" "__match" "__toPath" "__ceil" "__getEnv" "__mul" "__toXML" "__compareVersions" "__getFlake" "__nixPath" "__trace" "__concatLists" "__groupBy" "__nixVersion" "__traceVerbose" "__concatMap" "__hasAttr" "__parseDrvName" "__tryEval" "__concatStringsSep" "__hasContext" "__partition" "__typeOf" "__currentSystem" "__hashFile" "__path" "__unsafeDiscardOutputDependency" "__currentTime" "__hashString" "__pathExists" "__unsafeDiscardStringContext" "__deepSeq" "__head" "__readDir" "__unsafeGetAttrPos" "__div" "__intersectAttrs" "__readFile" "__zipAttrsWith" "__elem" "__isAttrs" "__replaceStrings" "__elemAt" "__isBool" "__seq" "__fetchurl" "__isFloat" "__sort" "add" "addErrorContext" "all" "any" "appendContext" "attrNames" "attrValues" "baseNameOf" "bitAnd" "bitOr" "bitXor" "break" "catAttrs" "ceil" "compareVersions" "concatLists" "concatMap" "concatStringsSep" "deepSeq" "derivationStrict" "dirOf" "div" "elem" "elemAt" "fetchGit" "fetchMercurial" "fetchTarball" "fetchTree" "fetchurl" "filter" "filterSource" "findFile" "floor" "foldl'" "fromJSON" "fromTOML" "functionArgs" "genList" "genericClosure" "getAttr" "getContext" "getEnv" "getFlake" "groupBy" "hasAttr" "hasContext" "hashFile" "hashString" "head" "intersectAttrs" "isAttrs" "isBool" "isFloat" "isFunction" "isInt" "isList" "isNull" "isPath" "isString" "length" "lessThan" "listToAttrs" "map" "mapAttrs" "match" "mul" "parseDrvName" "partition" "path" "pathExists" "placeholder" "readDir" "readFile" "removeAttrs" "replaceStrings" "scopedImport" "seq" "sort" "split" "splitVersion" "storePath" "stringLength" "sub" "substring" "tail" "toFile" "toJSON" "toPath" "toString" "toXML" "trace" "traceVerbose" "tryEval" "typeOf" "unsafeDiscardOutputDependency" "unsafeDiscardStringContext" "unsafeGetAttrPos" "zipAttrsWith"
)) ; primops, `__<tab>` in `nix repl`
"__add" "__filter" "__isFunction" "__split" "__addErrorContext" "__filterSource" "__isInt" "__splitVersion" "__all" "__findFile" "__isList" "__storeDir" "__any" "__floor" "__isPath" "__storePath" "__appendContext" "__foldl'" "__isString" "__stringLength" "__attrNames" "__fromJSON" "__langVersion" "__sub" "__attrValues" "__functionArgs" "__length" "__substring" "__bitAnd" "__genList" "__lessThan" "__tail" "__bitOr" "__genericClosure" "__listToAttrs" "__toFile" "__bitXor" "__getAttr" "__mapAttrs" "__toJSON" "__catAttrs" "__getContext" "__match" "__toPath" "__ceil" "__getEnv" "__mul" "__toXML" "__compareVersions" "__getFlake" "__nixPath" "__trace" "__concatLists" "__groupBy" "__nixVersion" "__traceVerbose" "__concatMap" "__hasAttr" "__parseDrvName" "__tryEval" "__concatStringsSep" "__hasContext" "__partition" "__typeOf" "__currentSystem" "__hashFile" "__path" "__unsafeDiscardOutputDependency" "__currentTime" "__hashString" "__pathExists" "__unsafeDiscardStringContext" "__deepSeq" "__head" "__readDir" "__unsafeGetAttrPos" "__div" "__intersectAttrs" "__readFile" "__zipAttrsWith" "__elem" "__isAttrs" "__replaceStrings" "__elemAt" "__isBool" "__seq" "__fetchurl" "__isFloat" "__sort"))
; constants ; constants
(variable_expression name: (identifier) @constant.builtin (#any-of? @constant.builtin (variable_expression name: (identifier) @constant.builtin
; nix eval --impure --expr 'with builtins; filter (x: !(isFunction builtins.${x} || isBool builtins.${x})) (attrNames builtins)' ; format-ignore
"builtins" "currentSystem" "currentTime" "langVersion" "nixPath" "nixVersion" "null" "storeDir" (#any-of? @constant.builtin
)) ; nix eval --impure --expr 'with builtins; filter (x: !(isFunction builtins.${x} || isBool builtins.${x})) (attrNames builtins)'
"builtins" "currentSystem" "currentTime" "langVersion" "nixPath" "nixVersion" "null" "storeDir"))
; string interpolation (this was very annoying to get working properly) ; string interpolation (this was very annoying to get working properly)
(interpolation "${" @punctuation.special (_) "}" @punctuation.special) @none (interpolation "${" @punctuation.special (_) "}" @punctuation.special) @none

View file

@ -1,3 +1,4 @@
; format-ignore
[ [
(let_binding) ; let = ... (let_binding) ; let = ...
(type_binding) (type_binding)

View file

@ -2,18 +2,19 @@
(tag_name) @tag (tag_name) @tag
((tag_name) @constant.builtin ((tag_name) @constant.builtin
; https://www.script-example.com/html-tag-liste ; https://www.script-example.com/html-tag-liste
(#any-of? @constant.builtin ; format-ignore
"head" "title" "base" "link" "meta" "style" (#any-of? @constant.builtin
"body" "article" "section" "nav" "aside" "h1" "h2" "h3" "h4" "h5" "h6" "hgroup" "header" "footer" "address" "head" "title" "base" "link" "meta" "style"
"p" "hr" "pre" "blockquote" "ol" "ul" "menu" "li" "dl" "dt" "dd" "figure" "figcaption" "main" "div" "body" "article" "section" "nav" "aside" "h1" "h2" "h3" "h4" "h5" "h6" "hgroup" "header" "footer" "address"
"a" "em" "strong" "small" "s" "cite" "q" "dfn" "abbr" "ruby" "rt" "rp" "data" "time" "code" "var" "samp" "kbd" "sub" "sup" "i" "b" "u" "mark" "bdi" "bdo" "span" "br" "wbr" "p" "hr" "pre" "blockquote" "ol" "ul" "menu" "li" "dl" "dt" "dd" "figure" "figcaption" "main" "div"
"ins" "del" "a" "em" "strong" "small" "s" "cite" "q" "dfn" "abbr" "ruby" "rt" "rp" "data" "time" "code" "var" "samp" "kbd" "sub" "sup" "i" "b" "u" "mark" "bdi" "bdo" "span" "br" "wbr"
"picture" "source" "img" "iframe" "embed" "object" "param" "video" "audio" "track" "map" "area" "ins" "del"
"table" "caption" "colgroup" "col" "tbody" "thead" "tfoot" "tr" "td" "th " "picture" "source" "img" "iframe" "embed" "object" "param" "video" "audio" "track" "map" "area"
"form" "label" "input" "button" "select" "datalist" "optgroup" "option" "textarea" "output" "progress" "meter" "fieldset" "legend" "table" "caption" "colgroup" "col" "tbody" "thead" "tfoot" "tr" "td" "th "
"details" "summary" "dialog" "form" "label" "input" "button" "select" "datalist" "optgroup" "option" "textarea" "output" "progress" "meter" "fieldset" "legend"
"script" "noscript" "template" "slot" "canvas")) "details" "summary" "dialog"
"script" "noscript" "template" "slot" "canvas"))
(id) @constant (id) @constant
(class) @property (class) @property

View file

@ -17,15 +17,11 @@
(#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$")) (#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
((identifier) @constant.builtin ((identifier) @constant.builtin
(#any-of? @constant.builtin ; format-ignore
;; https://docs.python.org/3/library/constants.html (#any-of? @constant.builtin
"NotImplemented" ; https://docs.python.org/3/library/constants.html
"Ellipsis" "NotImplemented" "Ellipsis"
"quit" "quit" "exit" "copyright" "credits" "license"))
"exit"
"copyright"
"credits"
"license"))
"_" @constant.builtin ; match wildcard "_" @constant.builtin ; match wildcard
@ -336,22 +332,23 @@
(#any-of? @constructor "__new__" "__init__")) (#any-of? @constructor "__new__" "__init__"))
((identifier) @type.builtin ((identifier) @type.builtin
(#any-of? @type.builtin ; format-ignore
;; https://docs.python.org/3/library/exceptions.html (#any-of? @type.builtin
"BaseException" "Exception" "ArithmeticError" "BufferError" "LookupError" "AssertionError" "AttributeError" ; https://docs.python.org/3/library/exceptions.html
"EOFError" "FloatingPointError" "GeneratorExit" "ImportError" "ModuleNotFoundError" "IndexError" "KeyError" "BaseException" "Exception" "ArithmeticError" "BufferError" "LookupError" "AssertionError" "AttributeError"
"KeyboardInterrupt" "MemoryError" "NameError" "NotImplementedError" "OSError" "OverflowError" "RecursionError" "EOFError" "FloatingPointError" "GeneratorExit" "ImportError" "ModuleNotFoundError" "IndexError" "KeyError"
"ReferenceError" "RuntimeError" "StopIteration" "StopAsyncIteration" "SyntaxError" "IndentationError" "TabError" "KeyboardInterrupt" "MemoryError" "NameError" "NotImplementedError" "OSError" "OverflowError" "RecursionError"
"SystemError" "SystemExit" "TypeError" "UnboundLocalError" "UnicodeError" "UnicodeEncodeError" "UnicodeDecodeError" "ReferenceError" "RuntimeError" "StopIteration" "StopAsyncIteration" "SyntaxError" "IndentationError" "TabError"
"UnicodeTranslateError" "ValueError" "ZeroDivisionError" "EnvironmentError" "IOError" "WindowsError" "SystemError" "SystemExit" "TypeError" "UnboundLocalError" "UnicodeError" "UnicodeEncodeError" "UnicodeDecodeError"
"BlockingIOError" "ChildProcessError" "ConnectionError" "BrokenPipeError" "ConnectionAbortedError" "UnicodeTranslateError" "ValueError" "ZeroDivisionError" "EnvironmentError" "IOError" "WindowsError"
"ConnectionRefusedError" "ConnectionResetError" "FileExistsError" "FileNotFoundError" "InterruptedError" "BlockingIOError" "ChildProcessError" "ConnectionError" "BrokenPipeError" "ConnectionAbortedError"
"IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "TimeoutError" "Warning" "ConnectionRefusedError" "ConnectionResetError" "FileExistsError" "FileNotFoundError" "InterruptedError"
"UserWarning" "DeprecationWarning" "PendingDeprecationWarning" "SyntaxWarning" "RuntimeWarning" "IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "TimeoutError" "Warning"
"FutureWarning" "ImportWarning" "UnicodeWarning" "BytesWarning" "ResourceWarning" "UserWarning" "DeprecationWarning" "PendingDeprecationWarning" "SyntaxWarning" "RuntimeWarning"
;; https://docs.python.org/3/library/stdtypes.html "FutureWarning" "ImportWarning" "UnicodeWarning" "BytesWarning" "ResourceWarning"
"bool" "int" "float" "complex" "list" "tuple" "range" "str" ; https://docs.python.org/3/library/stdtypes.html
"bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type" "object")) "bool" "int" "float" "complex" "list" "tuple" "range" "str"
"bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type" "object"))
;; Regex from the `re` module ;; Regex from the `re` module

View file

@ -32,18 +32,18 @@
((directive ((directive
name: (type) @function.builtin) name: (type) @function.builtin)
(#any-of? ; format-ignore
@function.builtin (#any-of? @function.builtin
; https://docutils.sourceforge.io/docs/ref/rst/directives.html ; https://docutils.sourceforge.io/docs/ref/rst/directives.html
"attention" "caution" "danger" "error" "hint" "important" "note" "tip" "warning" "admonition" "attention" "caution" "danger" "error" "hint" "important" "note" "tip" "warning" "admonition"
"image" "figure" "image" "figure"
"topic" "sidebar" "line-block" "parsed-literal" "code" "math" "rubric" "epigraph" "highlights" "pull-quote" "compound" "container" "topic" "sidebar" "line-block" "parsed-literal" "code" "math" "rubric" "epigraph" "highlights" "pull-quote" "compound" "container"
"table" "csv-table" "list-table" "table" "csv-table" "list-table"
"contents" "sectnum" "section-numbering" "header" "footer" "contents" "sectnum" "section-numbering" "header" "footer"
"target-notes" "target-notes"
"meta" "meta"
"replace" "unicode" "date" "replace" "unicode" "date"
"raw" "class" "role" "default-role" "title" "restructuredtext-test-directive")) "raw" "class" "role" "default-role" "title" "restructuredtext-test-directive"))
;; Blocks ;; Blocks
@ -89,26 +89,26 @@
(role) @function (role) @function
((role) @function.builtin ((role) @function.builtin
(#any-of? ; format-ignore
@function.builtin (#any-of? @function.builtin
; https://docutils.sourceforge.io/docs/ref/rst/roles.html ; https://docutils.sourceforge.io/docs/ref/rst/roles.html
":emphasis:" ":emphasis:"
":literal:" ":literal:"
":code:" ":code:"
":math:" ":math:"
":pep-reference:" ":pep-reference:"
":PEP:" ":PEP:"
":rfc-reference:" ":rfc-reference:"
":RFC:" ":RFC:"
":strong:" ":strong:"
":subscript:" ":subscript:"
":sub:" ":sub:"
":superscript:" ":superscript:"
":sup:" ":sup:"
":title-reference:" ":title-reference:"
":title:" ":title:"
":t:" ":t:"
":raw:")) ":raw:"))
[ [
"interpreted_text" "interpreted_text"

View file

@ -104,79 +104,80 @@
;; procedures in R5RS and R6RS but not in R6RS-lib ;; procedures in R5RS and R6RS but not in R6RS-lib
((symbol) @function.builtin ((symbol) @function.builtin
(#any-of? @function.builtin ; format-ignore
;; eq (#any-of? @function.builtin
"eqv?" "eq?" "equal?" ; eq
;; number "eqv?" "eq?" "equal?"
"number?" "complex?" "real?" "rational?" "integer?" ; number
"exact?" "inexact?" "number?" "complex?" "real?" "rational?" "integer?"
"zero?" "positive?" "negative?" "odd?" "even?" "finite?" "infinite?" "nan?" "exact?" "inexact?"
"max" "min" "zero?" "positive?" "negative?" "odd?" "even?" "finite?" "infinite?" "nan?"
"abs" "quotient" "remainder" "modulo" "max" "min"
"div" "div0" "mod" "mod0" "div-and-mod" "div0-and-mod0" "abs" "quotient" "remainder" "modulo"
"gcd" "lcm" "numerator" "denominator" "div" "div0" "mod" "mod0" "div-and-mod" "div0-and-mod0"
"floor" "ceiling" "truncate" "round" "gcd" "lcm" "numerator" "denominator"
"rationalize" "floor" "ceiling" "truncate" "round"
"exp" "log" "sin" "cos" "tan" "asin" "acos" "atan" "rationalize"
"sqrt" "expt" "exp" "log" "sin" "cos" "tan" "asin" "acos" "atan"
"exact-integer-sqrt" "sqrt" "expt"
"make-rectangular" "make-polar" "real-part" "imag-part" "magnitude" "angle" "exact-integer-sqrt"
"real-valued" "rational-valued?" "integer-valued?" "make-rectangular" "make-polar" "real-part" "imag-part" "magnitude" "angle"
"exact" "inexact" "exact->inexact" "inexact->exact" "real-valued" "rational-valued?" "integer-valued?"
"number->string" "string->number" "exact" "inexact" "exact->inexact" "inexact->exact"
;; boolean "number->string" "string->number"
"boolean?" "not" "boolean=?" ; boolean
;; pair "boolean?" "not" "boolean=?"
"pair?" "cons" ; pair
"car" "cdr" "pair?" "cons"
"caar" "cadr" "cdar" "cddr" "car" "cdr"
"caaar" "caadr" "cadar" "caddr" "cdaar" "cdadr" "cddar" "cdddr" "caar" "cadr" "cdar" "cddr"
"caaaar" "caaadr" "caadar" "caaddr" "cadaar" "cadadr" "caddar" "cadddr" "caaar" "caadr" "cadar" "caddr" "cdaar" "cdadr" "cddar" "cdddr"
"cdaaar" "cdaadr" "cdadar" "cdaddr" "cddaar" "cddadr" "cdddar" "cddddr" "caaaar" "caaadr" "caadar" "caaddr" "cadaar" "cadadr" "caddar" "cadddr"
"set-car!" "set-cdr!" "cdaaar" "cdaadr" "cdadar" "cdaddr" "cddaar" "cddadr" "cdddar" "cddddr"
;; list "set-car!" "set-cdr!"
"null?" "list?" ; list
"list" "length" "append" "reverse" "list-tail" "list-ref" "null?" "list?"
"map" "for-each" "list" "length" "append" "reverse" "list-tail" "list-ref"
"memq" "memv" "member" "assq" "assv" "assoc" "map" "for-each"
;; symbol "memq" "memv" "member" "assq" "assv" "assoc"
"symbol?" "symbol->string" "string->symbol" "symbol=?" ; symbol
;; char "symbol?" "symbol->string" "string->symbol" "symbol=?"
"char?" "char=?" "char<?" "char>?" "char<=?" "char>=?" ; char
"char-ci=?" "char-ci<?" "char-ci>?" "char-ci<=?" "char-ci>=?" "char?" "char=?" "char<?" "char>?" "char<=?" "char>=?"
"char-alphabetic?" "char-numeric?" "char-whitespace?" "char-upper-case?" "char-lower-case?" "char-ci=?" "char-ci<?" "char-ci>?" "char-ci<=?" "char-ci>=?"
"char->integer" "integer->char" "char-alphabetic?" "char-numeric?" "char-whitespace?" "char-upper-case?" "char-lower-case?"
"char-upcase" "char-downcase" "char->integer" "integer->char"
;; string "char-upcase" "char-downcase"
"string?" "make-string" "string" "string-length" "string-ref" "string-set!" ; string
"string=?" "string-ci=?" "string<?" "string>?" "string<=?" "string>=?" "string?" "make-string" "string" "string-length" "string-ref" "string-set!"
"string-ci<?" "string-ci>?" "string-ci<=?" "string-ci>=?" "string=?" "string-ci=?" "string<?" "string>?" "string<=?" "string>=?"
"substring" "string-append" "string->list" "list->string" "string-ci<?" "string-ci>?" "string-ci<=?" "string-ci>=?"
"string-for-each" "substring" "string-append" "string->list" "list->string"
"string-copy" "string-fill!" "string-for-each"
"string-upcase" "string-downcase" "string-copy" "string-fill!"
;; vector "string-upcase" "string-downcase"
"vector?" "make-vector" "vector" "vector-length" "vector-ref" "vector-set!" ; vector
"vector->list" "list->vector" "vector-fill!" "vector-map" "vector-for-each" "vector?" "make-vector" "vector" "vector-length" "vector-ref" "vector-set!"
;; bytevector "vector->list" "list->vector" "vector-fill!" "vector-map" "vector-for-each"
"bytevector?" "native-endianness" ; bytevector
"make-bytevector" "bytevector-length" "bytevector=?" "bytevector-fill!" "bytevector?" "native-endianness"
"bytevector-copy!" "bytevector-copy" "make-bytevector" "bytevector-length" "bytevector=?" "bytevector-fill!"
;; error "bytevector-copy!" "bytevector-copy"
"error" "assertion-violation" ; error
;; control "error" "assertion-violation"
"procedure?" "apply" "force" ; control
"call-with-current-continuation" "call/cc" "procedure?" "apply" "force"
"values" "call-with-values" "dynamic-wind" "call-with-current-continuation" "call/cc"
"eval" "scheme-report-environment" "null-environment" "interaction-environment" "values" "call-with-values" "dynamic-wind"
;; IO "eval" "scheme-report-environment" "null-environment" "interaction-environment"
"call-with-input-file" "call-with-output-file" "input-port?" "output-port?" ; IO
"current-input-port" "current-output-port" "with-input-from-file" "with-output-to-file" "call-with-input-file" "call-with-output-file" "input-port?" "output-port?"
"open-input-file" "open-output-file" "close-input-port" "close-output-port" "current-input-port" "current-output-port" "with-input-from-file" "with-output-to-file"
;; input "open-input-file" "open-output-file" "close-input-port" "close-output-port"
"read" "read-char" "peek-char" "eof-object?" "char-ready?" ; input
;; output "read" "read-char" "peek-char" "eof-object?" "char-ready?"
"write" "display" "newline" "write-char" ; output
;; system "write" "display" "newline" "write-char"
"load" "transcript-on" "transcript-off")) ; system
"load" "transcript-on" "transcript-off"))

View file

@ -158,6 +158,7 @@
function: (global_variable "::" (_) @function.builtin) function: (global_variable "::" (_) @function.builtin)
function: (deref_expression "." (_) @function.builtin) function: (deref_expression "." (_) @function.builtin)
] ]
; format-ignore
(#any-of? @function.builtin (#any-of? @function.builtin
; General Methods ; General Methods
"assert" "array" "callee" "collectgarbage" "compilestring" "assert" "array" "callee" "collectgarbage" "compilestring"

View file

@ -17,15 +17,11 @@
(#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$")) (#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
((identifier) @constant.builtin ((identifier) @constant.builtin
(#any-of? @constant.builtin ; format-ignore
;; https://docs.python.org/3/library/constants.html (#any-of? @constant.builtin
"NotImplemented" ; https://docs.python.org/3/library/constants.html
"Ellipsis" "NotImplemented" "Ellipsis"
"quit" "quit" "exit" "copyright" "credits" "license"))
"exit"
"copyright"
"credits"
"license"))
((attribute ((attribute
attribute: (identifier) @variable.member) attribute: (identifier) @variable.member)
@ -64,13 +60,14 @@
;; Builtin functions ;; Builtin functions
((call ((call
function: (identifier) @function.builtin) function: (identifier) @function.builtin)
(#any-of? @function.builtin ; format-ignore
"abs" "all" "any" "ascii" "bin" "bool" "breakpoint" "bytearray" "bytes" "callable" "chr" "classmethod" (#any-of? @function.builtin
"compile" "complex" "delattr" "dict" "dir" "divmod" "enumerate" "eval" "exec" "fail" "filter" "float" "format" "abs" "all" "any" "ascii" "bin" "bool" "breakpoint" "bytearray" "bytes" "callable" "chr" "classmethod"
"frozenset" "getattr" "globals" "hasattr" "hash" "help" "hex" "id" "input" "int" "isinstance" "issubclass" "compile" "complex" "delattr" "dict" "dir" "divmod" "enumerate" "eval" "exec" "fail" "filter" "float" "format"
"iter" "len" "list" "locals" "map" "max" "memoryview" "min" "next" "object" "oct" "open" "ord" "pow" "frozenset" "getattr" "globals" "hasattr" "hash" "help" "hex" "id" "input" "int" "isinstance" "issubclass"
"print" "property" "range" "repr" "reversed" "round" "set" "setattr" "slice" "sorted" "staticmethod" "str" "iter" "len" "list" "locals" "map" "max" "memoryview" "min" "next" "object" "oct" "open" "ord" "pow"
"struct" "sum" "super" "tuple" "type" "vars" "zip" "__import__")) "print" "property" "range" "repr" "reversed" "round" "set" "setattr" "slice" "sorted" "staticmethod" "str"
"struct" "sum" "super" "tuple" "type" "vars" "zip" "__import__"))
;; Function definitions ;; Function definitions
(function_definition (function_definition
@ -89,22 +86,23 @@
(#eq? @_isinstance "isinstance")) (#eq? @_isinstance "isinstance"))
((identifier) @type.builtin ((identifier) @type.builtin
(#any-of? @type.builtin ; format-ignore
;; https://docs.python.org/3/library/exceptions.html (#any-of? @type.builtin
"ArithmeticError" "BufferError" "LookupError" "AssertionError" "AttributeError" ; https://docs.python.org/3/library/exceptions.html
"EOFError" "FloatingPointError" "ModuleNotFoundError" "IndexError" "KeyError" "ArithmeticError" "BufferError" "LookupError" "AssertionError" "AttributeError"
"KeyboardInterrupt" "MemoryError" "NameError" "NotImplementedError" "OSError" "OverflowError" "RecursionError" "EOFError" "FloatingPointError" "ModuleNotFoundError" "IndexError" "KeyError"
"ReferenceError" "RuntimeError" "StopIteration" "StopAsyncIteration" "SyntaxError" "IndentationError" "TabError" "KeyboardInterrupt" "MemoryError" "NameError" "NotImplementedError" "OSError" "OverflowError" "RecursionError"
"SystemError" "SystemExit" "TypeError" "UnboundLocalError" "UnicodeError" "UnicodeEncodeError" "UnicodeDecodeError" "ReferenceError" "RuntimeError" "StopIteration" "StopAsyncIteration" "SyntaxError" "IndentationError" "TabError"
"UnicodeTranslateError" "ValueError" "ZeroDivisionError" "EnvironmentError" "IOError" "WindowsError" "SystemError" "SystemExit" "TypeError" "UnboundLocalError" "UnicodeError" "UnicodeEncodeError" "UnicodeDecodeError"
"BlockingIOError" "ChildProcessError" "ConnectionError" "BrokenPipeError" "ConnectionAbortedError" "UnicodeTranslateError" "ValueError" "ZeroDivisionError" "EnvironmentError" "IOError" "WindowsError"
"ConnectionRefusedError" "ConnectionResetError" "FileExistsError" "FileNotFoundError" "InterruptedError" "BlockingIOError" "ChildProcessError" "ConnectionError" "BrokenPipeError" "ConnectionAbortedError"
"IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "TimeoutError" "Warning" "ConnectionRefusedError" "ConnectionResetError" "FileExistsError" "FileNotFoundError" "InterruptedError"
"UserWarning" "DeprecationWarning" "PendingDeprecationWarning" "SyntaxWarning" "RuntimeWarning" "IsADirectoryError" "NotADirectoryError" "PermissionError" "ProcessLookupError" "TimeoutError" "Warning"
"FutureWarning" "UnicodeWarning" "BytesWarning" "ResourceWarning" "UserWarning" "DeprecationWarning" "PendingDeprecationWarning" "SyntaxWarning" "RuntimeWarning"
;; https://docs.python.org/3/library/stdtypes.html "FutureWarning" "UnicodeWarning" "BytesWarning" "ResourceWarning"
"bool" "int" "float" "complex" "list" "tuple" "range" "str" ; https://docs.python.org/3/library/stdtypes.html
"bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type")) "bool" "int" "float" "complex" "list" "tuple" "range" "str"
"bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type"))
;; Normal parameters ;; Normal parameters
(parameters (parameters

View file

@ -1,3 +1,4 @@
; format-ignore
[ [
; ... refers to the section that will get affected by this indent.begin capture ; ... refers to the section that will get affected by this indent.begin capture
(protocol_body) ; protocol Foo { ... } (protocol_body) ; protocol Foo { ... }

View file

@ -39,128 +39,125 @@
(attribute_type) @type (attribute_type) @type
( (
;; Reference: https://openusd.org/release/api/sdf_page_front.html
(attribute_type) @type.builtin (attribute_type) @type.builtin
(#any-of? @type.builtin ;format-ignore
;; Scalar types (#any-of? @type.builtin
"asset" "asset[]" ;; Reference: https://openusd.org/release/api/sdf_page_front.html
"bool" "bool[]" ;; Scalar types
"double" "double[]" "asset" "asset[]"
"float" "float[]" "bool" "bool[]"
"half" "half[]" "double" "double[]"
"int" "int[]" "float" "float[]"
"int64" "int64[]" "half" "half[]"
"string" "string[]" "int" "int[]"
"timecode" "timecode[]" "int64" "int64[]"
"token" "token[]" "string" "string[]"
"uchar" "uchar[]" "timecode" "timecode[]"
"uint" "uint[]" "token" "token[]"
"uint64" "uint64[]" "uchar" "uchar[]"
"uint" "uint[]"
"uint64" "uint64[]"
;; Dimensioned Types ;; Dimensioned Types
"double2" "double2[]" "double2" "double2[]"
"double3" "double3[]" "double3" "double3[]"
"double4" "double4[]" "double4" "double4[]"
"float2" "float2[]" "float2" "float2[]"
"float3" "float3[]" "float3" "float3[]"
"float4" "float4[]" "float4" "float4[]"
"half2" "half2[]" "half2" "half2[]"
"half3" "half3[]" "half3" "half3[]"
"half4" "half4[]" "half4" "half4[]"
"int2" "int2[]" "int2" "int2[]"
"int3" "int3[]" "int3" "int3[]"
"int4" "int4[]" "int4" "int4[]"
"matrix2d" "matrix2d[]" "matrix2d" "matrix2d[]"
"matrix3d" "matrix3d[]" "matrix3d" "matrix3d[]"
"matrix4d" "matrix4d[]" "matrix4d" "matrix4d[]"
"quatd" "quatd[]" "quatd" "quatd[]"
"quatf" "quatf[]" "quatf" "quatf[]"
"quath" "quath[]" "quath" "quath[]"
;; Extra Types ;; Extra Types
"color3f" "color3f[]" "color3f" "color3f[]"
"normal3f" "normal3f[]" "normal3f" "normal3f[]"
"point3f" "point3f[]" "point3f" "point3f[]"
"texCoord2f" "texCoord2f[]" "texCoord2f" "texCoord2f[]"
"vector3d" "vector3d[]" "vector3d" "vector3d[]"
"vector3f" "vector3f[]" "vector3f" "vector3f[]"
"vector3h" "vector3h[]" "vector3h" "vector3h[]"
"dictionary" "dictionary"
;; Deprecated Types ;; Deprecated Types
"EdgeIndex" "EdgeIndex[]" "EdgeIndex" "EdgeIndex[]"
"FaceIndex" "FaceIndex[]" "FaceIndex" "FaceIndex[]"
"Matrix4d" "Matrix4d[]" "Matrix4d" "Matrix4d[]"
"PointIndex" "PointIndex[]" "PointIndex" "PointIndex[]"
"PointFloat" "PointFloat[]" "PointFloat" "PointFloat[]"
"Transform" "Transform[]" "Transform" "Transform[]"
"Vec3f" "Vec3f[]" "Vec3f" "Vec3f[]"))
)
)
( (
(identifier) @keyword (identifier) @keyword
(#any-of? @keyword ; format-ignore
(#any-of? @keyword
; Reference: https://openusd.org/release/api/sdf_page_front.html
; LIVRPS names
"inherits"
"payload"
"references"
"specializes"
"variantSets"
"variants"
;; Reference: https://openusd.org/release/api/sdf_page_front.html ; assetInfo names
;; LIVRPS names "assetInfo"
"inherits" "identifier"
"payload" "name"
"references" "payloadAssetDependencies"
"specializes" "version"
"variantSets"
"variants"
; assetInfo names ; clips names
"assetInfo" "clips"
"identifier"
"name"
"payloadAssetDependencies"
"version"
;; clips names "active"
"clips" "assetPaths"
"manifestAssetPath"
"primPath"
"templateAssetPath"
"templateEndTime"
"templateStartTime"
"templateStride"
"times"
"active" ; customData names
"assetPaths" "customData"
"manifestAssetPath"
"primPath"
"templateAssetPath"
"templateEndTime"
"templateStartTime"
"templateStride"
"times"
;; customData names "apiSchemaAutoApplyTo"
"customData" "apiSchemaOverridePropertyNames"
"className"
"extraPlugInfo"
"isUsdShadeContainer"
"libraryName"
"providesUsdShadeConnectableAPIBehavior"
"requiresUsdShadeEncapsulation"
"skipCodeGeneration"
"apiSchemaAutoApplyTo" ; Layer metadata names
"apiSchemaOverridePropertyNames" "colorConfiguration"
"className" "colorManagementSystem"
"extraPlugInfo" "customLayerData"
"isUsdShadeContainer" "defaultPrim"
"libraryName" "doc"
"providesUsdShadeConnectableAPIBehavior" "endTimeCode"
"requiresUsdShadeEncapsulation" "framesPerSecond"
"skipCodeGeneration" "owner"
"startTimeCode"
"subLayers"
;; Layer metadata names ; Prim metadata
"colorConfiguration" "instanceable"))
"colorManagementSystem"
"customLayerData"
"defaultPrim"
"doc"
"endTimeCode"
"framesPerSecond"
"owner"
"startTimeCode"
"subLayers"
;; Prim metadata
"instanceable"
)
)
;; Common attribute metadata ;; Common attribute metadata
( (

View file

@ -1,3 +1,4 @@
; format-ignore
[ [
(block) ; The {}s in `def "foo" { ... Attributes / Prims here ... }` (block) ; The {}s in `def "foo" { ... Attributes / Prims here ... }`
(dictionary) ; The {}s in `dictionary foo = { string "foo" = "bar" }` (dictionary) ; The {}s in `dictionary foo = { string "foo" = "bar" }`