<document pattern="^.*\.(rs)$">

<item name="options" casecare="1"></item>

<item name="keywords" type="keywords" color="keywords" fontstyle="bold">\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|Self|self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|final|macro|override|priv|typeof|unsized|virtual|yield|try|union)\b</item>

<item name="types" type="keywords" color="type">\b(bool|char|i8|i16|i32|i64|isize|u8|u16|u32|u64|usize|f32|f64|array|slice|str|tuple)\b</item>

<item name="operator" type="item" color="operator">[-=\+\*\/\|]</item>

<item name="bracket" type="item" color="brackets">[\(\)\[\]]</item>

<item name="include" type="item" color="include" fontstyle="italic">^#include</item>

<item name="label" type="item" color="label" fontstyle="bold">^'[a-zA-Z_][a-zA-Z0-9_]*\:$</item>

<item name="preproc" type="item" color="preproc" fontstyle="italic">^#.*</item>

<item name="quotes" type="item" color="quotes">("[^\"]*")</item>

<item name="char" type="item" color="quotes">('[^']*')</item>

<item name="single comment" type="item" color="single comment" fontstyle="italic">//[^\n]*</item>

<item name="mcomment-start" type="mcomment-start" color="mcomment-start" fontstyle="italic">/\*</item>

<item name="mcomment-end" type="mcomment-end">\*/</item>

<item name="cm_mult" type="comment">/*%s*/</item>

<item name="cm_single" type="comment">//%s</item>

</document>
