     contentName: 'markup.raw.verbatim.latex'
     begin: '((\\\\)begin)(\\{)((minted)\\*?)(\\})(?:(\\[)(.*?)(\\]))?(\\{)([a-zA-Z]*)(\\})'
     beginCaptures:
-      1:
-        name: 'support.function.environment.begin.latex'
-      2:
-        name: 'punctuation.definition.function.begin.latex'
-      3:
-        name: 'punctuation.definition.arguments.begin.latex'
-      4:
-        name: 'variable.parameter.environment.$5.latex'
+      1: name: 'support.function.environment.begin.latex'
+      2: name: 'punctuation.definition.function.begin.latex'
+      3: name: 'punctuation.definition.arguments.begin.latex'
+      4: name: 'variable.parameter.environment.$5.latex'
       # 5: Used for meta scope name (basically just non starred version)
-      6:
-        name: 'punctuation.definition.arguments.end.latex'
-      7:
-        name: 'punctuation.definition.arguments.optional.begin.latex'
-      8:
-        name: 'variable.parameter.optional.function.environment.latex'
-      9:
-        name: 'punctuation.definition.arguments.optional.end.latex'
-      10:
-        name: 'punctuation.definition.arguments.begin.latex'
-      11:
-        name: 'variable.parameter.language.$11.latex'
-      12:
-        name: 'punctuation.definition.arguments.end.latex'
+      6: name: 'punctuation.definition.arguments.end.latex'
+      7: name: 'punctuation.definition.arguments.optional.begin.latex'
+      8: name: 'variable.parameter.optional.function.environment.latex'
+      9: name: 'punctuation.definition.arguments.optional.end.latex'
+      10: name: 'punctuation.definition.arguments.begin.latex'
+      11: name: 'variable.parameter.language.$11.latex'
+      12: name: 'punctuation.definition.arguments.end.latex'
     end: '((\\\\)end)(\\{)(\\4)(\\})'
     endCaptures:
-      1:
-        name: 'support.function.environment.end.latex'
-      2:
-        name: 'punctuation.definition.function.latex'
-      3:
-        name: 'punctuation.definition.arguments.begin.latex'
-      4:
-        name: 'variable.parameter.environment.latex'
-      5:
-        name: 'punctuation.definition.arguments.end.latex'
+      1: name: 'support.function.environment.end.latex'
+      2: name: 'punctuation.definition.function.latex'
+      3: name: 'punctuation.definition.arguments.begin.latex'
+      4: name: 'variable.parameter.environment.latex'
+      5: name: 'punctuation.definition.arguments.end.latex'
   }
   mintPython: {
     name: 'meta.environment.embedded.python.latex'
     contentName: 'source.embedded.python'
     begin: '((\\\\)begin)(\\{)((minted)\\*?)(\\})(?:(\\[)(.*?)(\\]))?(\\{)(python3?|py3?)(\\})'
     beginCaptures:
-      1:
-        name: 'support.function.environment.begin.latex'
-      2:
-        name: 'punctuation.definition.function.begin.latex'
-      3:
-        name: 'punctuation.definition.arguments.begin.latex'
-      4:
-        name: 'variable.parameter.environment.minted.latex'
+      1: name: 'support.function.environment.begin.latex'
+      2: name: 'punctuation.definition.function.begin.latex'
+      3: name: 'punctuation.definition.arguments.begin.latex'
+      4: name: 'variable.parameter.environment.minted.latex'
       # 5: Used for meta scope name (basically just non starred version)
-      6:
-        name: 'punctuation.definition.arguments.end.latex'
-      7:
-        name: 'punctuation.definition.arguments.optional.begin.latex'
-      8:
-        name: 'variable.parameter.optional.function.environment.latex'
-      9:
-        name: 'punctuation.definition.arguments.optional.end.latex'
-      10:
-        name: 'punctuation.definition.arguments.begin.latex'
-      11:
-        name: 'variable.parameter.language.python.latex'
-      12:
-        name: 'punctuation.definition.arguments.end.latex'
+      6: name: 'punctuation.definition.arguments.end.latex'
+      7: name: 'punctuation.definition.arguments.optional.begin.latex'
+      8: name: 'variable.parameter.optional.function.environment.latex'
+      9: name: 'punctuation.definition.arguments.optional.end.latex'
+      10: name: 'punctuation.definition.arguments.begin.latex'
+      11: name: 'variable.parameter.language.python.latex'
+      12: name: 'punctuation.definition.arguments.end.latex'
     end: '((\\\\)end)(\\{)(minted)(\\})'
     endCaptures:
-      1:
-        name: 'support.function.environment.end.latex'
-      2:
-        name: 'punctuation.definition.function.latex'
-      3:
-        name: 'punctuation.definition.arguments.begin.latex'
-      4:
-        name: 'variable.parameter.environment.latex'
-      5:
-        name: 'punctuation.definition.arguments.end.latex'
+      1: name: 'support.function.environment.end.latex'
+      2: name: 'punctuation.definition.function.latex'
+      3: name: 'punctuation.definition.arguments.begin.latex'
+      4: name: 'variable.parameter.environment.latex'
+      5: name: 'punctuation.definition.arguments.end.latex'
     patterns: [{ include: 'source.python' }]
   }
   mintJavascript: {

    contentName: 'variable.parameter.optional.latex'
    begin: '\\['
    beginCaptures:
      0:
        name: 'punctuation.definition.optional.begin.latex'
    end: '\\]'
    endCaptures:
      0:
        name: 'punctuation.definition.optional.end.latex'
    patterns: [
      {
        comment: 'AFAIK, the optional parameters never have nested brackets. Will come back to this after a while or if I find they do.'

    contentName: 'variable.parameter.arguments.latex'
    begin: '\\{'
    beginCaptures:
      0: name: 'punctuation.definition.arguments.begin.latex'
    end: '\\}'
    endCaptures:
      0: name: 'punctuation.definition.arguments.end.latex'
    patterns: [{ include: '$self' }]
  }
  altArgumentScope: {
    comment: 'Matches arguments brackets (the outmost of nested brackets). Specifically for commands like usepackage.'
    contentName: 'support.class.latex'
    begin: '\\{'
    beginCaptures:
      0: name: 'punctuation.definition.arguments.begin.latex'
    end: '\\}'
    endCaptures:
      0: name: 'punctuation.definition.arguments.end.latex'
    patterns: [{ include: '$self' }]
  }
  nestedSquareBrackets: {
    contentName: 'variable.parameter.optional.latex'
    begin: '\\['
    beginCaptures:
      0: name: 'punctuation.definition.optional.begin.latex'
    end: '\\]'
    endCaptures:
      0: name: 'punctuation.definition.optional.end.latex'
    patterns: [
      comment: 'Optimisation good to implement here. Rework commentMeta to be a more general check for escaped characters and comments'
      { include: '#commentMeta' }
