Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#8 Semantic: Add support for TODO/FIXME tags

open
None
5
2009-02-01
2006-08-11
Anonymous
No

Hi,

It would be great if Semantic could support FIXME: and
TODO: tags (like, for instance Eclipse does). I tried
adding that functionality myself but failed
miserably... :-(

Thanks!
Francesco

Discussion

  • Eric M. Ludlam
    Eric M. Ludlam
    2008-03-02

    Logged In: YES
    user_id=88537
    Originator: NO

    Semantic doesn't look inside any comments, so there is no structure there to do the lookup.

    It would probably be easier to write a seperate simple program form Emacs that calls grep, and groups the output. Then you could use semantic to find out what those grep hits are associated with.

     
  • Eric M. Ludlam
    Eric M. Ludlam
    2009-02-01

    • assigned_to: nobody --> zappo
     
  • Add this to your ~/.xemacs/init.el file:

    ; Make fixme:, todo:, bug: and ??? tags standout
    (add-hook 'font-lock-mode-hook
    '(lambda ()
    (setq font-lock-keywords
    (append font-lock-keywords
    '(("[Ff][Ii][Xx][Mm][Ee]:\\|[Tt][Oo][Dd][Oo]:\\|[Bb][Uu][Gg]:\\|\\?\\?\\?\\?*"
    (0 'font-lock-warning-face t)))))))