1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 07:15:52 +03:00

Remove unneeded capture groups from rust highlighting

This commit is contained in:
Maxime Coste 2014-11-07 13:18:37 +00:00
parent 8ffecb8e77
commit 35ce3918be

View File

@ -27,10 +27,10 @@ addhl -group /rust/macro fill meta
addhl -group /rust/code regex \<(self|true|false)\> 0:value
addhl -group /rust/code regex \<(&&|\|\|)\> 0:operator
addhl -group /rust/code regex \<((match|if|else)|(as)|(assert)|(fail)|(yield)|(break|box|continue)|(extern)|(for|in|if|impl|let)|(loop|once|priv|pub)|(return)|(unsafe|while)|(use)|(fn)|(proc))\> 0:keyword
addhl -group /rust/code regex \<((mod|trait|struct|enum|type)|(mut|ref|static)|(const)|(alignof|be|do|offsetof|pure|sizeof|typeof))\> 0:attribute
addhl -group /rust/code regex \<((int|uint|float|char|bool|u8|u16|u32|u64|f32)|(f64|i8|i16|i32|i64|str))\> 0:type
addhl -group /rust/code regex \<(((Share|Copy|Send|Sized)|(Add|Sub|Mul|Div|Rem|Neg|Not)|(BitAnd|BitOr|BitXor)|(Drop)|(Shl|Shr|Index)|(Option)|(Some|None)|(Result)|(Ok|Err))|((Any|AnyOwnExt|AnyRefExt|AnyMutRefExt)|(Ascii|AsciiCast|OwnedAsciiCast|AsciiStr|IntoBytes)|(ToCStr)|(Char)|(Clone)|(Eq|Ord|TotalEq|TotalOrd|Ordering|Equiv)|(Less|Equal|Greater)|(Container|Mutable|Map|MutableMap|Set|MutableSet)|(FromIterator|Extendable)|(Iterator|DoubleEndedIterator|RandomAccessIterator|CloneableIterator)|(OrdIterator|MutableDoubleEndedIterator|ExactSize)|(Num|NumCast|CheckedAdd|CheckedSub|CheckedMul)|(Signed|Unsigned|Round)|(Primitive|Int|Float|ToPrimitive|FromPrimitive)|(GenericPath|Path|PosixPath|WindowsPath)|(RawPtr)|(Buffer|Writer|Reader|Seek)|(Str|StrVector|StrSlice|OwnedStr|IntoMaybeOwned|StrBuf)|(ToStr|IntoStr)|(Tuple1|Tuple2|Tuple3|Tuple4)|(Tuple5|Tuple6|Tuple7|Tuple8)|(Tuple9|Tuple10|Tuple11|Tuple12)|(ImmutableEqVector|ImmutableTotalOrdVector|ImmutableCloneableVector)|(OwnedVector|OwnedCloneableVector|OwnedEqVector)|(MutableVector|MutableTotalOrdVector)|(Vector|VectorVector|CloneableVector|ImmutableVector)))\> 0:identifier
addhl -group /rust/code regex \<(match|if|else|as|assert|fail|yield|break|box|continue|extern|for|in|if|impl|let|loop|once|priv|pub|return|unsafe|while|use|fn|proc)\> 0:keyword
addhl -group /rust/code regex \<(mod|trait|struct|enum|type|mut|ref|static|const|alignof|be|do|offsetof|pure|sizeof|typeof)\> 0:attribute
addhl -group /rust/code regex \<(int|uint|float|char|bool|u8|u16|u32|u64|f32|f64|i8|i16|i32|i64|str)\> 0:type
addhl -group /rust/code regex \<(Share|Copy|Send|Sized|Add|Sub|Mul|Div|Rem|Neg|Not|BitAnd|BitOr|BitXor|Drop|Shl|Shr|Index|Option|Some|None|Result|Ok|Err|Any|AnyOwnExt|AnyRefExt|AnyMutRefExt|Ascii|AsciiCast|OwnedAsciiCast|AsciiStr|IntoBytes|ToCStr|Char|Clone|Eq|Ord|TotalEq|TotalOrd|Ordering|Equiv|Less|Equal|Greater|Container|Mutable|Map|MutableMap|Set|MutableSet|FromIterator|Extendable|Iterator|DoubleEndedIterator|RandomAccessIterator|CloneableIterator|OrdIterator|MutableDoubleEndedIterator|ExactSize|Num|NumCast|CheckedAdd|CheckedSub|CheckedMul|Signed|Unsigned|Round|Primitive|Int|Float|ToPrimitive|FromPrimitive|GenericPath|Path|PosixPath|WindowsPath|RawPtr|Buffer|Writer|Reader|Seek|Str|StrVector|StrSlice|OwnedStr|IntoMaybeOwned|StrBuf|ToStr|IntoStr|Tuple1|Tuple2|Tuple3|Tuple4|Tuple5|Tuple6|Tuple7|Tuple8|Tuple9|Tuple10|Tuple11|Tuple12|ImmutableEqVector|ImmutableTotalOrdVector|ImmutableCloneableVector|OwnedVector|OwnedCloneableVector|OwnedEqVector|MutableVector|MutableTotalOrdVector|Vector|VectorVector|CloneableVector|ImmutableVector)\> 0:identifier
# Commands
# ‾‾‾‾‾‾‾‾