Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Fix blocks (Lexer/Parser rework) #104

Closed
wants to merge 145 commits into from

Commits on Jul 17, 2021

  1. Configuration menu
    Copy the full SHA
    b3ba38b View commit details
    Browse the repository at this point in the history
  2. Nit some formatting

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    60fe5f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    454fbaf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6ab1777 View commit details
    Browse the repository at this point in the history
  5. Add jest configuration

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    6702dbf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d30f0eb View commit details
    Browse the repository at this point in the history
  7. Fix some bugs with toIndex

    Added some documentation too.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    1817b5d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4161f66 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d3a2ef9 View commit details
    Browse the repository at this point in the history
  10. Rework location

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    2545e81 View commit details
    Browse the repository at this point in the history
  11. Add tests for shift

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    95a372c View commit details
    Browse the repository at this point in the history
  12. Add docstring for shift

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    a216dc3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    26d6b77 View commit details
    Browse the repository at this point in the history
  14. Add lengthOfLine helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    1836527 View commit details
    Browse the repository at this point in the history
  15. Fix up substring

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    3ffac1e View commit details
    Browse the repository at this point in the history
  16. Fix match

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    735eeab View commit details
    Browse the repository at this point in the history
  17. Add TextKit type

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    283b817 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a5a55b5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    46f93b6 View commit details
    Browse the repository at this point in the history
  20. Add eof helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    9e8c48e View commit details
    Browse the repository at this point in the history
  21. Add eol helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    80ef3f2 View commit details
    Browse the repository at this point in the history
  22. Add lastNonEOL helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    93e305f View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c26b8a7 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4d196ba View commit details
    Browse the repository at this point in the history
  25. Refactor test helpers

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    889a86f View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    e1f97fb View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    d9c5c30 View commit details
    Browse the repository at this point in the history
  28. Simplify match

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    790502e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    02b2efc View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    cc42b28 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    89b9510 View commit details
    Browse the repository at this point in the history
  32. Add some tests for carriage returns

    NOTE that we still don't support \r\n as a line end, as it isn't clear
    what the EOL character should be in this case (is it two
    characters?). It should probably be a range, but that could require
    bigger updates elsewhere.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    55f4119 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    cd6b0a5 View commit details
    Browse the repository at this point in the history
  34. Add extra test

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    c2a69c5 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    da742ec View commit details
    Browse the repository at this point in the history
  36. Add bol helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    cf1d9cd View commit details
    Browse the repository at this point in the history
  37. Add bof helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    d8cdda2 View commit details
    Browse the repository at this point in the history
  38. Add charAt helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    09fa48e View commit details
    Browse the repository at this point in the history
  39. Remove toIndex from exports

    Makes user more likely to work with points, as intended (otherwise
    they could just use String). Index can still be accessed via
    point.offset, if needed.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    e5b0a3c View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    503033a View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    e344e3e View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    0bd73ad View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    1422246 View commit details
    Browse the repository at this point in the history
  44. Nit some formatting

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    6ace35b View commit details
    Browse the repository at this point in the history
  45. Add local definitions of Node, Parent, Literal

    These definitions are the same as in unist, but they don't allow for
    extra keys which gives us better type safety and makes it much easier
    to debug type errors.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    1aeb62b View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    8ee3321 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    c1782d7 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    05a5aca View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    030a939 View commit details
    Browse the repository at this point in the history
  50. Add testParse helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    dd734bf View commit details
    Browse the repository at this point in the history
  51. Nit

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    563750c View commit details
    Browse the repository at this point in the history
  52. Fix debug

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    f5b4852 View commit details
    Browse the repository at this point in the history
  53. Nit

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    4081d86 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    298113d View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    43793e3 View commit details
    Browse the repository at this point in the history
  56. Fix unopened/unclosed blocks not being parsed

    These are now just treated as text.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    5203a73 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    a3099f1 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    6596765 View commit details
    Browse the repository at this point in the history
  59. Refactor some tests

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    1273217 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    e94e776 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    809c1a0 View commit details
    Browse the repository at this point in the history
  62. Refactor drawer tests

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    d9dffea View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    55264ff View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    7fde655 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    e35d7b4 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    b51316d View commit details
    Browse the repository at this point in the history
  67. Remove old use of Node

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    1df02e4 View commit details
    Browse the repository at this point in the history
  68. Revert "Pretend to use unist-node externally"

    This reverts commit da984ef.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    465622a View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    34cd8f4 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    dd4f7b1 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    305be45 View commit details
    Browse the repository at this point in the history
  72. Simplify greater block name property

    We aren't tracking the actual name provided in the source
    here (we can't render back to Org because we don't have the block
    end), so we may as well use the simplified form of the type.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    24042af View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    754e26d View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    32d73a5 View commit details
    Browse the repository at this point in the history
  75. Fix typo

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    b0aa9c2 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    0756b16 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    2127efe View commit details
    Browse the repository at this point in the history
  78. Add tokenToText helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    76b31d0 View commit details
    Browse the repository at this point in the history
  79. Fix some parenting

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    610d275 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    9e64c53 View commit details
    Browse the repository at this point in the history
  81. Add some fixes to markup parsing in verse blocks

    Need to rewrite the lexer a bit more to get better consistency, but
    this is proof of concept.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    6040d1d View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    209cc08 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    94788bd View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    2dc4f32 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    0023d9c View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    2a97fe2 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    613727b View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    0a92d9f View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    6457b56 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    20fb9ff View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    32daef6 View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    5e6979d View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    75aa406 View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    5a1aebe View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    b653e3c View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    96fe8cf View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    0429496 View commit details
    Browse the repository at this point in the history
  98. Clarify comment

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    db2dd3c View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    79ed6b5 View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    48a13d2 View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    edd48e2 View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    52273b9 View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    253c016 View commit details
    Browse the repository at this point in the history
  104. Nit some formatting

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    f6e483d View commit details
    Browse the repository at this point in the history
  105. Rework heading and section parsing to match spec

    Previously, we were parsing sections with headlines inside them, but
    this never made sense according to the spec, which states that
    sections can only belong _in_ headlines (or the document itself).
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    e138f2e View commit details
    Browse the repository at this point in the history
  106. Configuration menu
    Copy the full SHA
    18c1400 View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    b194640 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    11b071c View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    55154a6 View commit details
    Browse the repository at this point in the history
  110. Add pushMany helper

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    2a1b664 View commit details
    Browse the repository at this point in the history
  111. Configuration menu
    Copy the full SHA
    e5cf543 View commit details
    Browse the repository at this point in the history
  112. Remove use of any type

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    0626f76 View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    8b80db8 View commit details
    Browse the repository at this point in the history
  114. Add Child interface

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    0d870de View commit details
    Browse the repository at this point in the history
  115. Configuration menu
    Copy the full SHA
    db0c28a View commit details
    Browse the repository at this point in the history
  116. Fix debug types

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    773fac6 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    912bda2 View commit details
    Browse the repository at this point in the history
  118. Configuration menu
    Copy the full SHA
    28500a4 View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    f00aa67 View commit details
    Browse the repository at this point in the history
  120. Configuration menu
    Copy the full SHA
    6d2189a View commit details
    Browse the repository at this point in the history
  121. Configuration menu
    Copy the full SHA
    d055846 View commit details
    Browse the repository at this point in the history
  122. Remove unused import

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    7b2d007 View commit details
    Browse the repository at this point in the history
  123. Configuration menu
    Copy the full SHA
    ca95ef4 View commit details
    Browse the repository at this point in the history
  124. Configuration menu
    Copy the full SHA
    6f908e9 View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    7959946 View commit details
    Browse the repository at this point in the history
  126. Configuration menu
    Copy the full SHA
    8928aa8 View commit details
    Browse the repository at this point in the history
  127. Configuration menu
    Copy the full SHA
    d31c78f View commit details
    Browse the repository at this point in the history
  128. Configuration menu
    Copy the full SHA
    bd37570 View commit details
    Browse the repository at this point in the history
  129. Configuration menu
    Copy the full SHA
    ca7409c View commit details
    Browse the repository at this point in the history
  130. Configuration menu
    Copy the full SHA
    3fd4df9 View commit details
    Browse the repository at this point in the history
  131. Configuration menu
    Copy the full SHA
    34d11d6 View commit details
    Browse the repository at this point in the history
  132. Switch orga to use strictNullChecks

    Much safer this way, managed to catch a bunch of potential crashes.
    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    5a2d42e View commit details
    Browse the repository at this point in the history
  133. Configuration menu
    Copy the full SHA
    de3d72c View commit details
    Browse the repository at this point in the history
  134. Configuration menu
    Copy the full SHA
    ac41666 View commit details
    Browse the repository at this point in the history
  135. Configuration menu
    Copy the full SHA
    32566ad View commit details
    Browse the repository at this point in the history
  136. Configuration menu
    Copy the full SHA
    60030e5 View commit details
    Browse the repository at this point in the history
  137. Configuration menu
    Copy the full SHA
    5d44a1e View commit details
    Browse the repository at this point in the history
  138. Add todo

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    3d0e816 View commit details
    Browse the repository at this point in the history
  139. Configuration menu
    Copy the full SHA
    711ebed View commit details
    Browse the repository at this point in the history
  140. Configuration menu
    Copy the full SHA
    3b3910d View commit details
    Browse the repository at this point in the history
  141. Configuration menu
    Copy the full SHA
    52d7fe4 View commit details
    Browse the repository at this point in the history
  142. Configuration menu
    Copy the full SHA
    6b019a6 View commit details
    Browse the repository at this point in the history
  143. Nit

    GuiltyDolphin committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    eb6ecb5 View commit details
    Browse the repository at this point in the history
  144. Configuration menu
    Copy the full SHA
    a8b8d36 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2021

  1. Configuration menu
    Copy the full SHA
    d39ae90 View commit details
    Browse the repository at this point in the history