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

Expose the type parser internal API to config.ld #337

Open
Elv13 opened this issue Oct 12, 2020 · 0 comments
Open

Expose the type parser internal API to config.ld #337

Elv13 opened this issue Oct 12, 2020 · 0 comments

Comments

@Elv13
Copy link

Elv13 commented Oct 12, 2020

(this issue split of a discussion in a ticket regarding removing the sandbox and supporting modules)

Ldoc already supports creating your own types/tags using new_type, but they are mostly treated as strings. The internal version supports parsing @foo[opt=true....] arg arg2 arg3 .... It also support checking the parent (like @tparam table args \n @tparam boolean args.is_true. Currently, you have to re-implement this in your config.ld and it's impossible to fully reproduce that behavior because not enough information is exposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant