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

        comment: 'Considering making this give a warning, as brackets is best practice'
        name: 'punctuation.subscript.latex'
        match: '_\\s*(\\\\[a-zA-Z]+|.)?'
    }
    escapedCharacter: {
        comment: 'Finds escaped characters like \$ and \%. Uses this regex so unique capture groups can be used.'

                comment: 'When in display math, the exit can only be $$ or \]'
                name: 'invalid.illegal.latex'
                match: '(?<=[^\\\\])(\\$)(?=[^\\$])|(\\\\(\\[|\\(|\\)))'
            }
            {
                include: '$base'
            }
        ]
    }
