Hi could soy (closure template) be ported from v5 to v6 even if it’s added to legacy mode please.
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../htmlmixed/htmlmixed"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use strict";
var paramData = { noEndTag: true, soyState: "param-def" };
var tags = {
"alias": { noEndTag: true },
"delpackage": { noEndTag: true },
"namespace": { noEndTag: true, soyState: "namespace-def" },
"@attribute": paramData,
"@attribute?": paramData,
This file has been truncated. show original
Version 5-style modes that mix several languages, like the htmlmixed one that the Soy mode depends on, can unfortunately not be used with version 6’s StreamLanguage
abstraction.
Oh is that for legacy mode? Anyway for this to be done in the newer syntax? I know lang-php can.
Yes, it is possible. But you’ll have to organize for it to be done yourself—I don’t write new modes just because someone asks for them.