From 788fd5996514bc406f89364e388311ba6f202e5e Mon Sep 17 00:00:00 2001 From: Steve Ramage Date: Sun, 21 Jun 2026 13:00:41 -0700 Subject: [PATCH] docs: show an identifier example (Description=) in the color settings preview (#467 #342) The color-settings preview had grammar examples for enum/literal/operator but none for the Identifier role, so clicking "Value//Identifier (grammar)" highlighted nothing. Tag the [Unit] Description= value (a config_parse_unit_string_printf identifier) so the role has a visible example. Refs #467 #342 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../coloring/settings/UnitFileColorSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/sjrx/intellij/plugins/systemdunitfiles/coloring/settings/UnitFileColorSettings.java b/src/main/java/net/sjrx/intellij/plugins/systemdunitfiles/coloring/settings/UnitFileColorSettings.java index 3b12931..b1db238 100644 --- a/src/main/java/net/sjrx/intellij/plugins/systemdunitfiles/coloring/settings/UnitFileColorSettings.java +++ b/src/main/java/net/sjrx/intellij/plugins/systemdunitfiles/coloring/settings/UnitFileColorSettings.java @@ -53,7 +53,7 @@ public String getDemoText() { + "# (at your option) any later version.\n" + "\n" + "[Unit]\n" - + "Description=Reload Configuration from the Real Root\n" + + "Description=Reload Configuration from the Real Root\n" + "DefaultDependencies=no\n" + "Requires=initrd-root-fs.target\n" + "After=initrd-root-fs.target\n"