Skip to content

feat: annotations #331

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

Merged
merged 5 commits into from
Apr 12, 2025
Merged

feat: annotations #331

merged 5 commits into from
Apr 12, 2025

Conversation

psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Apr 12, 2025

adds a very simple Annotation service. the idea here is to annotate a statement using the lexed tokens. right now, it just returns whether or not the statement ends with a semicolon. in near future, I will also parse comments and their content so we can do #304, e.g.

-- postgrestools disable-next-line my-rule
select 1;

but to do that I will first need to adapt the splitter so that comments like that are included in the statement range :)

also replaced the root_id fn with From implementations

@psteinroe psteinroe merged commit a358cee into main Apr 12, 2025
7 checks passed
@psteinroe psteinroe mentioned this pull request Apr 15, 2025
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

Successfully merging this pull request may close these issues.

2 participants