From 9f2a9fce3dfa157537192f6ef396d631ad62f0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Sun, 7 Dec 2025 20:53:00 +0100 Subject: [PATCH] syntax/sh: Improve `heredoc` detection - allow spaces between optional '-' and delimiter - allow additional characters as delimiter --- runtime/syntax/sh.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/syntax/sh.yaml b/runtime/syntax/sh.yaml index e6f75a80d1..8d1f91359d 100644 --- a/runtime/syntax/sh.yaml +++ b/runtime/syntax/sh.yaml @@ -57,8 +57,8 @@ rules: rules: [] - constant.string: - start: "<<[^\\s]+[-~.]*[A-Za-z0-9]+$" - end: "^[^\\s]+[A-Za-z0-9]+$" + start: "<<-?[\\s]*[\\w,.:~#!§$%=?@*+-]+$" + end: "^[\\w,.:~#!§$%=?@*+-]+$" skip: "\\\\." rules: []