       3:
         name: 'punctuation.definition.argument.end.latex'
     patterns: [
-      { include: '$base' }
+      { include: '$self' }
     ]
   }
   metaEnvMath: {

        name: 'invalid.illegal.latex'
        match: '(\\\\(\\[|\\(|\\)))'
      }
      { include: '$base' }
    ]
  }
  displayMathMode: {

    match: '''\\\\([\\`\\'\\^\\"\\~\\=\\.]\\s*(\\w|\\{\\w?\\})|[Hcklbdruv]\\{\\w?\\})'''
  }
  lineComment: {
    name: 'comment.line.percentage.latex'
    begin: '%'
    end: '$'
    patterns: [
      { include: '#magicComment' }
    ]
  }
  escapedCurlyBracket: {
    comment: 'Escaped }. Possible deprecated by escapedCharacter.'
