[Misc] Update semantic parser addon to recognize ‘use-package’
horrible …
This commit is contained in:
parent
6ab52f11ed
commit
15eae235d4
20
init.el
20
init.el
|
@ -1376,17 +1376,15 @@ are assumed to be of the form *.crt."
|
||||||
(require 'semantic/ia)
|
(require 'semantic/ia)
|
||||||
(require 'semantic/bovine/el)
|
(require 'semantic/bovine/el)
|
||||||
|
|
||||||
;; recognize `use-package' as include statement; for some reason,
|
;; recognize `use-package' as include statement; the function seems
|
||||||
;; this form needs to be wrapped in a backquote so that the lambda
|
;; to have to be a byte-compiled function, for otherwise it just
|
||||||
;; form is evaluated before parser is installed; otherwise, the
|
;; won’t work … ?
|
||||||
;; lambda-form is not recognized as a function and the parsing does
|
(eval `(semantic-elisp-setup-form-parser
|
||||||
;; not work
|
,(lambda (form start end)
|
||||||
(eval-after-load 'semantic/bovine/el
|
(ignore start end)
|
||||||
`(semantic-elisp-setup-form-parser
|
(semantic-tag-new-include (symbol-name (nth 1 form))
|
||||||
,(lambda (form start end)
|
nil))
|
||||||
(ignore start end)
|
use-package))))
|
||||||
(semantic-tag-new-include (symbol-name (nth 1 form)) nil))
|
|
||||||
use-package))))
|
|
||||||
|
|
||||||
(use-package synonyms
|
(use-package synonyms
|
||||||
:commands (synonyms))
|
:commands (synonyms))
|
||||||
|
|
Loading…
Reference in New Issue