aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-10-17 15:54:28 +0200
committerGitHub <noreply@github.com>2025-10-17 13:54:28 +0000
commit846d51137b8cbc030ab94edf9dc33968ddcdb195 (patch)
treee4fe9892debc7ee6c44126a1c50c8773b9a11a96 /runtime
parentdocs(readme): remove wiki link (diff)
downloadnvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.tar
nvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.tar.gz
nvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.tar.bz2
nvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.tar.lz
nvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.tar.xz
nvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.tar.zst
nvim-treesitter-846d51137b8cbc030ab94edf9dc33968ddcdb195.zip
feat(julia): update builtin functions and types (#8203)
Update to Julia 1.12 (sync with upstream)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/julia/highlights.scm31
1 files changed, 17 insertions, 14 deletions
diff --git a/runtime/queries/julia/highlights.scm b/runtime/queries/julia/highlights.scm
index 9a82c5d41..de32c67ed 100644
--- a/runtime/queries/julia/highlights.scm
+++ b/runtime/queries/julia/highlights.scm
@@ -45,12 +45,13 @@
(identifier) @function.macro)))
; Built-in functions
-; filter(name -> Base.eval(Core, name) isa Core.Builtin, names(Core))
+; print.("\"", filter(name -> getglobal(Core, name) isa Core.Builtin, names(Core)), "\" ")
((identifier) @function.builtin
(#any-of? @function.builtin
- "applicable" "fieldtype" "getfield" "getglobal" "invoke" "isa" "isdefined" "modifyfield!"
- "modifyglobal!" "nfields" "replacefield!" "replaceglobal!" "setfield!" "setfieldonce!"
- "setglobal!" "setglobalonce!" "swapfield!" "swapglobal!" "throw" "tuple" "typeassert" "typeof"))
+ "applicable" "fieldtype" "getfield" "getglobal" "invoke" "isa" "isdefined" "isdefinedglobal"
+ "modifyfield!" "modifyglobal!" "nfields" "replacefield!" "replaceglobal!" "setfield!"
+ "setfieldonce!" "setglobal!" "setglobalonce!" "swapfield!" "swapglobal!" "throw" "tuple"
+ "typeassert" "typeof"))
; Type definitions
(type_head
@@ -91,19 +92,21 @@
(#any-of? @operator "<:" ">:"))
; Built-in types
-; filter(name -> typeof(Base.eval(Core, name)) in [DataType, UnionAll], names(Core))
+; print.("\"", filter(name -> typeof(Base.eval(Core, name)) in [DataType, UnionAll], names(Core)), "\" ")
((identifier) @type.builtin
(#any-of? @type.builtin
"AbstractArray" "AbstractChar" "AbstractFloat" "AbstractString" "Any" "ArgumentError" "Array"
- "AssertionError" "Bool" "BoundsError" "Char" "ConcurrencyViolationError" "Cvoid" "DataType"
- "DenseArray" "DivideError" "DomainError" "ErrorException" "Exception" "Expr" "Float16" "Float32"
- "Float64" "Function" "GlobalRef" "IO" "InexactError" "InitError" "Int" "Int128" "Int16" "Int32"
- "Int64" "Int8" "Integer" "InterruptException" "LineNumberNode" "LoadError" "Method"
- "MethodError" "Module" "NTuple" "NamedTuple" "Nothing" "Number" "OutOfMemoryError"
- "OverflowError" "Pair" "Ptr" "QuoteNode" "ReadOnlyMemoryError" "Real" "Ref" "SegmentationFault"
- "Signed" "StackOverflowError" "String" "Symbol" "Task" "Tuple" "Type" "TypeError" "TypeVar"
- "UInt" "UInt128" "UInt16" "UInt32" "UInt64" "UInt8" "UndefInitializer" "UndefKeywordError"
- "UndefRefError" "UndefVarError" "Union" "UnionAll" "Unsigned" "VecElement" "WeakRef"))
+ "AssertionError" "AtomicMemory" "AtomicMemoryRef" "Bool" "BoundsError" "Char"
+ "ConcurrencyViolationError" "Cvoid" "DataType" "DenseArray" "DivideError" "DomainError"
+ "ErrorException" "Exception" "Expr" "FieldError" "Float16" "Float32" "Float64" "Function"
+ "GenericMemory" "GenericMemoryRef" "GlobalRef" "IO" "InexactError" "InitError" "Int" "Int128"
+ "Int16" "Int32" "Int64" "Int8" "Integer" "InterruptException" "LineNumberNode" "LoadError"
+ "Memory" "MemoryRef" "Method" "MethodError" "Module" "NTuple" "NamedTuple" "Nothing" "Number"
+ "OutOfMemoryError" "OverflowError" "Pair" "Ptr" "QuoteNode" "ReadOnlyMemoryError" "Real" "Ref"
+ "SegmentationFault" "Signed" "StackOverflowError" "String" "Symbol" "Task" "Tuple" "Type"
+ "TypeError" "TypeVar" "UInt" "UInt128" "UInt16" "UInt32" "UInt64" "UInt8" "UndefInitializer"
+ "UndefKeywordError" "UndefRefError" "UndefVarError" "Union" "UnionAll" "Unsigned" "VecElement"
+ "WeakRef"))
; Keywords
[