   'raw-blocks':
     'patterns': [
       {
-        'begin': '(::)$'
+        'begin': '^(?!\\s*\\.\\.\\s\\w+)(\\s*)(.*)(::)$'
         'beginCaptures':
-          '1':
+          '2':
+            'patterns': [
+              {
+                'include': '#inlines'
+              }
+            ]
+          '3':
             'name': 'punctuation.section.raw.restructuredtext'
         'comment': 'Literal Blocks'
         'contentName': 'meta.raw.block.restructuredtext'
-        'end': '^(?=\\S)'
+        'end': '^(?!\\s*$|\\1[ \\t]+\\S)'
         'patterns': [
           {
             'include': '#raw-blocks-inner'

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

        'include': '#raw-blocks'
      }
      {
        'include': '#inlines'
      }
      {
        'include': '#tags'
      }
      {
        'include': '#tables'
      }
      {
        'include': '#headings'
      }
      {
        'include': '#comments'
      }
    ]
  'inlines':
    'patterns': [
      {
        'include': '#emphasis'
      }
      {
