         'captures':
           '2':
             'name': 'entity.name.directive.restructuredtext'
-        'end': '^(?!\\1[ \\t])(?=\\S+)'
+        'end': '^(?!\\s*$|\\1[ \\t]+\\S)'
         'contentName': 'source.embedded.python'
         'patterns': [
           {

          '2':
            'name': 'punctuation.definition.field.restructuredtext'
        'comment': 'tags (and field lists'
        'match': '(:)[A-z][A-z0-9  =\\s\\t_.]*(:)'
        'name': 'entity.name.tag.restructuredtext'
      }
    ]

        'captures':
          '2':
            'name': 'entity.name.directive.restructuredtext'
        'end': '^(?!\\s*$|\\1[ \\t]+\\S)'
        'contentName': 'source.embedded.shell'
        'patterns': [
          {
