Skip to content
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

[Extensions, IV] Integrate flowR's magic comments #103

Open
Ellpeck opened this issue Aug 20, 2024 · 0 comments
Open

[Extensions, IV] Integrate flowR's magic comments #103

Ellpeck opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ellpeck
Copy link
Member

Ellpeck commented Aug 20, 2024

Slicing with flowR now supports magic comments (see
flowr-analysis/flowr#895). They work like this:

Within a document that is to be sliced, you can use magic comments to influence the slicing process:

  • # flowr@include_next_line will cause the next line to be included, independent of if it is important for the slice.
  • # flowr@include_this_line will cause the current line to be included, independent of if it is important for the slice.
  • # flowr@include_start and # flowr@include_end will cause the lines between them to be included, independent of if they are important for the slice. These magic comments can be nested but should appear on a separate line.

They should be highlighted appropriately when using them with the extension. Similar to the TODO Highlight extension (although the type of highlighting should probably be discussed with respect to how prominent it presents itself).

@Ellpeck Ellpeck added the enhancement New feature or request label Aug 20, 2024
@EagleoutIce EagleoutIce changed the title Integrate with magic comments [Extensions, IV] Integrate flowR's magic comments Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant