SHELL_SCRIPT
  COMMANDS_LIST
    PIPELINE_COMMAND
      PIPELINE
        FUNCTION_DEFINITION
          PsiElement(function)('function')
          PsiWhiteSpace(' ')
          PsiElement(word)('foo')
          PsiWhiteSpace(' ')
          BLOCK
            PsiElement({)('{')
            COMPOUND_LIST
              PsiElement(\n)('\n')
              PsiErrorElement:<pipeline command> or '\n' expected, got '}'
                <empty list>
            PsiElement(})('}')