linguist icon indicating copy to clipboard operation
linguist copied to clipboard

Add WXML (WeiXin Markup Language)

Open OverflowCat opened this issue 1 year ago • 1 comments

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 https://github.com/github-linguist/linguist/issues/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:

  • [x] I am adding a new language.
    • [x] The new extension is used in hundreds of repositories on GitHub.com

      • Search results for each extension:
        • NOT is:fork path:*.wxml /<(view|text|template|import|block)>/ yields 63k files
    • [x] I have included a real-world usage sample for all extensions added in this PR:

      • Sample source(s):
        • https://github.com/youzan/vant-weapp/blob/dev/lib/calendar/calendar.wxml (17.9k stars)
        • https://github.com/iamxjb/winxin-app-watch-life.net/blob/master/pages/index/index.wxml (2.8k stars)
      • Sample license(s): MIT
    • [x] I have included a syntax highlighting grammar: https://github.com/OverflowCat/wxml-tmlanguage

    • [x] I have added a color

    • [ ] I have updated the heuristics to distinguish my language from others using the same extension.

OverflowCat avatar Dec 21 '24 13:12 OverflowCat

Hello, could we re-run the tests?

OverflowCat avatar Apr 20 '25 00:04 OverflowCat