Skip to content

Commit

Permalink
highlight bytes literals
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzcreek committed Aug 1, 2024
1 parent 7622f27 commit 103c343
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/frontend/src/highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ pub fn highlight(root: &Root, occurrences: &OccurrenceMap) -> Vec<Highlight> {
kind: HighlightKind::Keyword,
});
}
T![true] | T![false] | T![int_lit] | T![binary_lit] | T![hex_lit] | T![float_lit] => {
T![true]
| T![false]
| T![int_lit]
| T![binary_lit]
| T![hex_lit]
| T![float_lit]
| T![bytes_lit] => {
highlights.push(Highlight {
range: node.text_range(),
kind: HighlightKind::Literal,
Expand Down

0 comments on commit 103c343

Please sign in to comment.