support function type injector #154

Open
xiaoqixian wants to merge 2 commits from xiaoqixian/master into master
xiaoqixian commented 2024-12-20 21:34:29 -06:00 (Migrated from github.com)

Make injector.before and injector.after be able to be of function type, accepts code as the only parameter, so imports can depend on the actual problem code. For instance, if the problem uses only std::string, then only #include <string> and using std::string; need to be injected before the problem.

Make `injector.before` and `injector.after` be able to be of function type, accepts `code` as the only parameter, so imports can depend on the actual problem code. For instance, if the problem uses only `std::string`, then only `#include <string>` and `using std::string;` need to be injected before the problem.
This pull request has changes conflicting with the target branch.
  • lua/leetcode-ui/question.lua
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin xiaoqixian/master:xiaoqixian/master
git switch xiaoqixian/master

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff xiaoqixian/master
git switch xiaoqixian/master
git rebase master
git switch master
git merge --ff-only xiaoqixian/master
git switch xiaoqixian/master
git rebase master
git switch master
git merge --no-ff xiaoqixian/master
git switch master
git merge --squash xiaoqixian/master
git switch master
git merge --ff-only xiaoqixian/master
git switch master
git merge xiaoqixian/master
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
arduinohatesme/leetcode.nvim!154
No description provided.