just-highlighter: pre call out to shebang regions

This commit is contained in:
David Arnold 2020-09-15 16:10:40 -05:00 committed by GitHub
parent 3770baaab0
commit 3857696df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,10 +51,13 @@ add-highlighter shared/justfile/comment region '#' '$' fill comment
add-highlighter shared/justfile/inline region '`' '`' ref sh add-highlighter shared/justfile/inline region '`' '`' ref sh
add-highlighter shared/justfile/shell region '^\h+' '^[^\h]' group add-highlighter shared/justfile/body region '^\h+' '^[^\h]' group
add-highlighter shared/justfile/shell/ ref sh add-highlighter shared/justfile/body/interpreters regions
add-highlighter shared/justfile/shell/ regex '(\{{2})([\w-]+)(\}{2})' 1:operator 2:variable 3:operator add-highlighter shared/justfile/body/interpreters/defaultshell default-region group
add-highlighter shared/justfile/shell/ regex '^\h+(@)' 1:operator add-highlighter shared/justfile/body/interpreters/defaultshell/ ref sh
add-highlighter shared/justfile/body/interpreters/defaultshell/ regex '^\h+(@)' 1:operator
add-highlighter shared/justfile/body/ regex '(\{{2})([\w-]+)(\}{2})' 1:operator 2:variable 3:operator
} }