Skip to content

Conversation

juleswritescode
Copy link
Collaborator

This also made it possible to upgrade to treesitter 0.25.X – I only had to adjust two lines in pgt_treesitter/context/mod.rs. :)

@@ -0,0 +1,188 @@
#include "tree_sitter/parser.h"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not autogenerated, but copied from the derek stride repo.
You can add context-aware parsing to treesitter via the scanner.c file.
This is only necessary for parsing dollar-quoted strings $tag$ select 1; $tag$

@@ -0,0 +1,3405 @@
/**
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also copied from the derek stride repo, I just added JSDoc types and fixed some linting errors

Copy link
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@juleswritescode juleswritescode merged commit 4a62cc0 into main Sep 19, 2025
8 checks passed
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