diff options
author | Karl Heuer <kwzh@gnu.org> | 1997-10-15 22:54:24 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1997-10-15 22:54:24 +0000 |
commit | 1d3efc47801c490305aec3ba456141571d1718b2 (patch) | |
tree | 3f890d961f995c182ff1eb742b27f471336cff14 /lisp/progmodes | |
parent | 0ac0e6f3c5536529c9a2b59c1cea7cfca0380654 (diff) | |
download | emacs-1d3efc47801c490305aec3ba456141571d1718b2.tar.gz |
(hs-special-modes-alist): Correct alist
for java-mode.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/hideshow.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 0b052dbe4e7..fd1cb8429e0 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\\|p\\(r\\(ivate\\|otected\\)\\|ublic\\)\\|static\\)[ \t\n]+\\)+\\(synchronized[ \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\\|p\\(r\\(ivate\\|otected\\)\\|ublic\\)\\|static\\)[ \t\n]+\\)+\\(synchronized[ \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-syncronised) |