Add variable highlighting widgets

This commit is contained in:
Gregory Schier
2023-02-26 15:06:14 -08:00
parent 640d2a1bb4
commit 2c0a891838
11 changed files with 403 additions and 68 deletions

View File

@@ -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,
});