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

[optional] argument #109

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

[optional] argument #109

wants to merge 3 commits into from

Commits on Jun 19, 2024

  1. [optional_arg]

    fix #1
    justinmk committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    d76e6b7 View commit details
    Browse the repository at this point in the history
  2. [optional]

    Problem:
    Using _word() to define an optional arg leads to a lot of syntax errors in
    real-world :help files because [brackets] are commonly used for non-args.
    
    Solution:
    Define (optional) with a regex, like (keycode) instead of using the more
    "formal" mechanism. Regex has "best-effort" behavior, while seq() behaves more
    strictly.
    
    Don't treat `[{arg}]` as (optional), else it clobbers the nested `{arg}`.
    
    fix #1
    justinmk committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    2a569e7 View commit details
    Browse the repository at this point in the history
  3. TEMP

    justinmk committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    3f33af6 View commit details
    Browse the repository at this point in the history