mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
add highlighting to tutorial inline snippets
This commit is contained in:
parent
a8cf9616da
commit
b1e73dc8ef
4 changed files with 60 additions and 47 deletions
|
@ -44,6 +44,7 @@ pub fn highlight(code: &str) -> Vec<String> {
|
|||
| Token::Backpass
|
||||
| Token::ColonEquals
|
||||
| Token::Colon
|
||||
| Token::And
|
||||
| Token::QuestionMark => {
|
||||
buf = push_html_span(buf, current_text, "kw");
|
||||
}
|
||||
|
@ -63,7 +64,6 @@ pub fn highlight(code: &str) -> Vec<String> {
|
|||
| Token::DoubleEquals
|
||||
| Token::DoubleBar
|
||||
| Token::Plus
|
||||
| Token::And
|
||||
| Token::DoubleAnd => {
|
||||
buf = push_html_span(buf, current_text, "op");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue