change @ token an UpperIdent

This commit is contained in:
Luke Boswell 2023-11-23 17:11:21 +11:00
parent 3d8884a96d
commit 57f7a79a52
No known key found for this signature in database
GPG Key ID: F6DB3C9DB47377B0

View File

@ -45,7 +45,6 @@ pub fn highlight(code: &str) -> Vec<String> {
| Token::ColonEquals
| Token::Colon
| Token::And
| Token::AtSign
| Token::QuestionMark => {
buf = push_html_span(buf, current_text, "kw");
}
@ -79,7 +78,8 @@ pub fn highlight(code: &str) -> Vec<String> {
buf = push_html_span(buf, current_text, "delimeter");
}
// Types, Tags, and Modules
Token::UpperIdent => {
Token::UpperIdent
| Token::AtSign => {
buf = push_html_span(buf, current_text, "upperident");
}
// Variables modules and field names