mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -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
|
||||
|
||||
;; 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
|
||||
(#any-of? @type.builtin
|
||||
"Type" "DataType" "Any" "Union" "UnionAll" "Tuple" "NTuple" "NamedTuple"
|
||||
"Val" "Nothing" "Some" "Enum" "Expr" "Symbol" "Module" "Function" "ComposedFunction"
|
||||
"Number" "Real" "AbstractFloat" "Integer" "Signed" "AbstractIrrational"
|
||||
"Fix1" "Fix2" "Missing" "Cmd" "EnvDict" "VersionNumber" "ArgumentError"
|
||||
"AssertionError" "BoundsError" "CompositeException" "DimensionMismatch"
|
||||
"DivideError" "DomainError" "EOFError" "ErrorException" "InexactError"
|
||||
"InterruptException" "KeyError" "LoadError" "MethodError" "OutOfMemoryError"
|
||||
"ReadOnlyMemoryError" "OverflowError" "ProcessFailedException" "StackOverflowError"
|
||||
"SystemError" "TypeError" "UndefKeywordError" "UndefRefError" "UndefVarError"
|
||||
"StringIndexError" "InitError" "ExponentialBackOff" "Timer" "AsyncCondition"
|
||||
"ParseError" "QuoteNode" "IteratorSize" "IteratorEltype" "AbstractRange"
|
||||
"OrdinalRange" "AbstractUnitRange" "StepRange" "UnitRange" "LinRange" "AbstractDict"
|
||||
"Dict" "IdDict" "WeakKeyDict" "ImmutableDict" "AbstractSet" "Set" "BitSet" "Pair"
|
||||
"Pairs" "OneTo" " StepRangeLen" "RoundingMode" "Float16" "Float32" "Float64"
|
||||
"BigFloat" "Bool" "Int" "Int8" "UInt8" "Int16" "UInt16" "Int32" "UInt32" "Int64"
|
||||
"UInt64" "Int128" "UInt128" "BigInt" "Complex" "Rational" "Irrational" "AbstractChar"
|
||||
"Char" "SubString" "Regex" "SubstitutionString" "RegexMatch" "AbstractArray"
|
||||
"AbstractVector" "AbstractMatrix" "AbstractVecOrMat" "Array" "UndefInitializer"
|
||||
"Vector" "Matrix" "VecOrMat" "DenseArray" "DenseVector" "DenseMatrix" "DenseVecOrMat"
|
||||
"StridedArray" "StridedVector" "StridedMatrix" "StridedVecOrMat" "BitArray" "Dims"
|
||||
"SubArray" "Task" "Condition" "Event" "Semaphore" "AbstractLniock" "ReentrantLock"
|
||||
"Channel" "Atomic" "SpinLock" "RawFD" "IOStream" "IOBuffer" "AbstractDisplay" "MIME"
|
||||
"TextDisplay" "PartialQuickSort" "Ordering" "ReverseOrdering" "By" "Lt" "Perm"
|
||||
"Stateful" "CFunction" "Ptr" "Ref" "Cchar" "Cuchar" "Cshort" "Cstring" "Cushort"
|
||||
"Cint" "Cuint" "Clong" "Culong" "Clonglong" "Culonglong" "Cintmax_t" "Cuintmax_t"
|
||||
"Csize_t" "Cssize_t" "Cptrdiff_t" "Cwchar_t" "Cwstring" "Cfloat" "Cdouble" "Tmstruct"
|
||||
"StackFrame" "StackTrace"))
|
||||
"AbstractArray"
|
||||
"AbstractChannel"
|
||||
"AbstractChar"
|
||||
"AbstractDict"
|
||||
"AbstractDisplay"
|
||||
"AbstractFloat"
|
||||
"AbstractIrrational"
|
||||
"AbstractLock"
|
||||
"AbstractMatch"
|
||||
"AbstractMatrix"
|
||||
"AbstractPattern"
|
||||
"AbstractRange"
|
||||
"AbstractSet"
|
||||
"AbstractSlices"
|
||||
"AbstractString"
|
||||
"AbstractUnitRange"
|
||||
"AbstractVecOrMat"
|
||||
"AbstractVector"
|
||||
"Any"
|
||||
"ArgumentError"
|
||||
"Array"
|
||||
"AssertionError"
|
||||
"Atomic"
|
||||
"BigFloat"
|
||||
"BigInt"
|
||||
"BitArray"
|
||||
"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
|
||||
(#any-of? @variable.builtin "begin" "end")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue