 
 ;; method definition
 (defconst *pjs-method-heading*
-"^\\s-*method\\s-+\\(\\w+\\)\\s-+\\(\\<on\\>\\)\\s-+\\(\\w+\\)"
+"^\\s-*method\\s-+\\(\\w+\\)\\s-+\\(\\<on\\>\\)\\s-+\\([[:word:].]+\\)"
 "Regular expression matching the start of a method header.")
 
 ;;method arguments
 (defconst *pjs-method-arguments-start*
-  "\\<method\\>\\(\\s-+\\w+\\)?\\s-*\\<on\\>\\(\\s-+\\w+\\)?(\\s-*\\w")
+  "\\<method\\>\\(\\s-+\\w+\\)?\\s-*\\<on\\>\\(\\s-+[[:word:].]+\\)?(\\s-*\\w")
 
 ;; function definition
 (defconst *pjs-function-heading*

  ;; comments
  (set (make-local-variable 'comment-start) "// ")
  (set (make-local-variable 'comment-end) "")
 
  (set (make-local-variable 'font-lock-defaults)
       (list font-locks
	     nil  ;; fontify strings and comments
	     t    ;; case insensitive fontifying
	     ))

  ;; regexp to mark the beginning of a function
;;  (setq defun-prompt-regexp *pjs-function-or-method-regexp*)

;;;; (:require-patch "")
;;;; HISTORY :
;;;; $Log$
;;;; Revision 3.5  2015/12/22 12:32:06  troche
;;;; * use local environment
;;;; * type detection (first version)
;;;;
;;;; Revision 3.4  2015/12/18 15:09:40  troche
;;;; * better syntax colorations
;;;;
