       {include: '#macro-local'}
       {include: '#macro-global'}
       {
-        'comment': 'NOTE: Error if I have \.+ No idea why but it works fine it seems with just \.'
-        'match': '.'
-        'name': 'string.quoted.stata'
+        comment: 'NOTE: Error if I have \.+ No idea why but it works fine it seems with just \.'
+        match: '.'
+        name: 'string.quoted.stata'
       }
     ]
   'unicode-regex-character-class':
-    'patterns': [
-      {
-        'match': '\\\\[wWsSdD]|\\.'
-        'name': 'constant.character.character-class.stata'
-      }
-      {
-        'match': '\\\\.'
-        'name': 'constant.character.escape.backslash.stata'
-      }
-      {
-        'begin': '(\\[)(\\^)?'
-        'beginCaptures':
-          '1':
-            'name': 'punctuation.definition.character-class.stata'
-          '2':
-            'name': 'keyword.operator.negation.stata'
-        'end': '(\\])'
-        'endCaptures':
-          '1':
-            'name': 'punctuation.definition.character-class.stata'
-        'name': 'constant.other.character-class.set.stata'
-        'patterns': [
+    patterns: [
+      {
+        match: '\\\\[wWsSdD]|\\.'
+        name: 'constant.character.character-class.stata'
+      }
+      {
+        match: '\\\\.'
+        name: 'constant.character.escape.backslash.stata'
+      }
+      {
+        begin: '(\\[)(\\^)?'
+        beginCaptures:
+          1: name: 'punctuation.definition.character-class.stata'
+          2: name: 'keyword.operator.negation.stata'
+        end: '(\\])'
+        endCaptures:
+          1: name: 'punctuation.definition.character-class.stata'
+        name: 'constant.other.character-class.set.stata'
+        patterns: [
           {include: '#unicode-regex-character-class'}
           {
-            'captures':
-              '2':
-                'name': 'constant.character.escape.backslash.stata'
-              '4':
-                'name': 'constant.character.escape.backslash.stata'
-            'match': '((\\\\.)|.)\\-((\\\\.)|[^\\]])'
-            'name': 'constant.other.character-class.range.stata'
-          }
-        ]
-      }
-    ]
+            captures:
+              2: name: 'constant.character.escape.backslash.stata'
+              4: name: 'constant.character.escape.backslash.stata'
+            match: '((\\\\.)|.)\\-((\\\\.)|[^\\]])'
+            name: 'constant.other.character-class.range.stata'
+          }
+        ]
+      }
+    ]

        ]
      }
      {
        'begin': '(`)(macval)(\\()'
        'beginCaptures':
          '1':
            'name': 'punctuation.definition.string.begin.stata'
          '2':
            'name': 'support.function.builtin.stata'
          '3':
            'name': 'punctuation.definition.parameters.begin.stata'
        'end': '(\\))(\')'
        'endCaptures':
          '1':
            'name': 'punctuation.definition.parameters.begin.stata'
          '2':
            'name': 'punctuation.definition.string.end.stata'
        'contentName': 'meta.macro-extended-function.stata'
        'patterns': [
          {include: '#macro-local'}
          {include: '#macro-global'}
          {
            'match': '\\w{1,31}'
            'name': 'entity.name.type.class.stata'
          }
        ]
      }
      {
        'begin': '`(?!")'
        'beginCaptures':
          '0':
            'name': 'punctuation.definition.string.begin.stata'
        'end': '\''
        'endCaptures':
          '0':
            'name': 'punctuation.definition.string.end.stata'
        'patterns': [
          {
            'match': '\\+\\+|\\-\\-'
            'name': 'keyword.operator.arithmetic.stata'
          }
          {include: '#macro-local'}
          {include: '#macro-global'}

  {include: '#builtin_variables'}
  {include: '#macro-commands'}
  {
    comment: 'keywords that delimit flow conditionals'
    name: 'keyword.control.conditional.stata'
    match: '\\b(if|else if|else)\\b'
  }
  {
    captures:
      1: name: 'storage.type.scalar.stata'
    match: '^\\s*(sca(lar|la|l)?(\\s+de(fine|fin|fi|f)?)?)\\s+(?!(drop|dir?|l(ist|is|i)?)\\s+)'
  }
  {
    begin: '\\b(mer(ge|g)?)\\s+(1|m|n)(:)(1|m|n)'
    beginCaptures:
      1: name: 'keyword.control.flow.stata'
      3:
        patterns: [
          {include: '#constants'}
          {
            match: 'm|n'
            name: ''
          }
        ]
      4: name: 'punctuation.separator.key-value'
      5:
        patterns: [
          {include: '#constants'}
          {
            match: 'm|n'
            name: ''
          }
        ]
    end: 'using'
    patterns: [
      {include: '#builtin_variables'}
      {include: '#macro-local'}
      {include: '#macro-global'}
