Add variable highlighting widgets

This commit is contained in:
Gregory Schier
2023-02-26 15:06:14 -08:00
parent 6ee652ca75
commit f30b78ea1f
11 changed files with 403 additions and 68 deletions
@@ -0,0 +1,7 @@
import { styleTags, tags as t } from '@lezer/highlight';
export const twigHighlight = styleTags({
'if endif': t.controlKeyword,
'{{ }} {% %}': t.meta,
DirectiveContent: t.variableName,
});