     'end': '(?=\\s*(,|#|\\]|\\)|\\}|\\n))'
 
   'model':
-    'begin': '(?i:\\s*([a-zA-Z][_a-zA-Z0-9]*)\\s*(model))'
+    'begin': '(?i:(\\s*[a-zA-Z][_a-zA-Z0-9]*)(\\s+model))'
     'beginCaptures':
       '1':
         'name': 'punctuation.definition.identity'

    'end': '(?=\\s*(,|#|\\]|\\)|\\}|\\n))'

  'onLoadClose':
    'begin': '(?i:\\s*(on)\\s*(load)\\s*(close))'
    'beginCaptures':
      '1':
        'name': 'keyword'

    'end': '(?=\\s*(,|#|\\]|\\)|\\}|\\n))'

  'querySelect':
    'begin': '(?i:(\\s*[a-zA-Z][_a-zA-Z0-9]*)(\\s+select)(\\s+#.*)(?:\\s+(\\s*from)\\s+\\s*([a-zA-Z][_a-zA-Z0-9]*(\\.[a-zA-Z][_a-zA-Z0-9]*)*))?(?:\\s+(\\s*as)\\s+(\\s*[a-zA-Z][_a-zA-Z0-9]*))?(?:\\s+(\\s*#.*)\\s+(\\s*object))*(?:\\s+(\\s*#.*)\\s+(\\s*where)\\s+(\\s*object))?(?:\\s+(\\s*#.*)\\s+(\\s*object))?(?:\\s+(\\s*#.*)\\s+(\\s*object))?(?:\\s+(\\s*#.*)\\s+(\\s*object))?(?:\\s+(\\s*#.*)\\s+(\\s*object))?(?:\\s+(\\s*#.*)\\s+(\\s*object))?(?:\\s+(\\s*#.*)\\s+(\\s*object))?)'
    'beginCaptures':
      '1':
        'name': 'punctuation.definition.identity'
