                     (concat "^\\s*" ; pcre regex
                             verilog-module-name
                             "\\s+"
-                            ;; "(#\\s*\\((\\n|.)*?\\)(\\n|.)*?)*" ; optional hardware parameters
                             "(#\\s*\\((\\n|.)*?\\))*" ; optional hardware parameters
                                         ; '(\n|.)*?' does non-greedy multi-line grep
                             "(\\n|.)*?" ; optional newline/space before instance name
                             "\\K" ; don't highlight anything till this point
-                            verilog-identifier-regexp ; instance name
+                            verilog-mode-identifier-regexp ; instance name
                             "(?=[^a-zA-Z0-9_]*\\()")) ; optional space/newline after instance name
                                         ; and before opening parenthesis `('
                                         ; don't highlight anything in (?=..)

;; Time-stamp: <2015-03-11 14:13:53 kmodi>

;; Verilog


                          ;; (message "---- 3 ---- %s" (match-string 3))
                          ;; (message "---- 4 ---- %s" (match-string 4))
                          ;; (message "---- 5 ---- %s" (match-string 5))
                          (setq-local verilog-mode-module-name   (match-string 1))
                          (setq-local verilog-mode-instance-name (match-string 4))

                          (when (and (stringp verilog-mode-module-name)
                                     (string-match verilog-mode-reserved-regexp
                                                   verilog-mode-module-name))
                            (setq-local verilog-mode-module-name nil))

                          (when (and (stringp verilog-mode-instance-name)
                                     (string-match verilog-mode-reserved-regexp
                                                   verilog-mode-instance-name))
                            (setq-local verilog-mode-instance-name nil))

                          (if (or (null verilog-mode-module-name)
                                  (null verilog-mode-instance-name))
                              nil
                            (concat verilog-mode-module-name
                                    "|" verilog-mode-instance-name)))
                      nil))))))

        (defun verilog-mode-jump-to-module-at-point ()
