@xano/xanoscript-language-server 12.16.1 → 12.16.2

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.
@@ -11,10 +11,14 @@ export const RealtimeServerTriggerToken = createTokenByName(
11
11
  );
12
12
 
13
13
  // "realtime_server" (parent-reference keyword used by realtimeServerClause).
14
- // longer_alt points at the trigger token so `realtime_server_trigger` wins
15
- // over the shorter `realtime_server` prefix.
14
+ // longer_alt lists the trigger token so `realtime_server_trigger` wins over the
15
+ // shorter `realtime_server` prefix, AND Identifier so a name that merely EXTENDS
16
+ // the keyword (e.g. `realtime_server_0`, the default scaffold name) tokenizes as
17
+ // one identifier instead of keyword + leftover `_0` (DEV-7582). longer_alt is not
18
+ // transitive, so Identifier must be listed here directly — matching the
19
+ // [ServerDetailsToken, Identifier] precedent in channel.js.
16
20
  export const RealtimeServerToken = createTokenByName("realtime_server", {
17
- longer_alt: RealtimeServerTriggerToken,
21
+ longer_alt: [RealtimeServerTriggerToken, Identifier],
18
22
  categories: [Identifier], // could also be an identifier
19
23
  });
20
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/xanoscript-language-server",
3
- "version": "12.16.1",
3
+ "version": "12.16.2",
4
4
  "description": "Language Server Protocol implementation for XanoScript",
5
5
  "type": "module",
6
6
  "main": "server.js",