Skip to content

Commit

Permalink
allow optional - for heredoc
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Sep 11, 2020
1 parent 972188c commit c3fb49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/bash.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function(hljs) {
};
const HERE_DOC = hljs.END_SAME_AS_BEGIN({
className: 'string',
begin: /<<\s*(\w+)/,
begin: /<<-?\s*(\w+)/,
end: /(\w+)/
});
const QUOTE_STRING = {
Expand Down

0 comments on commit c3fb49a

Please sign in to comment.