File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ contexts:
1414 - match : ^\s*(>)\s
1515 captures :
1616 1 : comment.other.shell
17- scope : comment.other.shell
1817
1918 main :
2019 - match : ^(?=\s*\$\s)
@@ -27,3 +26,12 @@ contexts:
2726 1 : comment.other.shell
2827 embed : statements
2928 escape : (?<![^\\]\\)(?<![\\]{3})\n
29+
30+ line-continuation-body :
31+ - meta_prepend : true
32+ - meta_include_prototype : false
33+ # continuation lines begin with `> `
34+ - match : ^\s*(>)\s
35+ captures :
36+ 1 : comment.other.shell
37+ pop : 1
Original file line number Diff line number Diff line change @@ -1790,7 +1790,7 @@ foo
17901790# test
17911791| ^^^^^ source.shell comment.line.number-sign
17921792echo hello, \
1793- | ^^ punctuation.separator.continuation.line
1793+ | ^ punctuation.separator.continuation.line
17941794echo This is a smiley :-\) \( I have to escape the parentheses, though! \)
17951795| ^^ constant.character.escape
17961796```
@@ -2045,7 +2045,7 @@ unclosed_paren = (
20452045function foo () {
20462046| <- markup.raw.code-fence.shell.markdown-gfm meta.function.shell keyword.declaration.function.shell
20472047}
2048- | <- markup.raw.code-fence.shell.markdown-gfm meta.function.shell meta.compound.shell punctuation.section.compound.end.shell
2048+ | <- markup.raw.code-fence.shell.markdown-gfm meta.function.shell punctuation.section
20492049
20502050$ ls ~
20512051| <- markup.raw.code-fence.shell.markdown-gfm source.shell.interactive comment.other.shell
You can’t perform that action at this time.
0 commit comments