             'include': '#assign'
           }
           {
-            'match': '[^(\\s\\{\\}\\[\\]\\(\\)#,)]+'
-            'name': 'invalid.illegal'
-          }
-        ]
-        'end': '\\)'
+            'include': '#doAction'
+          }
+          {
+            'match': '[^(\\s\\{\\}\\[\\]\\(\\)#,)]+'
+            'name': 'invalid.illegal'
+          }
+        ]
+        'end': '\\}'
       }
       {
         'match': '[^(\\s\\{\\}\\[\\]\\(\\)#,)]+'

        'include': '#assign'
      }
      {
        'begin': '\\('
        'patterns': [
          {
            'include': '#comments'

            'include': '#assign'
          }
          {
            'include': '#doAction'
          }
          {
            'match': '[^(\\s\\{\\}\\[\\]\\(\\)#,)]+'
            'name': 'invalid.illegal'
          }
        ]
        'end': '\\}'
      }
      {
        'match': '[^(\\s\\{\\}\\[\\]\\(\\)#,)]+'
