 ;; Author: Karl Landstrom <karl.landstrom@brgeight.se>
 ;; Author: Daniel Colascione <dan.colascione@gmail.com>
 ;; Maintainer: Daniel Colascione <dan.colascione@gmail.com>
-;; Version: 4
-;; Date: 2009-01-06
+;; Version: 5
+;; Date: 2009-04-30
 ;; Keywords: languages, oop, javascript
 
 ;; This file is free software; you can redistribute it and/or modify

       'espresso--end-of-defun)

  (set (make-local-variable 'open-paren-in-column-0-is-defun-start) nil)

  (set (make-local-variable 'font-lock-defaults)
       (list espresso--font-lock-keywords
	     nil nil nil nil

  (interactive (list (this-command-keys)))
  (call-interactively (lookup-key (current-global-map) key))
  (let ((syntax (save-restriction (widen) (syntax-ppss))))
    (and (not (nth 8 syntax))
         espresso-auto-indent-flag
         (indent-according-to-mode))))

;;; Syntax table and parsing

