|
[cedet-semantic] semantic-lex-depth and blocks
From: kototama kototama <kototamo@gm...> - 2012-11-09 14:35
|
Hello, I copied the java.wy code and renamed it to experiment with block parsing (for an eventual future Clojure support). To test the code I did something like that: (require 'semantic/wisent) (require 'clojure-wy2) ;; copied of the java file renamed (defun wisent-clojure-default-setup () "Hook run to setup Semantic in `clojure-mode'." (wisent-clojure-wy--install-parser) (setq ;; Lexical analysis ;; semantic-lex-depth nil semantic-lex-analyzer 'wisent-clojure2-lexer)) (add-hook 'clojure-mode-hook 'wisent-clojure-default-setup) Then I open a .clj file. But here somethings strange happens: if semantic-lex-depth is not set, a call to semantic-lex-debug returns the expected PAREN_BLOCK, however if semantic-lex-depth is set, its returns LPAREN RPAREN. Why? This is surprising because even the Java setup itself set semantic-lex-depth to nil. |
| Thread | Author | Date |
|---|---|---|
| [cedet-semantic] semantic-lex-depth and blocks | kototama kototama <kototamo@gm...> |