Re: How to properly use VARIABLE-TAG

Gracjan Polak <[email protected]> Sat, 13 Feb 2016 14:53:37 +0100
Newsgroups gmane.emacs.semantic
Message-ID <CAChsM3T943Ub-Cz=ssHD83D=TpnhOXP0-pM7ox5O4mAO9Q6NxA@mail.gmail.com>
Hi Eric,

Thanks for the answer. I seem to have discovered the iteration on my own.

My current grammar I'm working is this:

%start triplet
%token QUALIFIED-NAME           ;; qualified identifier or symbol

triplet : QUALIFIED-NAME qname qname SEMICOLON
          (TAG $1 'function :children $2)
        ;
qname : QUALIFIED-NAME
        (EXPANDTAG (VARIABLE-TAG $1 nil nil))
      ;

Now I'm facing the issue that the 'function' tag gets and overlay while the
'variable' tag does not. For single line source of the form:

d f g;

There is a single overlay:

("d" function
 (:children
  (("f" variable nil
    (reparse-symbol qname)
    [9 10])))
 (:filename "xxx" unlink-hook
            (semantic--tag-unlink-secondary-overlays)
            secondary-overlays
            (#<overlay from 3 to 5 in xxx>)
            link-hook
            (semantic--tag-link-secondary-overlays)
            unlink-copy-hook
            (semantic--tag-unlink-copy-secondary-overlays))
 #<overlay from 3 to 20 in xxx>)

I would expect a second overlay on 'f'. How to trigger it?

-- 
Gracjan

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic