From d576ebc91969ec79430e337b6da11c2f1866fbe8 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 7 Dec 2022 13:34:42 +0300 Subject: [PATCH] add highlight tests for keywords --- test/highlight/keyword.d2 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/highlight/keyword.d2 diff --git a/test/highlight/keyword.d2 b/test/highlight/keyword.d2 new file mode 100644 index 0000000..b6f6ff9 --- /dev/null +++ b/test/highlight/keyword.d2 @@ -0,0 +1,24 @@ +direction: right; +# <- keyword +# ^ punctuation.delimiter +# ^ string +# ^ punctuation.delimiter + +baaaz.style: { + # <- variable + # ^ keyword + fill: red + # <- keyword + # ^ string +} + +foo: Label { + shape: oval + # <- keyword + # ^ string + + style.fill: red; + # <- keyword + # ^ keyword +} +