我经常有调用其他脚本语言的 shell 脚本,如下所示:
#!/bin/bash
cat somefile|awk '
BEGIN
{
#This line is not auto-indented and is colored as a string constant.
...
}
{
#Same with this line.
...
}'
echo "More Bash code here."
...
有没有办法让 Emacs 将 awk 字符串识别为 awk 程序,而不仅仅是字符串常量?