File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 # function definition
88 - identifier : " fn [a-z0-9_]+"
99 # Reserved words
10- - statement : " \\ b(abstract|alignof|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\\ b"
10+ - statement : " \\ b(abstract|alignof|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|false|final|fn|for|gen| if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|try |unsafe|unsized|use|virtual|where|while|yield)\\ b"
1111 # macros
1212 - special : " [a-z_]+!"
1313 # Constants
1919 # Traits/Enums/Structs/Types/etc.
2020 - type : " \\ b[A-Z]+[a-zA-Z_0-9]*[a-z]+[a-zA-Z_0-9]*\\ b"
2121 # Builtin types that start with lowercase.
22- - type : " \\ b(bool|str|isize|usize| ((i|u)(8|16|32|64))|f32|f64 )\\ b"
22+ - type : " \\ b(bool|str|char| ((i|u)(8|16|32|64|128|size ))|f(16|32|64|128) )\\ b"
2323
2424 - constant.string :
2525 start : " [bc]?\" "
You can’t perform that action at this time.
0 commit comments