squiffy-compiler 7.0.0-beta.6 → 7.0.0-beta.7
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/analyse.d.ts +3 -0
- package/dist/analyse.js +42 -0
- package/dist/compiler.d.ts +1 -0
- package/dist/compiler.js +1 -0
- package/dist/css-urls.d.ts +4 -0
- package/dist/css-urls.js +59 -0
- package/dist/emit.d.ts +7 -0
- package/dist/emit.js +28 -0
- package/dist/language-service.d.ts +1 -0
- package/dist/language-service.js +22 -10
- package/dist/parse.d.ts +3 -0
- package/dist/parse.js +14 -0
- package/dist/project.d.ts +2 -0
- package/dist/project.js +3 -0
- package/dist/quest/convert.js +38 -9
- package/dist/quest/scripts.js +7 -3
- package/dist/setters.d.ts +4 -0
- package/dist/setters.js +7 -5
- package/dist/syntax.d.ts +14 -1
- package/dist/text.js +17 -10
- package/dist/twine/audio.d.ts +21 -0
- package/dist/twine/audio.js +80 -0
- package/dist/twine/convert.d.ts +10 -3
- package/dist/twine/convert.js +104 -26
- package/dist/twine/expression.d.ts +20 -1
- package/dist/twine/expression.js +98 -7
- package/dist/twine/harlowe.d.ts +9 -0
- package/dist/twine/harlowe.js +363 -60
- package/dist/twine/sugarcube.d.ts +3 -0
- package/dist/twine/sugarcube.js +348 -83
- package/package.json +2 -2
- package/syntaxes/squiffy.tmLanguage.json +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squiffy-compiler",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.7",
|
|
4
4
|
"description": "A tool for creating multiple-choice interactive stories",
|
|
5
5
|
"author": "Alex Warren",
|
|
6
6
|
"contributors": [
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"syntaxes/squiffy.tmLanguage.json"
|
|
52
52
|
],
|
|
53
53
|
"type": "module",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ce089d0f0d0901c10e5a148e38cb1fdbb5d5a2d2"
|
|
55
55
|
}
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
|
-
"match": "^\\s*(@)(title|start|import|ui)\\s+(.*?)\\s*$",
|
|
288
|
+
"match": "^\\s*(@)(title|start|import|ui|music|sound|class)\\s+(.*?)\\s*$",
|
|
289
289
|
"captures": {
|
|
290
290
|
"0": {
|
|
291
291
|
"name": "meta.directive.squiffy"
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
"comment": "A setter's value. One with quotes, brackets, operators or and/or/not is an expression, as in {{#if}}. A single word is an attribute in a story with a squiffy.json, and anything else unquoted is text, as in a story without one. Of two matches at the start, the first listed wins.",
|
|
637
637
|
"patterns": [
|
|
638
638
|
{
|
|
639
|
-
"match": "(?=.*(?:[\"'()
|
|
639
|
+
"match": "(?=.*(?:[\"'()+*%<>!?]|\\s[-/]|\\b(?:and|or|not|contains)\\b)).+$",
|
|
640
640
|
"name": "meta.expression.squiffy",
|
|
641
641
|
"captures": {
|
|
642
642
|
"0": {
|
|
@@ -816,9 +816,14 @@
|
|
|
816
816
|
"name": "keyword.operator.logical.handlebars.squiffy"
|
|
817
817
|
},
|
|
818
818
|
{
|
|
819
|
-
"match": "!=|>=|<=|=(?!=)
|
|
819
|
+
"match": "!=|>=|<=|=(?!=)|>|<|\\bcontains\\b",
|
|
820
820
|
"name": "keyword.operator.comparison.handlebars.squiffy"
|
|
821
821
|
},
|
|
822
|
+
{
|
|
823
|
+
"comment": "a ? b : c. A : with no space before it is in an object, as in { hp: 10 }",
|
|
824
|
+
"match": "\\?|(?<=\\s):(?=\\s)",
|
|
825
|
+
"name": "keyword.operator.ternary.handlebars.squiffy"
|
|
826
|
+
},
|
|
822
827
|
{
|
|
823
828
|
"comment": "- and / are operators only at the start of a word: a-b is an attribute name and a/b a path",
|
|
824
829
|
"match": "[+*%]|(?<![\\w.\\]-])[-/]",
|