-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Label folding including local labels #147
Comments
Looks like a good way to do it, but I'm not sure that it is a common way to organize/use labels. |
This is how the QT framework seems to fold subroutines. It makes sense (to me at least) to hide the local/sub-routines when folding the parent. |
I agree to fold subroutines inside the main label is interesting. |
If the label starts with a ".", in most assemblers that is treated as a local variable (you can have several "." labels named the same as long as they have a non "." label between them). But lots of code exists that don't use it. So I would say that "." labels is a good starting point. I would also like a "special" comment syntax for folding, or both ;)
|
Maybe something configurable with regexp, like:
|
Hmm, several of my sections ends with a jump to another subroutine like:
I usally optimize that to:
You should at least add I think I would prefere a separate keyword for folding but it is worth a test :) |
In you case that would be:
With a test to deal with the nested regions. |
When folding routines it would be useful if the local routines are folded too. If I have the following
When folding "SetPalette:" I want it to also fold ".loop" and ".found" and they wont be visible. Otherwise I endup with this
^SetPalette
^.loop
^found
The text was updated successfully, but these errors were encountered: