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

Relax toggle comments to allow more "pragmas" #88

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

fredrikekre
Copy link
Owner

This patch relaxes the toggle comments # runic: (off|on) such that the comment may contain more than just the toggle comment. This is useful when combining with other "pragmas" such as e.g. Literate.jl line filters. For example, the following now also toggles formatting:

# runic: off      #src
not = formatted   #src
# runic: on       #src

This patch relaxes the toggle comments `# runic: (off|on)` such that the
comment may contain more than just the toggle comment. This is useful
when combining with other "pragmas" such as e.g. Literate.jl line
filters. For example, the following now also toggles formatting:

```julia
\# runic: off     #src
not = formatted   #src
\# runic: on      #src
```
@fredrikekre fredrikekre merged commit e395af1 into master Oct 31, 2024
8 of 10 checks passed
@fredrikekre fredrikekre deleted the fe/src branch October 31, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant