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

Including a specific commented section when compiling #19

Closed
Alekhoff opened this issue Dec 9, 2019 · 3 comments
Closed

Including a specific commented section when compiling #19

Alekhoff opened this issue Dec 9, 2019 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Alekhoff
Copy link

Alekhoff commented Dec 9, 2019

Hey,

Love this filter generator, its what i have been looking for!

Is there any way to include only some Highlight block that is normally commented out, but i uncomment them if i need to look for a specific item for one or two maps?

So i dont have to uncomment it, then compile, then comment it out again and compile again when I got what i was looking for.

@Alekhoff Alekhoff added the question Further information is requested label Dec 9, 2019
@Xeverous
Copy link
Owner

Currently, no. This will be solved once the feature of generating multiple filter variants is present. If you have any syntax/semantics idea, post in #7.

Current partial workaround: FS does not generate blocks which would be invalid - so far this only happens when a string condition (class/base type/has explicit mod/has enchantment) has empty list of names. So if you have:

# x = ["something", "you", "want", "to", "pick", "up"]
x = []

Class x {
   ...

by (un)commenting 1 line you can swap between generating and not generating a set of nested blocks that depends on a string-based condition.

@Xeverous
Copy link
Owner

Do you have any more questions or can this be closed? The actual lacking feature is tracked by #7.

@Xeverous
Copy link
Owner

Agreed to close on a private message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants