PyFile:PatternMatchingRecoveryDanglingBracketsInNestedPatterns.py
  PyMatchStatement
    PsiElement(Py:MATCH_KEYWORD)('match')
    PsiWhiteSpace(' ')
    PyReferenceExpression: x
      PsiElement(Py:IDENTIFIER)('x')
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PyCaseClause
      PsiElement(Py:CASE_KEYWORD)('case')
      PsiWhiteSpace(' ')
      PySequencePattern
        PsiElement(Py:LBRACKET)('[')
        PyMappingPattern
          PsiElement(Py:LBRACE)('{')
          PyKeyValuePattern
            PyLiteralPattern
              PyStringLiteralExpression: foo
                PsiElement(Py:SINGLE_QUOTED_STRING)(''foo'')
            PsiElement(Py:COLON)(':')
            PsiWhiteSpace(' ')
            PyGroupPattern
              PsiElement(Py:LPAR)('(')
              PyLiteralPattern
                PyNumericLiteralExpression
                  PsiElement(Py:INTEGER_LITERAL)('42')
              PsiErrorElement:')' expected
                <empty list>
        PsiElement(Py:RBRACKET)(']')
      PsiElement(Py:COLON)(':')
      PsiWhiteSpace('\n        ')
      PyStatementList
        PyPassStatement
          PsiElement(Py:PASS_KEYWORD)('pass')
          PsiErrorElement:End of statement expected
            <empty list>
    PsiWhiteSpace('\n    ')
    PyCaseClause
      PsiElement(Py:CASE_KEYWORD)('case')
      PsiWhiteSpace(' ')
      PyClassPattern
        PyReferenceExpression: Class
          PsiElement(Py:IDENTIFIER)('Class')
        PyPatternArgumentList
          PsiElement(Py:LPAR)('(')
          PySequencePattern
            PsiElement(Py:LBRACKET)('[')
            PyMappingPattern
              PsiElement(Py:LBRACE)('{')
              PyKeyValuePattern
                PyLiteralPattern
                  PyStringLiteralExpression: foo
                    PsiElement(Py:SINGLE_QUOTED_STRING)(''foo'')
                PsiElement(Py:COLON)(':')
                PsiWhiteSpace(' ')
                PyLiteralPattern
                  PyBoolLiteralExpression
                    PsiElement(Py:TRUE_KEYWORD)('True')
              PsiErrorElement:'}' expected
                <empty list>
          PsiElement(Py:RPAR)(')')
      PsiElement(Py:COLON)(':')
      PsiWhiteSpace('\n        ')
      PyStatementList
        PyPassStatement
          PsiElement(Py:PASS_KEYWORD)('pass')
          PsiErrorElement:End of statement expected
            <empty list>
    PsiWhiteSpace('\n    ')
    PyCaseClause
      PsiElement(Py:CASE_KEYWORD)('case')
      PsiWhiteSpace(' ')
      PyMappingPattern
        PsiElement(Py:LBRACE)('{')
        PyKeyValuePattern
          PyLiteralPattern
            PyStringLiteralExpression: foo
              PsiElement(Py:SINGLE_QUOTED_STRING)(''foo'')
          PsiElement(Py:COLON)(':')
          PsiWhiteSpace(' ')
          PySequencePattern
            PsiElement(Py:LBRACKET)('[')
            PyClassPattern
              PyReferenceExpression: Class
                PsiElement(Py:IDENTIFIER)('Class')
              PyPatternArgumentList
                PsiElement(Py:LPAR)('(')
                PyLiteralPattern
                  PyNumericLiteralExpression
                    PsiElement(Py:INTEGER_LITERAL)('1')
                PsiErrorElement:')' expected
                  <empty list>
        PsiElement(Py:RBRACE)('}')
      PsiElement(Py:COLON)(':')
      PsiWhiteSpace('\n        ')
      PyStatementList
        PyPassStatement
          PsiElement(Py:PASS_KEYWORD)('pass')