htmv 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler/parser.js +5 -4
- package/package.json +1 -1
package/dist/compiler/parser.js
CHANGED
|
@@ -109,6 +109,10 @@ export function parse(tokens) {
|
|
|
109
109
|
for (let i = 0; i < args.length; i++) {
|
|
110
110
|
const letter = args[i];
|
|
111
111
|
if (letter === "{") {
|
|
112
|
+
tokens.push({
|
|
113
|
+
type: "text",
|
|
114
|
+
text: textBuffer,
|
|
115
|
+
});
|
|
112
116
|
clearBuffer();
|
|
113
117
|
continue;
|
|
114
118
|
}
|
|
@@ -124,10 +128,7 @@ export function parse(tokens) {
|
|
|
124
128
|
clearBuffer();
|
|
125
129
|
function clearBuffer() {
|
|
126
130
|
if (textBuffer.length > 0) {
|
|
127
|
-
|
|
128
|
-
type: "text",
|
|
129
|
-
text: textBuffer,
|
|
130
|
-
});
|
|
131
|
+
textBuffer = "";
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|