Skip to content

Commit

Permalink
syntax: sh: Add here document as string region (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar authored Oct 21, 2023
1 parent f7244d0 commit 041ee00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/syntax/sh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ rules:
skip: "\\\\."
rules: []

- constant.string:
start: "<<[^\\s]+[-~.]*[A-Za-z0-9]+$"
end: "^[^\\s]+[A-Za-z0-9]+$"
skip: "\\\\."
rules: []

- comment:
start: "(^|\\s)#"
end: "$"
Expand Down

0 comments on commit 041ee00

Please sign in to comment.