                 'include': '#comments-triple-slash'
               }          
             ]
-          '11':
+          '10':
             'name': 'punctuation.definition.parameters.end.stata'      
       }
       {
         'comment': 'color regexr with compound quotes i.e. `"text"\' '
-        'match': '\\b(regexr)(\\()([^,]+)(,)\\s*(`\")([^"]+)(\"\')\\s*(,)([^\\)]*)(\\))'
+        'match': '\\b(regexr)(\\()([^,]+)(,)\\s*(`\")([^"]+)(\"\')\\s*([^\\)]*)(\\))'
         'captures':
           '1':
             'name': 'support.function.builtin.stata'

          '8':
            'name': 'invalid.illegal.punctuation.stata'
          '9':
            'name': 'punctuation.definition.variable.begin.stata' # the comma
          '10':
            'patterns': [
              {
                'include': '#string-compound'
              }

                'include': '#comments-triple-slash'
              }          
            ]
          '9':
            'name': 'punctuation.definition.parameters.end.stata'      
      }
    ]
