squiffy-compiler 7.0.0-beta.1 → 7.0.0-beta.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/dist/syntax.d.ts CHANGED
@@ -6,8 +6,8 @@ export interface Range {
6
6
  start: Position;
7
7
  end: Position;
8
8
  }
9
- export type DiagnosticSeverity = "error" | "warning";
10
- export type DiagnosticCode = "squiffy/passage-without-section" | "squiffy/text-in-ui-block" | "squiffy/content-before-section" | "squiffy/v5-syntax" | "squiffy/external-files-unavailable" | "squiffy/no-next-section" | "squiffy/unknown-embed" | "squiffy/unknown-section-link" | "squiffy/unknown-passage-link";
9
+ export type DiagnosticSeverity = "error" | "warning" | "hint";
10
+ export type DiagnosticCode = "squiffy/passage-without-section" | "squiffy/text-in-ui-block" | "squiffy/content-before-section" | "squiffy/v5-syntax" | "squiffy/external-files-unavailable" | "squiffy/no-next-section" | "squiffy/unknown-embed" | "squiffy/unknown-section-link" | "squiffy/unknown-passage-link" | "squiffy/duplicate-section" | "squiffy/duplicate-passage" | "squiffy/not-in-main-file" | "squiffy/redundant-import" | "squiffy/project-file" | "squiffy/unreachable-section" | "squiffy/dead-end";
11
11
  export interface Diagnostic {
12
12
  file: string;
13
13
  range: Range;
@@ -109,6 +109,10 @@ export interface ClearNode {
109
109
  type: "clear";
110
110
  range: Range;
111
111
  }
112
+ export interface EndNode {
113
+ type: "end";
114
+ range: Range;
115
+ }
112
116
  export interface AttributeNode {
113
117
  type: "attribute";
114
118
  directive: "set" | "unset" | "inc" | "dec";
@@ -128,7 +132,7 @@ export interface TextNode {
128
132
  text: string;
129
133
  range: Range;
130
134
  }
131
- export type StatementNode = SeparatorNode | TitleNode | StartNode | ImportNode | UiBlockStartNode | UiFileNode | ClearNode | AttributeNode | JsNode | TextNode;
135
+ export type StatementNode = SeparatorNode | TitleNode | StartNode | ImportNode | UiBlockStartNode | UiFileNode | ClearNode | EndNode | AttributeNode | JsNode | TextNode;
132
136
  export interface LinkNode {
133
137
  type: "link";
134
138
  linkType: "section" | "passage";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squiffy-compiler",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.3",
4
4
  "description": "A tool for creating multiple-choice interactive stories",
5
5
  "author": "Alex Warren",
6
6
  "contributors": [
@@ -17,9 +17,10 @@
17
17
  "preferGlobal": true,
18
18
  "devDependencies": {
19
19
  "@types/node": "^26.6.6",
20
- "glob": "^14.0.2",
20
+ "glob": "^14.0.6",
21
+ "shiki": "^4.6.0",
21
22
  "typescript": "^6.0.3",
22
- "vitest": "^5.0.5"
23
+ "vitest": "^5.1.0"
23
24
  },
24
25
  "scripts": {
25
26
  "test": "vitest --run",
@@ -37,11 +38,17 @@
37
38
  "types": "./dist/language-service.d.ts",
38
39
  "default": "./dist/language-service.js"
39
40
  },
41
+ "./node": {
42
+ "types": "./dist/node.d.ts",
43
+ "default": "./dist/node.js"
44
+ },
45
+ "./squiffy.tmLanguage.json": "./syntaxes/squiffy.tmLanguage.json",
40
46
  "./package.json": "./package.json"
41
47
  },
42
48
  "files": [
43
- "dist"
49
+ "dist",
50
+ "syntaxes/squiffy.tmLanguage.json"
44
51
  ],
45
52
  "type": "module",
46
- "gitHead": "558b8c3c0a4ce8d7a2e4eb0e9a439ecfc4c53a62"
53
+ "gitHead": "016f53cc52dc2cf504787ef8329740ca2cf8d481"
47
54
  }