As an example, git diff --word-diff old.sh new.sh produces:
diff --git a/old.sh b/new.sh
index 18237f5..208b37d 100644
--- a/old.sh
+++ b/new.sh
@@ -1,8 +1,22 @@
{+GRUB_TIMEOUT="15"+}
{+ # Original:+} GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
{+# Original: Identical+}
GRUB_DEFAULT="saved"
{+# Original: Identical+}
GRUB_DISABLE_SUBMENU="true"
{+# Original: GRUB_DISABLE_SUBMENU=true+}
{+GRUB_TERMINAL_OUTPUT="gfxterm"+}
{+ # Original:+} GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.luks.uuid=luks-31b94f4a-915c-47ee-af7a-a7c948b23cf4 {+quiet"+}
{+ # Original: GRUB_CMDLINE_LINUX="rd.luks.uuid=luks-31b94f4a-915c-47ee-af7a-a7c948b23cf4+} rhgb quiet"
{+GRUB_DISABLE_RECOVERY="false"+}
{+ # Original:+} GRUB_DISABLE_RECOVERY="true"
{+GRUB_ENABLE_BLSCFG="true"+}
{+ # Original:+} GRUB_ENABLE_BLSCFG=true
{+# Reason: https://discussion.fedoraproject.org/t/missing-boot-entries-with-grub-enable-blscfg-true/70805/3+}
{+GRUB_GFXMODE="2560x1600,auto"+}
{+ # Original: None+}
{+GRUB_DISABLE_OS_PROBER="true"+}
{+ # Original: None+}
{+ # Reason: https://github.com/MaddieM4/os-prober/issues/5#issue-777438588+}
A real-world usage is:
sam
(Sam Saffron)
2
I think it is best reporting this to hljs on GitHub, given it is an issue with the default diff implementation:
Discourse really can not control this easily, we simply pull the changes from upstream.
1 curtida
@sam, thanks. In retrospect, this shan’t be possible:
1 curtida
sam
(Sam Saffron)
4
Technically a theme component can ship a different grammer, it is complicated but doable imo.
1 curtida