fix(basic.gblib): Allow MERGE keyword in storage #386. @othonlima

This commit is contained in:
Rodrigo Rodriguez 2024-02-08 15:27:33 -03:00
parent 57ef966340
commit 015bfb74e8

View file

@ -1088,6 +1088,13 @@ export class KeywordsExpressions {
}
];
keywords[i++] = [
/^\s*((?:[a-z]+.?)(?:(?:\w+).)(?:\w+)*)\s*=\s*MERGE\s+(.*)\s*WITH\s*(.*)BY\s*(.*)/gim,
($0, $1, $2, $3, $4) => {
return `${$1} = await sys.merge({pid: pid, file: ${$2}, data: ${$3}, key1: ${$4}})`;
}
];
keywords[i++] = [
/^\s*MERGE\s+(.*)\s*WITH\s*(.*)BY\s*(.*)/gim,
($0, $1, $2, $3) => {