Skip to content

Commit e967a80

Browse files
Grammar enhancements
1 parent 0228053 commit e967a80

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"printableName": "Cache Web Terminal",
66
"description": "Web-based terminal emulator for Caché administering.",
77
"author": "ZitRo",
8-
"version": "4.0.0-beta.3",
8+
"version": "4.0.0-beta.4",
99
"gaID": "UA-83005064-2",
1010
"releaseNumber": 26,
1111
"scripts": {

src/client/js/parser/grammar.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ rule("cosCommand").split(
354354
char(",").optWhitespace().merge(),
355355
any().exit()
356356
),
357+
id([
358+
{ CI, value: "zload", class: "keyword" },
359+
{ CI, value: "zl", class: "keyword" }
360+
]).call("postCondition").whitespace().branch().id({ type: "routine", class: "global" }).exit(),
357361
id([
358362
{ CI, value: "znspace", class: "keyword" },
359363
{ CI, value: "zn", class: "keyword" }
@@ -414,7 +418,10 @@ rule("postCondition").split(
414418
).exit().end();
415419

416420
rule("doArgument").split(
417-
char({ value: "^", class: "global" }).branch().id({ type: "routine", class: "global" }).split(
421+
char({ value: "^", class: "global" }).branch().split(
422+
char({ type: "routine", class: "global" }),
423+
any
424+
).id({ type: "routine", class: "global" }).split(
418425
char({ value: ".", type: "routine", class: "global" }).merge(),
419426
any()
420427
),

0 commit comments

Comments
 (0)