1. 16 Jun, 2017 1 commit
  2. 25 May, 2017 1 commit
    • Leon Arnott's avatar
      Changed (link-repeat:)'s documentation to match current behaviour. · 476a743d3003
      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.
  3. 30 Apr, 2017 1 commit
  4. 26 Apr, 2017 1 commit
  5. 08 Mar, 2017 1 commit
    • Leon Arnott's avatar
      Fixed (enchant: ?Page) not being able to override default CSS (or other CSS) on <tw-story>. · ff6e94bb72a5
      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.
  6. 14 Feb, 2017 4 commits
  7. 31 Jan, 2017 1 commit
  8. 25 Jan, 2017 1 commit
  9. 23 Jan, 2017 1 commit
  10. 19 Jan, 2017 1 commit
    • Leon Arnott's avatar
      More documentation additions. · c22a05845ea6
      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.
  11. 17 Jan, 2017 3 commits
  12. 10 Dec, 2016 1 commit
  13. 03 Dec, 2016 1 commit
  14. 01 Dec, 2016 1 commit
    • Leon Arnott's avatar
      Added the (undo:) macro. · e2f2768af7da
      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.)
  15. 30 Nov, 2016 1 commit
    • Leon Arnott's avatar
      Changed Harlowe 2 to use white-on-black CSS by default. · b7f75aa1c921
      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.)
  16. 26 Nov, 2016 2 commits
  17. 21 Nov, 2016 1 commit
    • Leon Arnott's avatar
      Added the (for:) macro. · 1b4be85e5df5
      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.
  18. 19 Nov, 2016 1 commit
    • Leon Arnott's avatar
      Added the "each" lambda keyword, to enable no-clause lambdas to be expressed. · cb3f67c2913a
      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.
  19. 04 Nov, 2016 1 commit
  20. 02 Nov, 2016 2 commits
  21. 01 Nov, 2016 1 commit
  22. 11 Sep, 2016 1 commit
    • Leon Arnott's avatar
      Added the (hover-style:) changer macro, which allows passed style changers to... · 9a605ba4689d
      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.
  23. 06 Sep, 2016 1 commit
    • Leon Arnott's avatar
      (count:) now accepts multiple values. · d67319fd80bb
      Leon Arnott authored
      Also fixed a bug where the wrong value would be given if passed the empty string as a search term (due to being passed to String#split()).
      Closes #8.
  24. 03 Sep, 2016 2 commits
    • Leon Arnott's avatar
    • Leon Arnott's avatar
      Added "any" and "all" properties to sequentials, which are used for "all" and... · c6a0b59b3b47
      Leon Arnott authored
      Added "any" and "all" properties to sequentials, which are used for "all" and "any" comparison operations.
      These properties produce special, unstorable "determiner" values, which, when used as the object of "contains", "is in", or other comparison expressions, results in every element of the sequential being compared using the operation. This is, I feel, a better solution to simply adding "contains all" and "contains any" operators, in that it naturally expands to cover ">", ">=" and other non-set-related operations.
      Also fixes a bug (that didn't manifest until just now) where certain unstorable values could be stored if they were in storable data structures.
  25. 01 Sep, 2016 1 commit
    • Leon Arnott's avatar
      Joining changers outside of macros now requres interstitial "+" signs. · af415bd075be
      Leon Arnott authored
      This was important, I decided, to ensure consistency in changer concatenation between macros and passage markup. $changer + $changer2 now joins changers in both modes.
      Also added a "none" (text-style:) which, when added to other (text-style:) combined changers, removes their styles.
  26. 30 Aug, 2016 3 commits
  27. 29 Aug, 2016 1 commit
    • Leon Arnott's avatar
      Added hidden hook markup and the macros (hidden:), and (show:). · b132150f7b5c
      Leon Arnott authored
      I spent years feeling rueful about adding this, as I'd felt it directly competes with the (replace:) macros' idiom. Lately, though, I've seen the merit in it, as a way of keeping revealed text inside the flow of the prose it is revealed inside, when said text is vital to the readability of the passage.
      I currently feel like this doesn't provide much way of expressing structure and relationship between hidden hooks and visible ones - no semantic way to convey that they form a list with only a single one visible, for instance, or that one builds upon the last, as with <<becomes>> and <<gains>> in Twine 1. But, future macros providing semantically clearer means of showing hidden hooks ((show-next:), (reveal-next:) or somesuch) can always be added.
  28. 24 Aug, 2016 1 commit
    • Leon Arnott's avatar
      Fixed various mistakes or vaguaries in numerous error messages. · b1f96134476b
      Leon Arnott authored
      Also added to the test case HTML page a "ErrorMessages" global which collects all Harlowe error messages produced as a result of tests, so that they can be checked.
      Also decided to stick with the uncapitalised "boolean" for the data type in documentation and errors.
  29. 23 Aug, 2016 1 commit
    • Leon Arnott's avatar
      Lambdas may now omit the leading temp variable, and can use "it" for it. · 6906e892b585
      Leon Arnott authored
      I'm still not entirely sold on this decision, which is why it's currently undocumented, but here it is: you can now write (find: where it > 3) etc., and "it" will refer to the loop variable, even if elided. "it" also works when the variable is provided - (find: _item where it > 3).
      (What I'm hesitant about is that this is ultimately a new meaning for "it", similar to but not equivalent to previous uses where "it"'s value was always leftward and explicitly visible.)
      Also fixed/removed a few revision tests, and altered some documentation references to (datamap:), changing it to (dm:).
  30. 20 Aug, 2016 1 commit
    • Leon Arnott's avatar
      Fixed a parsing bug involving belonging indices and negative numbers. · 0febb90c4d69
      Leon Arnott authored
      This prevented a meaningful error message being displayed for "(print: 1st of -0.2)", for instance.
      Incidentally, this also indirectly changes the syntax highlighting for negative numbers - now, the - sign, if alongside the first digit, now is coloured the same as the rest of the number.