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

Support for XML Plist grammars? #2

Open
arvindshmicrosoft opened this issue Jul 4, 2021 · 1 comment
Open

Support for XML Plist grammars? #2

arvindshmicrosoft opened this issue Jul 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@arvindshmicrosoft
Copy link

Firstly - thank you for this project!

From what I can see thus far, the grammar needs to be the JSON format only, is that right? Do you have any plans to implement support for the XML Plist grammar similar to what exists in tm4e?

I realize there is a workaround to convert those XML grammars to JSON, so this is a good-to-have feature, albeit lower priority.

Once again, thanks!

@danipen
Copy link
Owner

danipen commented Jul 4, 2021

Hi yep, at this moment only JSON grammars are supported.

The tm4e implementation uses an XML SAX parser, which notifies start/end when a node is being read.

I didn't find an easy way to do that in dotnet, but I didn't investigate too much because I only needed JSON support.

Supporting PList format should be straightforward using a SAX-based dotnet XML parser, and writing something similar to this, based on parsing XML contents:
https://github.com/danipen/TextMateSharp/blob/master/src/TextMateSharp/Internal/Parser/Json/JSONPListParser.cs

@danipen danipen added the enhancement New feature or request label Jul 5, 2021
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

2 participants