Add array concat operator

This commit is contained in:
2026-06-19 01:01:04 +09:00
parent 6da0ec4c77
commit 01ad6dca52
17 changed files with 6365 additions and 5138 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ function isOperatorStart(char) {
function readOperator(source, start) {
let index = start + 1;
if ((source[start] === '&' || source[start] === '|' || source[start] === '/') && source[index] === source[start]) return index + 1;
if ('&|/+'.includes(source[start]) && source[index] === source[start]) return index + 1;
if ((source[start] === '<' || source[start] === '>' || source[start] === '=' || source[start] === '!') && source[index] === '=') {
index += 1;
}
@@ -10,6 +10,7 @@ in
schema.Service & {
name = "api";
port = 9000 + 443;
tags = ["web"] ++ ["prod"];
feature.enable = 9000 + 443 > 9000 && true;
}
`,
Binary file not shown.