                 name: 'variable.parameter.optional.latex'
             9:
                 name: 'punctuation.definition.optional.end.latex'
-        end: '(\\\\)(end)(\\{)(figure)(\\})'
+        end: '(\\\\)(end)(\\{)(\\4)(\\})'
         endCaptures:
             1:
                 name: 'punctuation.definition.function.latex'

        #     }
        # ]
    }
    makeatsomething: {
        comment: 'Matches the makeat(letter|other) commands so that they get custom highlighting (because @ is now a character)'
        name: 'support.function.makeat.latex'

            }
            {
                include: '#figureEnvironment'
            }
            {
                include: '#mathEnvironmentMeta'
            }
            {
                include: '#genericEnvironment'
