changeset 49569:d8d2b16ffa18

(font-lock-match-c-style-declaration-item-and-skip-to-next): Don't require underscore in word before double open-paren.
author Andreas Schwab <schwab@suse.de>
date Sun, 02 Feb 2003 17:31:49 +0000
parents 77798aa98bda
children 288cda7c05fb
files lisp/font-lock.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Sun Feb 02 16:04:59 2003 +0000
+++ b/lisp/font-lock.el	Sun Feb 02 17:31:49 2003 +0000
@@ -1740,7 +1740,7 @@
 The expected syntax of a declaration/definition item is `word' (preceded by
 optional whitespace and `*' characters and proceeded by optional whitespace)
 optionally followed by a `('.  Everything following the item (but belonging to
-it) is expected to by skip-able by `scan-sexps', and items are expected to be
+it) is expected to be skip-able by `scan-sexps', and items are expected to be
 separated with a `,' and to be terminated with a `;'.
 
 Thus the regexp matches after point:	word (
@@ -1759,7 +1759,7 @@
       (let ((pos (point)))
 	(skip-chars-backward " \t\n")
 	(skip-syntax-backward "w")
-	(unless (looking-at "\\(\\sw+\\)[ \t\n]*\\sw*_\\sw*[ \t\n]*\\((\\)?")
+	(unless (looking-at "\\(\\sw+\\)[ \t\n]*\\sw+[ \t\n]*\\(((?\\)?")
 	  ;; Looks like it was something else, so go back to where we
 	  ;; were and reset the match data by rematching.
 	  (goto-char pos)