syntax: allow capital letters in Rust struct/trait names

Per https://doc.rust-lang.org/reference.html#fn2, non-ASCII characters are
currently not allowed in stable Rust, so keep it ASCII-only for now.

Signed-off-by: Dirkjan Ochtman <dirkjan@ochtman.nl>
master
Dirkjan Ochtman 2016-07-21 10:21:19 +02:00 committed by Benno Schulenberg
parent 4c566c7903
commit 1349c1d02c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ color red "[a-z_]+!"
color magenta "[A-Z][A-Z_0-9]+"
# Traits/Enums/Structs/Types/...
color magenta "[A-Z][a-z0-9]+"
color magenta "[A-Z][A-Za-z0-9]+"
# Strings
color green "\".*\""