mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
d9cf720566
Improvements to the lezer grammar for BibTeX GitOrigin-RevId: 33ece6f3c6a34380aa7b2a46ff624aff3ccf8a10
18 lines
464 B
JavaScript
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,
|
|
})
|