@xano/xanoscript-language-server 12.16.2 → 12.16.3
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/package.json
CHANGED
package/parser/channel_parser.js
CHANGED
|
@@ -19,6 +19,7 @@ export function channelDeclaration($) {
|
|
|
19
19
|
let hasDelivery = false;
|
|
20
20
|
let hasRateLimit = false;
|
|
21
21
|
let hasHistory = false;
|
|
22
|
+
let hasMiddleware = false;
|
|
22
23
|
let hasInput = false;
|
|
23
24
|
let hasDescription = false;
|
|
24
25
|
let hasGuid = false;
|
|
@@ -141,6 +142,13 @@ export function channelDeclaration($) {
|
|
|
141
142
|
$.SUBRULE($.historyClause);
|
|
142
143
|
},
|
|
143
144
|
},
|
|
145
|
+
{
|
|
146
|
+
GATE: () => !hasMiddleware,
|
|
147
|
+
ALT: () => {
|
|
148
|
+
hasMiddleware = true;
|
|
149
|
+
$.SUBRULE($.middlewareClause);
|
|
150
|
+
},
|
|
151
|
+
},
|
|
144
152
|
{
|
|
145
153
|
GATE: () => !hasInput,
|
|
146
154
|
ALT: () => {
|
|
@@ -12,6 +12,7 @@ export function realtimeServerDeclaration($) {
|
|
|
12
12
|
let hasGuid = false;
|
|
13
13
|
let hasDocs = false;
|
|
14
14
|
let hasHistory = false;
|
|
15
|
+
let hasMiddleware = false;
|
|
15
16
|
let hasTags = false;
|
|
16
17
|
|
|
17
18
|
$.sectionStack.push("realtimeServerDeclaration");
|
|
@@ -75,6 +76,13 @@ export function realtimeServerDeclaration($) {
|
|
|
75
76
|
$.SUBRULE($.historyClause);
|
|
76
77
|
},
|
|
77
78
|
},
|
|
79
|
+
{
|
|
80
|
+
GATE: () => !hasMiddleware,
|
|
81
|
+
ALT: () => {
|
|
82
|
+
hasMiddleware = true;
|
|
83
|
+
$.SUBRULE($.middlewareClause);
|
|
84
|
+
},
|
|
85
|
+
},
|
|
78
86
|
{
|
|
79
87
|
GATE: () => !hasTags,
|
|
80
88
|
ALT: () => {
|