Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Option to track file+line-number metadata #5

Open
rolandpoulter opened this issue Jun 23, 2015 · 2 comments
Open

Option to track file+line-number metadata #5

rolandpoulter opened this issue Jun 23, 2015 · 2 comments

Comments

@rolandpoulter
Copy link

It would be nice if the tags remembered what index they started and ended in the source. Then it would be easy to show the source code of tags.

@rolandpoulter
Copy link
Author

I didn't realize that this creates a single object for the whole file.

Maybe if there was a way to tell it to return the current line/index of a file or something.

/**
  @$start
  @$end
*/

Could return:
{start: 0, end: 20}

@namuol namuol changed the title Keep track of tag start/end positions Option to track file+line-number metadata Jun 23, 2015
@namuol
Copy link
Owner

namuol commented Jun 23, 2015

Yeah this is probably a feature that many people will eventually want.

If cod supports file+line-numbers at all, it should be done transparently with a parameter, or maybe through some kind of plugin system.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants