From e98c87f6f3464596d1121794fa4f31205a5e775f Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 25 Sep 2017 12:57:39 +0200 Subject: [PATCH] [sh] update grammar --- .../syntaxes/Shell-Unix-Bash.tmLanguage.json | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/extensions/shellscript/syntaxes/Shell-Unix-Bash.tmLanguage.json b/extensions/shellscript/syntaxes/Shell-Unix-Bash.tmLanguage.json index 668424aca1b..c77a42f203a 100644 --- a/extensions/shellscript/syntaxes/Shell-Unix-Bash.tmLanguage.json +++ b/extensions/shellscript/syntaxes/Shell-Unix-Bash.tmLanguage.json @@ -4,7 +4,7 @@ "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], - "version": "https://github.com/textmate/shellscript.tmbundle/commit/c23c9e472b681db58d7f982f616144b8a34c5ee4", + "version": "https://github.com/textmate/shellscript.tmbundle/commit/1c0cc0b904bb87b18b6987109e694f9d0058656d", "fileTypes": [ "sh", "bash", @@ -771,6 +771,16 @@ "match": "\\\\[`\\\\$]", "name": "constant.character.escape.shell" }, + { + "begin": "(?<=^|;|&|\\s|`)(#)(?!\\{)", + "beginCaptures": { + "1": { + "name": "punctuation.definition.comment.shell" + } + }, + "end": "(?=`)|\\n", + "name": "comment.line.number-sign.shell" + }, { "include": "$self" } @@ -791,6 +801,16 @@ }, "name": "string.interpolated.dollar.shell", "patterns": [ + { + "begin": "(?<=^|;|&|\\s|\\()(#)(?!\\{)", + "beginCaptures": { + "1": { + "name": "punctuation.definition.comment.shell" + } + }, + "end": "(?=\\))|\\n", + "name": "comment.line.number-sign.shell" + }, { "include": "$self" } -- GitLab