mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(julia): added missing String and AbstractString builtin types (#5440)
* feat(julia): added missing String and AbstractString builtin types * feat(juia): added all public built-in types in Core and Base * feat(julia): removed private types from built-in type list
This commit is contained in:
parent
b5873bacb4
commit
a255654459
1 changed files with 215 additions and 27 deletions
|
|
@ -114,35 +114,223 @@
|
||||||
|
|
||||||
;; Builtins
|
;; Builtins
|
||||||
|
|
||||||
|
;; This list was generated with:
|
||||||
|
;;
|
||||||
|
;; istype(x) = typeof(x) === DataType || typeof(x) === UnionAll
|
||||||
|
;; get_types(m) = filter(x -> istype(Base.eval(m, x)), names(m))
|
||||||
|
;; type_names = sort(union(get_types(Core), get_types(Base)))
|
||||||
|
;;
|
||||||
((identifier) @type.builtin
|
((identifier) @type.builtin
|
||||||
(#any-of? @type.builtin
|
(#any-of? @type.builtin
|
||||||
"Type" "DataType" "Any" "Union" "UnionAll" "Tuple" "NTuple" "NamedTuple"
|
"AbstractArray"
|
||||||
"Val" "Nothing" "Some" "Enum" "Expr" "Symbol" "Module" "Function" "ComposedFunction"
|
"AbstractChannel"
|
||||||
"Number" "Real" "AbstractFloat" "Integer" "Signed" "AbstractIrrational"
|
"AbstractChar"
|
||||||
"Fix1" "Fix2" "Missing" "Cmd" "EnvDict" "VersionNumber" "ArgumentError"
|
"AbstractDict"
|
||||||
"AssertionError" "BoundsError" "CompositeException" "DimensionMismatch"
|
"AbstractDisplay"
|
||||||
"DivideError" "DomainError" "EOFError" "ErrorException" "InexactError"
|
"AbstractFloat"
|
||||||
"InterruptException" "KeyError" "LoadError" "MethodError" "OutOfMemoryError"
|
"AbstractIrrational"
|
||||||
"ReadOnlyMemoryError" "OverflowError" "ProcessFailedException" "StackOverflowError"
|
"AbstractLock"
|
||||||
"SystemError" "TypeError" "UndefKeywordError" "UndefRefError" "UndefVarError"
|
"AbstractMatch"
|
||||||
"StringIndexError" "InitError" "ExponentialBackOff" "Timer" "AsyncCondition"
|
"AbstractMatrix"
|
||||||
"ParseError" "QuoteNode" "IteratorSize" "IteratorEltype" "AbstractRange"
|
"AbstractPattern"
|
||||||
"OrdinalRange" "AbstractUnitRange" "StepRange" "UnitRange" "LinRange" "AbstractDict"
|
"AbstractRange"
|
||||||
"Dict" "IdDict" "WeakKeyDict" "ImmutableDict" "AbstractSet" "Set" "BitSet" "Pair"
|
"AbstractSet"
|
||||||
"Pairs" "OneTo" " StepRangeLen" "RoundingMode" "Float16" "Float32" "Float64"
|
"AbstractSlices"
|
||||||
"BigFloat" "Bool" "Int" "Int8" "UInt8" "Int16" "UInt16" "Int32" "UInt32" "Int64"
|
"AbstractString"
|
||||||
"UInt64" "Int128" "UInt128" "BigInt" "Complex" "Rational" "Irrational" "AbstractChar"
|
"AbstractUnitRange"
|
||||||
"Char" "SubString" "Regex" "SubstitutionString" "RegexMatch" "AbstractArray"
|
"AbstractVecOrMat"
|
||||||
"AbstractVector" "AbstractMatrix" "AbstractVecOrMat" "Array" "UndefInitializer"
|
"AbstractVector"
|
||||||
"Vector" "Matrix" "VecOrMat" "DenseArray" "DenseVector" "DenseMatrix" "DenseVecOrMat"
|
"Any"
|
||||||
"StridedArray" "StridedVector" "StridedMatrix" "StridedVecOrMat" "BitArray" "Dims"
|
"ArgumentError"
|
||||||
"SubArray" "Task" "Condition" "Event" "Semaphore" "AbstractLniock" "ReentrantLock"
|
"Array"
|
||||||
"Channel" "Atomic" "SpinLock" "RawFD" "IOStream" "IOBuffer" "AbstractDisplay" "MIME"
|
"AssertionError"
|
||||||
"TextDisplay" "PartialQuickSort" "Ordering" "ReverseOrdering" "By" "Lt" "Perm"
|
"Atomic"
|
||||||
"Stateful" "CFunction" "Ptr" "Ref" "Cchar" "Cuchar" "Cshort" "Cstring" "Cushort"
|
"BigFloat"
|
||||||
"Cint" "Cuint" "Clong" "Culong" "Clonglong" "Culonglong" "Cintmax_t" "Cuintmax_t"
|
"BigInt"
|
||||||
"Csize_t" "Cssize_t" "Cptrdiff_t" "Cwchar_t" "Cwstring" "Cfloat" "Cdouble" "Tmstruct"
|
"BitArray"
|
||||||
"StackFrame" "StackTrace"))
|
"BitMatrix"
|
||||||
|
"BitSet"
|
||||||
|
"BitVector"
|
||||||
|
"Bool"
|
||||||
|
"BoundsError"
|
||||||
|
"By"
|
||||||
|
"CanonicalIndexError"
|
||||||
|
"CapturedException"
|
||||||
|
"CartesianIndex"
|
||||||
|
"CartesianIndices"
|
||||||
|
"Cchar"
|
||||||
|
"Cdouble"
|
||||||
|
"Cfloat"
|
||||||
|
"Channel"
|
||||||
|
"Char"
|
||||||
|
"Cint"
|
||||||
|
"Cintmax_t"
|
||||||
|
"Clong"
|
||||||
|
"Clonglong"
|
||||||
|
"Cmd"
|
||||||
|
"Colon"
|
||||||
|
"ColumnSlices"
|
||||||
|
"Complex"
|
||||||
|
"ComplexF16"
|
||||||
|
"ComplexF32"
|
||||||
|
"ComplexF64"
|
||||||
|
"ComposedFunction"
|
||||||
|
"CompositeException"
|
||||||
|
"ConcurrencyViolationError"
|
||||||
|
"Condition"
|
||||||
|
"Cptrdiff_t"
|
||||||
|
"Cshort"
|
||||||
|
"Csize_t"
|
||||||
|
"Cssize_t"
|
||||||
|
"Cstring"
|
||||||
|
"Cuchar"
|
||||||
|
"Cuint"
|
||||||
|
"Cuintmax_t"
|
||||||
|
"Culong"
|
||||||
|
"Culonglong"
|
||||||
|
"Cushort"
|
||||||
|
"Cvoid"
|
||||||
|
"Cwchar_t"
|
||||||
|
"Cwstring"
|
||||||
|
"DataType"
|
||||||
|
"DenseArray"
|
||||||
|
"DenseMatrix"
|
||||||
|
"DenseVecOrMat"
|
||||||
|
"DenseVector"
|
||||||
|
"Dict"
|
||||||
|
"DimensionMismatch"
|
||||||
|
"Dims"
|
||||||
|
"DivideError"
|
||||||
|
"DomainError"
|
||||||
|
"EOFError"
|
||||||
|
"Enum"
|
||||||
|
"ErrorException"
|
||||||
|
"Exception"
|
||||||
|
"ExponentialBackOff"
|
||||||
|
"Expr"
|
||||||
|
"Float16"
|
||||||
|
"Float32"
|
||||||
|
"Float64"
|
||||||
|
"Function"
|
||||||
|
"GlobalRef"
|
||||||
|
"HTML"
|
||||||
|
"IO"
|
||||||
|
"IOBuffer"
|
||||||
|
"IOContext"
|
||||||
|
"IOStream"
|
||||||
|
"IdDict"
|
||||||
|
"IndexCartesian"
|
||||||
|
"IndexLinear"
|
||||||
|
"IndexStyle"
|
||||||
|
"InexactError"
|
||||||
|
"InitError"
|
||||||
|
"Int"
|
||||||
|
"Int128"
|
||||||
|
"Int16"
|
||||||
|
"Int32"
|
||||||
|
"Int64"
|
||||||
|
"Int8"
|
||||||
|
"Integer"
|
||||||
|
"InterruptException"
|
||||||
|
"InvalidStateException"
|
||||||
|
"Irrational"
|
||||||
|
"KeyError"
|
||||||
|
"LazyString"
|
||||||
|
"LinRange"
|
||||||
|
"LineNumberNode"
|
||||||
|
"LinearIndices"
|
||||||
|
"LoadError"
|
||||||
|
"Lt"
|
||||||
|
"MIME"
|
||||||
|
"Matrix"
|
||||||
|
"Method"
|
||||||
|
"MethodError"
|
||||||
|
"Missing"
|
||||||
|
"MissingException"
|
||||||
|
"Module"
|
||||||
|
"NTuple"
|
||||||
|
"NamedTuple"
|
||||||
|
"Nothing"
|
||||||
|
"Number"
|
||||||
|
"Ordering"
|
||||||
|
"OrdinalRange"
|
||||||
|
"OutOfMemoryError"
|
||||||
|
"OverflowError"
|
||||||
|
"Pair"
|
||||||
|
"ParseError"
|
||||||
|
"PartialQuickSort"
|
||||||
|
"Perm"
|
||||||
|
"PermutedDimsArray"
|
||||||
|
"Pipe"
|
||||||
|
"ProcessFailedException"
|
||||||
|
"Ptr"
|
||||||
|
"QuoteNode"
|
||||||
|
"Rational"
|
||||||
|
"RawFD"
|
||||||
|
"ReadOnlyMemoryError"
|
||||||
|
"Real"
|
||||||
|
"ReentrantLock"
|
||||||
|
"Ref"
|
||||||
|
"Regex"
|
||||||
|
"RegexMatch"
|
||||||
|
"Returns"
|
||||||
|
"ReverseOrdering"
|
||||||
|
"RoundingMode"
|
||||||
|
"RowSlices"
|
||||||
|
"SegmentationFault"
|
||||||
|
"Set"
|
||||||
|
"Signed"
|
||||||
|
"Slices"
|
||||||
|
"Some"
|
||||||
|
"SpinLock"
|
||||||
|
"StackFrame"
|
||||||
|
"StackOverflowError"
|
||||||
|
"StackTrace"
|
||||||
|
"Stateful"
|
||||||
|
"StepRange"
|
||||||
|
"StepRangeLen"
|
||||||
|
"StridedArray"
|
||||||
|
"StridedMatrix"
|
||||||
|
"StridedVecOrMat"
|
||||||
|
"StridedVector"
|
||||||
|
"String"
|
||||||
|
"StringIndexError"
|
||||||
|
"SubArray"
|
||||||
|
"SubString"
|
||||||
|
"SubstitutionString"
|
||||||
|
"Symbol"
|
||||||
|
"SystemError"
|
||||||
|
"Task"
|
||||||
|
"TaskFailedException"
|
||||||
|
"Text"
|
||||||
|
"TextDisplay"
|
||||||
|
"Timer"
|
||||||
|
"Tmstruct"
|
||||||
|
"Tuple"
|
||||||
|
"Type"
|
||||||
|
"TypeError"
|
||||||
|
"TypeVar"
|
||||||
|
"UInt"
|
||||||
|
"UInt128"
|
||||||
|
"UInt16"
|
||||||
|
"UInt32"
|
||||||
|
"UInt64"
|
||||||
|
"UInt8"
|
||||||
|
"UndefInitializer"
|
||||||
|
"UndefKeywordError"
|
||||||
|
"UndefRefError"
|
||||||
|
"UndefVarError"
|
||||||
|
"Union"
|
||||||
|
"UnionAll"
|
||||||
|
"UnitRange"
|
||||||
|
"Unsigned"
|
||||||
|
"Val"
|
||||||
|
"VecElement"
|
||||||
|
"VecOrMat"
|
||||||
|
"Vector"
|
||||||
|
"VersionNumber"
|
||||||
|
"WeakKeyDict"
|
||||||
|
"WeakRef"))
|
||||||
|
|
||||||
((identifier) @variable.builtin
|
((identifier) @variable.builtin
|
||||||
(#any-of? @variable.builtin "begin" "end")
|
(#any-of? @variable.builtin "begin" "end")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue