fork
This commit is contained in:
4
langs/rust/modifier.txt
Normal file
4
langs/rust/modifier.txt
Normal file
@ -0,0 +1,4 @@
|
||||
mut
|
||||
priv
|
||||
pub
|
||||
static
|
3
langs/rust/reserved.txt
Normal file
3
langs/rust/reserved.txt
Normal file
@ -0,0 +1,3 @@
|
||||
fn
|
||||
let
|
||||
use
|
23
langs/rust/rust.txt
Normal file
23
langs/rust/rust.txt
Normal file
@ -0,0 +1,23 @@
|
||||
### Rust LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME Rust
|
||||
VERSION 1.0.0
|
||||
|
||||
COMMENT (?default)
|
||||
PREPROCESSOR (?default)
|
||||
STRING (?default)
|
||||
|
||||
STATEMENT (?default)|\b(?alt:statement.txt)\b
|
||||
RESERVED (?default)|\b(?alt:reserved.txt)\b
|
||||
TYPE (?default)|\b(?alt:type.txt)\b
|
||||
MODIFIER (?default)|\b(?alt:modifier.txt)\b
|
||||
|
||||
ENTITY (?default)
|
||||
# TODO: the use of priorities would be suitable here, last check for &*** vars might match entity
|
||||
VARIABLE (?default)|(?default:identifier)(?=::)|\b(?<=\-\>)\s*[A-Za-z_]\w*|&(?default:identifier)\s*(?!\()
|
||||
IDENTIFIER (?default)
|
||||
CONSTANT (?default)
|
||||
OPERATOR (?default)
|
||||
SYMBOL (?default)
|
24
langs/rust/statement.txt
Normal file
24
langs/rust/statement.txt
Normal file
@ -0,0 +1,24 @@
|
||||
as
|
||||
break
|
||||
continue
|
||||
do
|
||||
else
|
||||
enum
|
||||
extern
|
||||
for
|
||||
if
|
||||
impl
|
||||
in
|
||||
loop
|
||||
match
|
||||
mod
|
||||
proc
|
||||
ref
|
||||
return
|
||||
self
|
||||
struct
|
||||
super
|
||||
trait
|
||||
type
|
||||
unsafe
|
||||
while
|
10
langs/rust/type.txt
Normal file
10
langs/rust/type.txt
Normal file
@ -0,0 +1,10 @@
|
||||
int
|
||||
uint
|
||||
f32
|
||||
f64
|
||||
i32
|
||||
i64
|
||||
true
|
||||
false
|
||||
std
|
||||
extra
|
Reference in New Issue
Block a user