highlight.mjs 464 B

1234567891011121314151617
  1. import { styleTags, tags as t } from '@lezer/highlight'
  2. export const highlighting = styleTags({
  3. 'EntryCommand/...': t.keyword,
  4. 'StringCommand/...': t.keyword,
  5. 'PreambleCommand/...': t.keyword,
  6. 'CommentCommand/...': t.keyword,
  7. FieldName: t.name,
  8. CitationKey: t.name,
  9. 'StringLiteral/...': t.string,
  10. NumberLiteral: t.number,
  11. StringName: t.variableName,
  12. '#': t.operator,
  13. Comment: t.comment,
  14. 'CommentBody/...': t.comment,
  15. Junk: t.comment,
  16. })