             'name': 'keyword.macro.extendedfcn.stata'
       }
       {
-        'begin': '\\b(subinstr\\s+(loc(al|a)?|gl(obal|oba|ob|o)?))\\s+([A-Za-z_][A-Za-z0-9_]{0,31})'
+        'begin': '\\b(subinstr\\s+(loc(al|a)?|gl(obal|oba|ob|o)?))\\s+(\\w{1,32})'
         'end': '(?=//|\\n)'
         'beginCaptures':
           '1':

      {include: '#macro-local'}
      {include: '#macro-global'}
      {
        # 'comment' 'NOTE: Error if I have \.+ No idea why but it works fine it seems with just \.'
        # Also extremely weird but if I have the previous 'comment' line uncommented, everything inside the regexm(, "...") goes white.
        'match': '.'
        'name': 'string.quoted.stata'
      }

        'name': 'keyword.control.anchor.stata'
      }
      {
        'match': '\\$(?![[\\w&&[^0-9_]][\\w]{0,31}|_[\\w]{1,31}\\{])'
        'name': 'keyword.control.anchor.stata'
        'comment': 'matched when not a global'
      }
      {
        'match': '\\\\[1-9][0-9]?'
