rime 2 stars on github

/

syntax roles

a syntax role is what a piece of code is (a function, a keyword, a comment, a json key) and the color and style it gets. neovim, zed and vs code share one table of roles, SYNTAX in tools/build.py, so a function is blue in all three. this is that table, read from the script when the site is built.

rolecolorstylenote
commentcommentitalic
comment.tagmuteditalictags inside doc comments, such as @param
stringgreen
string.documentationgreen
string.escapecyan
string.regexpcyan
string.specialcyan
string.special.symbolpink
numberpink
booleanpink
constantpinkalso enum members
constant.builtincyannull, undefined
variablefg
variable.builtincyanself, this
variable.parameterfg
variable.memberfgfields and property access
propertyredkeys in key/value data such as JSON, YAML and CSS
functionblue
function.builtincyan
function.macrocyan
constructorcyan
attributecyandecorators and annotations
typeyellow
type.builtincyan
moduleyellow
lifetimepinkitalic
labelyellow
keywordviolet
keyword.conditionalredbold
keyword.repeatyellow
keyword.returnred
keyword.exceptionred
keyword.importviolet
keyword.modifierviolet
keyword.directiveyellowpreprocessor
operatormuted
punctuationsteel
punctuation.specialcyanstring interpolation brackets
tagred
tag.attributeyellow
selectoryellow
selector.pseudoviolet
markup.headingbluebold
markup.strongtextbold
markup.italictextitalic
markup.strikethroughtextstrikethrough
markup.quotemuteditalic
markup.listred
markup.rawgreen
markup.link.labelcyan
markup.link.urlblueunderline
diff.plusgreen
diff.minusred
diff.deltablue
diff.rangeviolet
deprecatedtextstrikethrough

keywords

rime splits keywords by kind instead of painting them one color: declarations are violet, loops yellow, conditionals bold rose, and returns and exceptions rose. the neovim page shows how to make them one color again.

where the editors differ