Skip to content

Commit

Permalink
Inherit default wisent java setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Espen Wiborg committed Mar 4, 2009
1 parent 42c3dac commit 9e69568
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/lisp/malabar-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
(require 'semantic-ctxt)
(require 'semantic-find)
(require 'semantic-wisent)

;; HACK
(provide 'wisent-java-wy)
(require 'wisent-java)

(require 'wisent-malabar-java-wy)
(require 'cl)
(require 'thingatpt)
Expand All @@ -42,7 +47,7 @@
(let ((these-blocks (semantic-parse-region
(point)
(save-excursion (semantic-end-of-context) (point))
;; See this production in wisent-java.wy.
;; See this production in wisent-malabar-java.wy.
'block_statements
nil t)))
(dolist (block these-blocks)
Expand Down Expand Up @@ -70,7 +75,9 @@

(define-derived-mode malabar-mode java-mode "malabar"
"A new, better, Java mode."
;; Funky stuff here
;; HACK
(flet ((wisent-java-wy--install-parser () nil))
(wisent-java-default-setup))
(add-hook 'semantic-init-hooks #'malabar-semantic-setup)
(setq semantic-lex-depth 10)
(setq semantic-lex-analyzer 'wisent-malabar-java-lexer)
Expand Down

0 comments on commit 9e69568

Please sign in to comment.