diff --git a/.gitmodules b/.gitmodules index 65d5ef54e..62d41f210 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1434,6 +1434,9 @@ [submodule "vendor/grammars/wollok-sublime"] path = vendor/grammars/wollok-sublime url = https://github.com/uqbar-project/wollok-sublime +[submodule "vendor/grammars/wxml-tmlanguage"] + path = vendor/grammars/wxml-tmlanguage + url = https://github.com/OverflowCat/wxml-tmlanguage.git [submodule "vendor/grammars/xc.tmbundle"] path = vendor/grammars/xc.tmbundle url = https://github.com/graymalkin/xc.tmbundle diff --git a/grammars.yml b/grammars.yml index 219734dcf..63b915cae 100644 --- a/grammars.yml +++ b/grammars.yml @@ -1303,6 +1303,8 @@ vendor/grammars/witcherscript-grammar: - source.witcherscript vendor/grammars/wollok-sublime: - source.wollok +vendor/grammars/wxml-tmlanguage: +- text.html.wxml vendor/grammars/xc.tmbundle: - source.xc vendor/grammars/xml.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index b5eebfe28..258603447 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -8708,6 +8708,12 @@ wisp: - ".wisp" tm_scope: source.clojure language_id: 420 +WXML: + type: markup + color: "#07c160" + extensions: + - ".wxml" + language_id: 1006215704 xBase: type: programming color: "#403a40" diff --git a/samples/WXML/calendar.wxml b/samples/WXML/calendar.wxml new file mode 100644 index 000000000..f822fd85d --- /dev/null +++ b/samples/WXML/calendar.wxml @@ -0,0 +1,74 @@ + + + + +
+ +
+ + + + + + + + + + + + {{ + computed.getButtonDisabled(type, currentDate, minRange) + ? confirmDisabledText + : confirmText + }} + + +
diff --git a/samples/WXML/index.wxml b/samples/WXML/index.wxml new file mode 100644 index 000000000..54ef76e15 --- /dev/null +++ b/samples/WXML/index.wxml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + 点击加入我的小程序 ↑ + 了解"{{webSiteName}}"最新文章 + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + +
+ + +
+ + + + + + + + + + + + + {{item.title}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.title.rendered}} + + + + + + + + + + + + + + + + + {{item.post_date}} {{item.post_title}} + + + + + + + + + + +
+ + + +