Can I test a position is only scoped with source.xxx
without other scopes?
For example,
print_info_text_compact () { cat <<EOF; do_something; }
# ^^^ keyword.control.heredoc-token.shell
# ^ punctuation.definition.group.shell
This is some info text.
# <- string.unquoted.heredoc.shell
EOF
# <- keyword.control.heredoc-token.shell
# <- source.shell
I want to make sure the scope is clean after the EOF
line.