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

  'raw-blocks':
    'patterns': [
      {
        'begin': '(::)$'
        'beginCaptures':
          '1':
            'name': 'punctuation.section.raw.restructuredtext'
        'comment': 'Literal Blocks'
        'contentName': 'meta.raw.block.restructuredtext'
        'end': '^(?=\\S)'
        'patterns': [
          {
            'include': '#raw-blocks-inner'

      {
        'include': '#citations'
      }
    ]
  'citations':
    'patterns': [
