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)
|
(setq start (match-beginning 0)
|
||||||
cn (buffer-substring-no-properties
|
cn (buffer-substring-no-properties
|
||||||
(match-beginning 2) (match-end 2))
|
(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
|
doc (save-excursion
|
||||||
(forward-line)
|
(forward-line)
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
|
@ -468,7 +473,7 @@ Each tag returned is a semantic FUNCTION tag. See
|
||||||
(semantic-tag-new-type name
|
(semantic-tag-new-type name
|
||||||
"class"
|
"class"
|
||||||
(append props meth)
|
(append props meth)
|
||||||
base
|
(list base)
|
||||||
:documentation doc)
|
:documentation doc)
|
||||||
(list start end))
|
(list start end))
|
||||||
newlist))
|
newlist))
|
||||||
|
|
|
@ -40,6 +40,7 @@ end
|
||||||
%{
|
%{
|
||||||
(( "mpclass" type
|
(( "mpclass" type
|
||||||
( :type "class"
|
( :type "class"
|
||||||
|
:superclasses ("handle" "matlab.mixin.SetGetExactNames")
|
||||||
:members (
|
:members (
|
||||||
("X" variable)
|
("X" variable)
|
||||||
("Y" variable)
|
("Y" variable)
|
||||||
|
|
Loading…
Reference in a new issue