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

Introduce proper KDoc parsing and Formatting #15

Closed
strulovich opened this issue Jan 9, 2020 · 1 comment
Closed

Introduce proper KDoc parsing and Formatting #15

strulovich opened this issue Jan 9, 2020 · 1 comment

Comments

@strulovich
Copy link
Contributor

The first version of Ktfmt uses the java-doc formatter from Google-Java-Format with very few forks to make it palatable. However, this will keep us stumbling onto issues. We need instead to figure a clean way to parse KDoc and output them instead.
@cgrushko pointed out that kotlinc can parse that, so this may be the first step to figuring out a good solution.

@strulovich
Copy link
Contributor Author

We now parse KDoc using the built in lexers. There's definitely bugs and issues to resolve, but the results should be satisfactory for the vast majority of code. We will deal with specific issues from now on,

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

No branches or pull requests

1 participant