mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-23 06:25:10 +00:00
add highlighting for other languages
This commit is contained in:
parent
0820780e73
commit
ac07ddcbaf
4 changed files with 95 additions and 15 deletions
|
@ -626,19 +626,42 @@ samp .comment,
|
|||
code .comment {
|
||||
color: var(--green);
|
||||
}
|
||||
/* Number, String, Tag, Type literals */
|
||||
|
||||
/* Number, String, Tag literals */
|
||||
samp .storage.type,
|
||||
code .storage.type,
|
||||
samp .string,
|
||||
code .string,
|
||||
samp .string.begin,
|
||||
code .string.begin,
|
||||
samp .string.end,
|
||||
code .string.end,
|
||||
samp .constant,
|
||||
code .constant,
|
||||
samp .literal,
|
||||
code .literal {
|
||||
color: var(--cyan);
|
||||
}
|
||||
|
||||
/* Keywords and punctuation */
|
||||
samp .kw,
|
||||
samp .keyword,
|
||||
code .keyword,
|
||||
samp .punctuation.section,
|
||||
code .punctuation.section,
|
||||
samp .punctuation.separator,
|
||||
code .punctuation.separator,
|
||||
samp .punctuation.terminator,
|
||||
code .punctuation.terminator,
|
||||
samp .kw,
|
||||
code .kw {
|
||||
color: var(--magenta);
|
||||
color: var(--magenta);
|
||||
}
|
||||
|
||||
/* Operators */
|
||||
samp .op,
|
||||
code .op {
|
||||
code .op,
|
||||
samp .keyword.operator,
|
||||
code .keyword.operator {
|
||||
color: var(--orange);
|
||||
}
|
||||
|
||||
|
@ -649,12 +672,22 @@ code .delimeter {
|
|||
}
|
||||
|
||||
/* Variables modules and field names */
|
||||
samp .function,
|
||||
code .function,
|
||||
samp .meta.group,
|
||||
code .meta.group,
|
||||
samp .meta.block,
|
||||
code .meta.block,
|
||||
samp .lowerident,
|
||||
code .lowerident {
|
||||
color: var(--blue);
|
||||
}
|
||||
|
||||
/* Types, Tags, and Modules */
|
||||
samp .type,
|
||||
code .type,
|
||||
samp .meta.path,
|
||||
code .meta.path,
|
||||
samp .upperident,
|
||||
code .upperident {
|
||||
color: var(--green);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue