mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 21:44:59 -05:00
37582f7b72
[lezer] Allow content outside declarations in bibtex GitOrigin-RevId: 8051db5567eeb52c3b12f63afafe07a7a97df650
18 lines
479 B
JavaScript
18 lines
479 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,
|
|
PreambleKeyword: t.keyword,
|
|
CommentKeyword: t.keyword,
|
|
CommentContents: t.comment,
|
|
StringName: t.variableName,
|
|
Other: t.comment,
|
|
})
|