summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDan Nicolaescu <done@ece.arizona.edu>1998-02-02 07:29:59 +0000
committerDan Nicolaescu <done@ece.arizona.edu>1998-02-02 07:29:59 +0000
commitc000bd9d37be0ec97838fffe92052b0b5c901394 (patch)
treec7fe8024aff0950e049b506cbc4e2c5a778320b5 /lisp
parent82a344c9db9031d1bedf6b4f25f57563769323c6 (diff)
downloademacs-c000bd9d37be0ec97838fffe92052b0b5c901394.tar.gz
(hs-special-modes-alist): Improved the regexp for java.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/hideshow.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index 0189801ab33..51c4452ea74 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -159,7 +159,7 @@ Values other than these four will be interpreted as `signal'.")
(defvar hs-special-modes-alist
'((c-mode "{" "}" nil nil hs-c-like-adjust-block-beginning)
(c++-mode "{" "}" "/[*/]" nil hs-c-like-adjust-block-beginning)
- (java-mode "\\(\\(\\([ \t]*\\(\\(abstract\\|final\\|native\\|p\\(r\\(ivate\\|otected\\)\\|ublic\\)\\|s\\(tatic\\|ynchronized\\)\\)[ \t\n]+\\)+[.a-zA-Z0-9_:]+[ \t\n]*\\(\\[[ \t\n]*\\][ \t\n]*\\)?\\([a-zA-Z0-9_:]+[ \t\n]*\\)([^)]*)\\([ \n\t]+throws[ \t\n][^{]+\\)?\\)\\|\\([ \t]*static[^{]*\\)\\)[ \t\n]*{\\)" "}" "/[*/]" java-hs-forward-sexp hs-c-like-adjust-block-beginning))
+ (java-mode "\\(\\(\\([ \t]*\\(\\(abstract\\|final\\|native\\|p\\(r\\(ivate\\|otected\\)\\|ublic\\)\\|s\\(tatic\\|ynchronized\\)\\)[ \t\n]+\\)*[.a-zA-Z0-9_:]+[ \t\n]*\\(\\[[ \t\n]*\\][ \t\n]*\\)?\\([a-zA-Z0-9_:]+[ \t\n]*\\)([^)]*)\\([ \n\t]+throws[ \t\n][^{]+\\)?\\)\\|\\([ \t]*static[^{]*\\)\\)[ \t\n]*{\\)" "}" "/[*/]" java-hs-forward-sexp hs-c-like-adjust-block-beginning))
; I tested the java regexp using the following:
;(defvar hsj-public)
;(defvar hsj-type)
@@ -172,7 +172,7 @@ Values other than these four will be interpreted as `signal'.")
; (concat "[ \t]*\\("
; (regexp-opt '("public" "private" "protected" "abstract"
; "synchronized" "static" "final" "native") 1)
-; "[ \t\n]+\\)+"))
+; "[ \t\n]+\\)*"))
;(setq hsj-type "[.a-zA-Z0-9_:]+[ \t\n]*\\(\\[[ \t\n]*\\][ \t\n]*\\)?")
;(setq hsj-fname "\\([a-zA-Z0-9_:]+[ \t\n]*\\)")