shrimp/src/parser/highlight.ts
2025-11-03 21:28:00 -08:00

21 lines
523 B
TypeScript

import { styleTags, tags } from '@lezer/highlight'
export const highlighting = styleTags({
Identifier: tags.name,
Number: tags.number,
String: tags.string,
Boolean: tags.bool,
Do: tags.keyword,
keyword: tags.keyword,
end: tags.keyword,
':': tags.keyword,
Null: tags.keyword,
Regex: tags.regexp,
Operator: tags.operator,
Word: tags.variableName,
Command: tags.function(tags.variableName),
'Params/Identifier': tags.definition(tags.variableName),
Paren: tags.paren,
Comment: tags.comment,
})