       {
         comment: 'Taken from language-latex'
         begin: '''(?x)
-                    ((\\\\)(?:text)?(?:paren)?(?:auto)?(?:foot)?(?:full)?(?:no)?(?:short)?[cC]ites?(?:al)?(?:t|p|author|year(?:par)?|title)?[ANP]*\\*?)
-                    (?:(\\[)[^\\]]*(\\]))?
-                    (?:(\\[)[^\\]]*(\\]))?
-                    (\\{)
-                 '''
+                  ((\\\\)(?:text)?(?:paren)?(?:auto)?(?:foot)?(?:full)?(?:no)?(?:short)?[cC]ites?(?:al)?(?:t|p|author|year(?:par)?|title)?[ANP]*\\*?)
+                  (?:(\\[)[^\\]]*(\\]))?
+                  (?:(\\[)[^\\]]*(\\]))?
+                  (\\{)
+               '''
         captures:
           1: name: 'keyword.control.cite.latex'
           2: name: 'punctuation.definition.keyword.latex'


# Other
  catcode: {
    comment: 'Prevent catcoding from triggering mathmode; could be made more general into whenever a backtick is followed by math mode brackets'
    match: '((\\\\)(?>cat|math|sf|del|uc|lo)code)\\s*\\`?(\\\\.(?!\\^))'
    captures:

  }

# Removed

  makeAtSomething: {
    comment: 'Matches the makeat(letter|other) commands so that they get custom highlighting (because @ is now a character)'
    contentName: 'markup.raw.verbatim.latex' # To make user aware of its effect
    begin: '(\\\\)makeatletter\\b'
    beginCaptures:
      0: name: 'support.function.makeat.latex'
    end: '(\\\\)makeatother\\b'
    endCaptures:
      0: name: 'support.function.makeat.latex'
    patterns: [{ include: '$self'}]
  }
