Skip to content

add tree-sitter grammar - #567

Merged
rbalicki2 merged 8 commits into
isographlabs:mainfrom
XiNiHa:tree-sitter
Aug 26, 2025
Merged

rbalicki2 merged 8 commits into
isographlabs:mainfrom
XiNiHa:tree-sitter

Conversation

@XiNiHa

@XiNiHa XiNiHa commented Aug 16, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@XiNiHa
XiNiHa force-pushed the tree-sitter branch 3 times, most recently from 508ed56 to 1cb7218 Compare August 16, 2025 14:48
@XiNiHa XiNiHa mentioned this pull request Aug 16, 2025
@XiNiHa
XiNiHa force-pushed the tree-sitter branch 5 times, most recently from c04bc87 to f52727f Compare August 22, 2025 07:27

@rbalicki2 rbalicki2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think many of these files are generated, yeah?

i.e. I shouldn't try to review node-types.json and parser.c, right? What about the other files?

Comment thread tree-sitter/src/grammar.json Resolved
Comment thread tree-sitter/src/grammar.json Resolved
Comment thread tree-sitter/src/grammar.json Resolved
Comment thread tree-sitter/src/grammar.json Resolved
Comment thread tree-sitter/src/grammar.json Resolved
Comment thread tree-sitter/src/grammar.json Resolved
@XiNiHa

XiNiHa commented Aug 25, 2025

Copy link
Copy Markdown
Contributor Author

I think many of these files are generated, yeah?

i.e. I shouldn't try to review node-types.json and parser.c, right? What about the other files?

The linguist config is set up so you only see the diffs for non-generated files if you review on the GitHub Web UI, so basically it's just a grammar.js and some tests

@rbalicki2

Copy link
Copy Markdown
Collaborator

Ah okay, well then I'm glad I reviewed something that's pretty 1:1 with the grammar js file :-D

@XiNiHa

XiNiHa commented Aug 26, 2025

Copy link
Copy Markdown
Contributor Author

Explicitly handling newlines in specific points while skipping in most cases requires writing a custom scanner for handling this; it'll take some time to get it working I guess 😅

@XiNiHa
XiNiHa requested a review from rbalicki2 August 26, 2025 14:16
@rbalicki2
rbalicki2 merged commit b365b08 into isographlabs:main Aug 26, 2025
@XiNiHa
XiNiHa deleted the tree-sitter branch August 26, 2025 18:08
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