Files
overleaf-cep/services/web/frontend/js/features/source-editor/lezer-bibtex/highlight.mjs
T
Eric Mc Sween d9cf720566 Merge pull request #31239 from overleaf/em-bibtex-grammar
Improvements to the lezer grammar for BibTeX

GitOrigin-RevId: 33ece6f3c6a34380aa7b2a46ff624aff3ccf8a10
2026-02-05 09:05:44 +00:00

18 lines
464 B
JavaScript

import { styleTags, tags as t } from '@lezer/highlight'
export const highlighting = styleTags({
'EntryCommand/...': t.keyword,
'StringCommand/...': t.keyword,
'PreambleCommand/...': t.keyword,
'CommentCommand/...': t.keyword,
FieldName: t.name,
CitationKey: t.name,
'StringLiteral/...': t.string,
NumberLiteral: t.number,
StringName: t.variableName,
'#': t.operator,
Comment: t.comment,
'CommentBody/...': t.comment,
Junk: t.comment,
})