feat(format-scripts): linewrap predicates

"format-ignore".kick()
This commit is contained in:
再生花 2024-02-23 17:42:01 +09:00 committed by GitHub
parent a29058fe8b
commit 31641d72a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 1622 additions and 1537 deletions

View file

@ -63,7 +63,13 @@
; Builtins
((identifier) @function.builtin
(#any-of? @function.builtin "_abstracttype" "_apply_iterate" "_apply_pure" "_call_in_world" "_call_in_world_total" "_call_latest" "_equiv_typedef" "_expr" "_primitivetype" "_setsuper!" "_structtype" "_typebody!" "_typevar" "applicable" "apply_type" "arrayref" "arrayset" "arraysize" "const_arrayref" "donotdelete" "fieldtype" "get_binding_type" "getfield" "ifelse" "invoke" "isa" "isdefined" "modifyfield!" "nfields" "replacefield!" "set_binding_type!" "setfield!" "sizeof" "svec" "swapfield!" "throw" "tuple" "typeassert" "typeof"))
(#any-of? @function.builtin
"_abstracttype" "_apply_iterate" "_apply_pure" "_call_in_world" "_call_in_world_total"
"_call_latest" "_equiv_typedef" "_expr" "_primitivetype" "_setsuper!" "_structtype" "_typebody!"
"_typevar" "applicable" "apply_type" "arrayref" "arrayset" "arraysize" "const_arrayref"
"donotdelete" "fieldtype" "get_binding_type" "getfield" "ifelse" "invoke" "isa" "isdefined"
"modifyfield!" "nfields" "replacefield!" "set_binding_type!" "setfield!" "sizeof" "svec"
"swapfield!" "throw" "tuple" "typeassert" "typeof"))
; Parameters
(parameter_list
@ -135,217 +141,36 @@
; type_names = sort(union(get_types(Core), get_types(Base)))
;
((identifier) @type.builtin
; format-ignore
(#any-of? @type.builtin
"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"))
"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")