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

Setter funcion to update private attribute metadata #230

Merged
merged 3 commits into from
Jan 21, 2019

Conversation

kanishkarj
Copy link
Contributor

This change is necessary to load custom syntaxes in xi-syntect-plugin.

@@ -144,6 +144,10 @@ impl SyntaxSet {
&self.syntaxes[..]
}

pub fn set_metadata(&mut self, metadata: Metadata) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be guarded by a cfg feature, like below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#[cfg(feature = "metadata")]

will this do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check this out!

Copy link
Contributor

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@trishume: when I did the initial metadata work I only considered the case where we were using the default pack dumps; there was no ability to load a custom metadata dump.

@trishume
Copy link
Owner

Cool looks good to me.

@trishume trishume merged commit 688e17e into trishume:master Jan 21, 2019
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.

3 participants