semantic-matlab.el:
Add support for parsing superclasses and storing in tag. Add a test for that.
This commit is contained in:
parent
abaadab8a7
commit
18a2314b2f
2 changed files with 8 additions and 2 deletions
|
@ -120,7 +120,12 @@ Return argument is:
|
|||
(setq start (match-beginning 0)
|
||||
cn (buffer-substring-no-properties
|
||||
(match-beginning 2) (match-end 2))
|
||||
base nil ;; TODO
|
||||
base (save-excursion
|
||||
(let ((tmp nil))
|
||||
(while (looking-at "\\s-*[<&]\\s-*\\(\\(\\sw\\|\\.\\)+\\)")
|
||||
(setq tmp (cons (match-string-no-properties 1) tmp))
|
||||
(goto-char (match-end 0)))
|
||||
(nreverse tmp)))
|
||||
doc (save-excursion
|
||||
(forward-line)
|
||||
(beginning-of-line)
|
||||
|
@ -468,7 +473,7 @@ Each tag returned is a semantic FUNCTION tag. See
|
|||
(semantic-tag-new-type name
|
||||
"class"
|
||||
(append props meth)
|
||||
base
|
||||
(list base)
|
||||
:documentation doc)
|
||||
(list start end))
|
||||
newlist))
|
||||
|
|
|
@ -40,6 +40,7 @@ end
|
|||
%{
|
||||
(( "mpclass" type
|
||||
( :type "class"
|
||||
:superclasses ("handle" "matlab.mixin.SetGetExactNames")
|
||||
:members (
|
||||
("X" variable)
|
||||
("Y" variable)
|
||||
|
|
Loading…
Reference in a new issue