overleaf/services/web/frontend/js/features/source-editor/lezer-bibtex/highlight.mjs
Mathias Jakobsen 67e7621633 Merge pull request #13572 from overleaf/mj-bibtex-grammar
[cm6] Add support for bibtex

GitOrigin-RevId: 28bc8e47c53df1612c1e30cf690e893b0bbf500c
2023-07-17 10:47:59 +00:00

15 lines
392 B
JavaScript

import { styleTags, tags as t } from '@lezer/highlight'
export const highlighting = styleTags({
LiteralString: t.string,
'BracedString/...': t.string,
Number: t.number,
Identifier: t.name,
'EntryName/...': t.keyword,
FieldName: t.attributeName,
Expression: t.attributeValue,
'#': t.operator,
StringKeyword: t.keyword,
StringName: t.variableName,
Comment: t.comment,
})