- 11 Apr, 2018 1 commit
-
-
Leon Arnott authored
This will be followed by a number of other str- macros in the coming days. Additionally, the (text:) macro now has another alias, (str:). This alias will now be the preferred name for this macro in the documentation, mainly due to the arrival of other string macros that begin with "str-", and additionally to avoid semantic conflict with the various "text-" changer macros like (text-style:).
-
- 10 Apr, 2018 1 commit
-
-
Leon Arnott authored
Also, a few type-checks in the main codebase were made slightly more resilient for some reason.
-
- 25 Feb, 2018 1 commit
-
-
Leon Arnott authored
I'd been meaning to add a section like this for some time, but only now remembered to do it. Hopefully I remain motivated to continue this over time.
-
- 15 Jan, 2018 1 commit
-
-
Leon Arnott authored
Also raised the Harlowe version number to its proper value.
-
- 07 Dec, 2017 1 commit
-
-
Leon Arnott authored
-
- 06 Dec, 2017 3 commits
-
-
Leon Arnott authored
This also upgrades various parsing errors, caused by omitting left or right sides from certain tokens, such as "1st of" or "each", expecting VarRefs or other values, from Javascript errors to Harlowe errors. Also removed NaN from the "number" lexer pattern, which I'd intended to do long ago. Closes #94.
-
Leon Arnott authored
This currently only lists those that have been (set:), and ignores those that are created inside (for:) loops. Also fixed some debug view messages that put variable names in quotes (such as $'bones'). Also added documentation notes about how variable names cannot begin with numerals. Closes #111.
-
Leon Arnott authored
Additionally: * Added a button to toggle the variables pane. * Changed the docs build script to not keep outputting an incorrect icon URL. Closes #89.
-
- 20 Nov, 2017 2 commits
-
-
Leon Arnott authored
The censor-bar style, which was used in all previous versions but not correctly documented, was bugged to always be black even if the text colour was not black. It can be replicated in stories by simply using a `(background-colour:)` macro (preferably set to a variable) in its place. Also re-fixed certain broken maths macros for probably the fourth time in Harlowe history. Also reverted the default line-height CSS for <h1> and other elements to "1em" instead of "1rem", due to it causing problems with line-wrapped headers. Closes #115. Closes #107. Closes #80.
-
Leon Arnott authored
Formerly, this would just fail utterly and cause a crash. Also added a missing miscdocs file. Closes #93.
-
- 02 Aug, 2017 1 commit
-
-
Leon Arnott authored
Fixed a bug where the alternative macro spellings (text-color:) and (color:) were displayed as erroneous in the editor.
-
- 16 Jun, 2017 1 commit
-
-
Leon Arnott authored
This isn't actually a fully functional process at present (Pandoc can't properly convert MD tables into DokuWiki, it seems) but it works well enough for my needs.
-
- 25 May, 2017 1 commit
-
-
Leon Arnott authored
The current implementation erroneously appends each iteration of (link-repeat:) instead of replacing - but in the interests of backwards-compatibility, I can't change this until another major release. Also fixes a few places where old version numbers were recorded. Closes #92.
-
- 30 Apr, 2017 1 commit
-
-
Leon Arnott authored
-
- 26 Apr, 2017 1 commit
-
-
Leon Arnott authored
-
- 08 Mar, 2017 1 commit
-
-
Leon Arnott authored
This fix forcibly checks which CSS properties are being applied to the <tw-enchantment> by style changers, and adds matching "inherit" inline styles to the <tw-story> below. Yes, it's unfortunate that the <tw-story> has to be permuted for this… oh well. Also added CodeMirror mode CSS that keeps the line-break marker gutter at left:0, which, for reasons yet unknown, it sometimes isn't. Version changed to 2.0.1. Closes #85. Closes #83.
-
- 14 Feb, 2017 4 commits
-
-
Leon Arnott authored
-
Leon Arnott authored
-
Leon Arnott authored
-
Leon Arnott authored
-
- 31 Jan, 2017 1 commit
-
-
Leon Arnott authored
This functionality was documented but not fully implemented. Also, added documentation for (folded:), and fixed a bug where it wouldn't correctly propagate TwineErrors passed to it.
-
- 25 Jan, 2017 1 commit
-
-
Leon Arnott authored
This closes #77. Also: * Added manual text for (enchant:). * Link macros like (link-enchant:) will now error when given an empty string.
-
- 23 Jan, 2017 1 commit
-
-
Leon Arnott authored
This was caused by a discrepancy between Patterns's anyLetter and Utils's anyLetter, which is now solved by renaming the latter. Also fixed a bug where two hook refs with differing capitalisation wouldn't be seen as identical using "is". Closes #73.
-
- 19 Jan, 2017 1 commit
-
-
Leon Arnott authored
* Added documentation for the (altered:) macro. * Fixed various macro doc mistakes or errors. * Altered the documentation generation script to add a "changes" section pulling two recent versions' changes directly from README.md. * Now, the new invalid operators like "x" and "are" are no longer syntax-highlighted orange when inside string literals.
-
- 17 Jan, 2017 3 commits
-
-
Leon Arnott authored
Having them in the Harlowe.js file was kind of a kludge, and this amends that. Also added documentation for (for:), and temp variables. Also added a line to the README about the <tw-story> element's location.
-
Leon Arnott authored
-
Leon Arnott authored
This caused various expressions like (set: $a to $a < $y) to break. Fixes #68. Fixes #69.
-
- 10 Dec, 2016 1 commit
-
-
Leon Arnott authored
Also added a `make format` Makefile task to round out the offered tasks. Closes #62.
-
- 03 Dec, 2016 1 commit
-
-
Leon Arnott authored
This fairly obvious combination, which directly maps to (but currently doesn't bootstrap) the default sidebar's undo button, is now provided.
-
- 01 Dec, 2016 1 commit
-
-
Leon Arnott authored
This, along with a forthcoming (redo:) macro (which, in order to be used correctly, would require a (future:) macro, I guess), would allow the current default sidebar to be bootstrapped (constructed anew) from Harlowe code. Also changed the CSS of <html> such that its font declaration is now on <tw-story>, and fixed the CSS of <tw-error>s to make them white-on-black alongside the rest. (I may revise the latter some more to make it work when black-on-white is being used.)
-
- 30 Nov, 2016 1 commit
-
-
Leon Arnott authored
I've wanted to do this for a long time. I feel like white-on-black is the superior default for Twine, and was so during Twine 1, for a few reasons - black suggests a greater degree of intimacy, away from the "public" space of the white-on-black web, and invites more personal writing. Instructions for changing it back using (enchant:) are in the update notes. (Yes, I'm aware (enchant:) still needs to be documented.)
-
- 26 Nov, 2016 2 commits
-
-
Leon Arnott authored
This makes it compatible with a copy of Harlowe 1.2.3 in the same TwineJS program. Also tweaked two documentation lines.
-
Leon Arnott authored
This makes it compatible with a copy of Harlowe 2.0.0 in the same TwineJS program.
-
- 21 Nov, 2016 1 commit
-
-
Leon Arnott authored
The addition of "each" lambdas was the final piece of this puzzle - expressing which temp variable to loop over in an unambiguous and readable syntactic way.
-
- 19 Nov, 2016 1 commit
-
-
Leon Arnott authored
The "each" keyword is a lambda "clause" that simply sets the lambda's subject, but, importantly, it allows one to create a lambda with no actual clauses. Formerly, such a lambda would be syntactically identical to (and unable to be disambiguated from) a plain temp variable. This allows future macros (such as a possible (loop:) macro) to use lambdas that iterate over the entire sequence, without specifying any specific selection or modification.
-
- 04 Nov, 2016 1 commit
-
-
Leon Arnott authored
Fixed a bug where setting custom values in a datamap returned by (passage:) would save the data in all subsequent identical (passage:) datamaps. This is for 2.0 only, since it's entirely likely some stories rely on these bugged semantics for storage. Also corrected a few documentation notes. Closes #60.
-
- 02 Nov, 2016 2 commits
-
-
Leon Arnott authored
-
Leon Arnott authored
This eliminates one instance of the non-character U+FFFE appearing in the output, which caused some servers to error. Also brought down d628d45dd90e's change from the 2.0.0 branch.
-
- 01 Nov, 2016 1 commit
-
-
Leon Arnott authored
Given that Babel inserts the pragma into its compiled output automatically, the pragmas aren't necessarily needed - however, for testing the raw ES6 in a browser without compilation, they still have to be there.
-
- 11 Sep, 2016 1 commit
-
-
Leon Arnott authored
Added the (hover-style:) changer macro, which allows passed style changers to only apply when hovering over the hook. I'm a little uncomfortable about its name (as compared to (text-style:)) and the specificity of only allowing style changers (which currently does not include (transition:)s) but I think it'll be fine, and could be safely expanded a little in future. Also fixed a bug where joining a changer, using "+" in markup, with a changer macro that produced an error, would suppress the error.
-