mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
16 lines
392 B
JavaScript
16 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,
|
||
|
})
|