Add WXML (WeiXin Markup Language) #7174
Open
+275
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
WXML (WeiXin Markup Language) is a markup language mainly used in Weixin Mini Programs.
There are WXSS (WeiXin Style Sheets) and WXS (WeiXin Script, usually not in a separate file) but I cannot find corresponding grammar files. See #7173
Also, I am not sure if the grammar files is working. Can we ignore some files in the submodule so that we do not need to fork and delete some json files?
Checklist:
The new extension is used in hundreds of repositories on GitHub.com
NOT is:fork path:*.wxml /<(view|text|template|import|block)>/
yields 63k filesI have included a real-world usage sample for all extensions added in this PR:
I have included a syntax highlighting grammar: https://github.com/OverflowCat/wxml-tmlanguage
I have added a color
#07c160
I have updated the heuristics to distinguish my language from others using the same extension.