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

✨ Add parser support for backslash continuation #1180

Merged
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
58d0132
fix typo
TheAfroOfDoom May 18, 2024
d95506f
add support for offset from cursor for `Source.hasNonSpaceAheadInLine()`
TheAfroOfDoom May 18, 2024
2cbab86
add `concatOnTrailingBackslash` util parser
TheAfroOfDoom May 19, 2024
b79623c
add backslash continuation to `argument` parsers
TheAfroOfDoom May 19, 2024
9addc6c
add backslash continuation to `command` parser
TheAfroOfDoom May 19, 2024
ec8760d
🧪 Add tests with incorrect parse result
TheAfroOfDoom May 20, 2024
059a825
🐛 Fix backslash parser allowing multiple newlines per single backslash
TheAfroOfDoom May 20, 2024
97b897f
♻️ Refactor parser test tree into test util file
TheAfroOfDoom May 20, 2024
ed7f45c
✅ Add base tests for mcfunction `entry` parser
TheAfroOfDoom May 20, 2024
bc18311
🧪 Add `entry` test cases containing trailing backslashes
TheAfroOfDoom May 20, 2024
37989ac
🐛 Wrap mcfunction `entry` parser with backslash continuation parser
TheAfroOfDoom May 20, 2024
5bd3500
🔧 Add long timeout arg to unit test launch configuration
TheAfroOfDoom May 20, 2024
8026277
⏪ Revert `argument` parser to use `stopBefore` again
TheAfroOfDoom May 20, 2024
7f63ab2
⚰️ Remove `terminators` argument from concat parser
TheAfroOfDoom May 20, 2024
eafa3a4
🎨 Revert formatting change
TheAfroOfDoom May 21, 2024
f3b36b4
📝 Add documentation to new `entry` function
TheAfroOfDoom May 21, 2024
4bbe498
⚰️ Remove old comment
TheAfroOfDoom May 21, 2024
4ac277e
♻️ Replace `wrapper` var with inline string
TheAfroOfDoom May 21, 2024
67eab68
💚 Register command tree smarter
TheAfroOfDoom May 21, 2024
0cf6c17
⏪ Revert launch.json changes
TheAfroOfDoom May 21, 2024
c16a08a
♻️ Gate backslash continuation behind parameter
TheAfroOfDoom May 21, 2024
0548d94
🥅 Add parse error for line continuation at end of file
TheAfroOfDoom May 24, 2024
924f6be
Merge branch 'main' into 1069-support-backslash-continuation
TheAfroOfDoom May 24, 2024
163283e
🚚 Rename locale key to be more generic
TheAfroOfDoom May 25, 2024
5a2fe95
Merge branch 'main' into 1069-support-backslash-continuation
TheAfroOfDoom May 26, 2024
bdb8343
📸 Update snapshots
TheAfroOfDoom May 26, 2024
c3a1bc9
✅ Update `entry` parser tests to not report errors
TheAfroOfDoom May 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 200 additions & 0 deletions __snapshots__/packages/core/test-out/parser/util.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading