CodeMyst

Results 39 comments of CodeMyst

can you guide me towards where i can get those tokens from?

but then i'd need to pass the tokens to every analyzer and that'd be tedious to do, but doable i guess

hmmm... looks like the `tokens` variable in `run.d` doesn't even contain comments :thinking:

even in the current repo, the way to get the `// [warn]` comments is without tokens and just pure string lookups. but those are read from a file and not...

so i tried getting the comment from the tokens and i think i managed to do it, i can get the `token.trailingComment` for a token that's on the line with...

the addition of comments to the tokens is done here: https://github.com/dlang-community/libdparse/blob/4b85ef36783cd47d7bcebc1b556b10b5b9c4fc5a/src/dparse/lexer.d#L415 but non doc comments are ignored and i think using doc comments for suppressing warnings is a bad idea....

Hmm I guess that would be a good way to go about it. I'm against IDE's to define it since it should be usable without one (like CI for example)....

I like that way, and it should be simple to implement (if I figure out a way to get the comments, I guess I would have to store the code...

welp, this now got too far away from my coding abilities, hopefully you can figure this stuff out. this turned from a simple feature to a rewrite of how lexing...

Would adding fields for leading and trailing non doc comments to tokens be enough for that? It should be doable to do it in one pass, currently there is some...