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

Add support for Prisma Schema #724

Open
wants to merge 122 commits into
base: master
Choose a base branch
from
Open

Conversation

ewen-lbh
Copy link

Only tested rudimentarily for now, but it seems to work nicely

- Types
- Models

Still need some polishment, fixes and missing cases
Copying a lot from tree-sitter-javascript :mind-blown:
Reverse engineering a grammar is harder than it looks!
Super interesting, not sure if I'm in the correct path though
`developer_comments` are parsed in AST to simplify the syntax 
highlighting. It might need to be parded differently
build: prepare dependencies & config
victorhqc and others added 30 commits March 17, 2022 16:07
fix: infinite loop on invalid syntax
Simplify & change grammar to avoid segmentation faults.

The type declaration had some ambiguous rules.
feat: support for the view keyword
…a9952b4f80f8f9caed300a272b5'

git-subtree-dir: vendored_parsers/tree-sitter-prisma
git-subtree-mainline: 1fba1c7
git-subtree-split: eca2596
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.

3 participants