highlight.mjs 479 B

123456789101112131415161718
  1. import { styleTags, tags as t } from '@lezer/highlight'
  2. export const highlighting = styleTags({
  3. LiteralString: t.string,
  4. 'BracedString/...': t.string,
  5. Number: t.number,
  6. Identifier: t.name,
  7. 'EntryName/...': t.keyword,
  8. FieldName: t.attributeName,
  9. Expression: t.attributeValue,
  10. '#': t.operator,
  11. StringKeyword: t.keyword,
  12. PreambleKeyword: t.keyword,
  13. CommentKeyword: t.keyword,
  14. CommentContents: t.comment,
  15. StringName: t.variableName,
  16. Other: t.comment,
  17. })