highlight.mjs 392 B

123456789101112131415
  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. StringName: t.variableName,
  13. Comment: t.comment,
  14. })