Comments (3)
Thanks for the report 👍 I'll take a look at this when I get a chance
from prisma-ast.
@orta this is fixed in v0.4.2. Turns out I had an Array symbol in the lexer, which was '[]'
, intended to be used in the field parsing logic (e.g. for columns such as String[]
). Anyway, the lexer was picking up @default([])
and assigning the Array symbol to it, which caused it to skip over the this.array
rule.
I removed the Array symbol and switched the field rule to consume the '['
and ']'
symbols individually.
from prisma-ast.
Thanks @MrLeebo! (sorry I didn't get a PR though)
from prisma-ast.
Related Issues (14)
- Schema Builder API
- Doesn't extend existing model HOT 6
- Issue with documentation example HOT 2
- Bug with db.ObjectId HOT 1
- Add support for views HOT 4
- @@map in Enums can not be parsed properly HOT 1
- `getSchema` - model attributes are not parsed HOT 1
- feature request: Include source code location for each node HOT 9
- Renaming a model attribute or deleting an attribute and creating a new attribute with the same args of the deleted one HOT 4
- getSchema doesn't produce break-nodes HOT 3
- Thank you! HOT 2
- MismatchedTokenException: Expecting --> '}' <-- but found --> 'model' <--
- Trailing comments not handled properly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-ast.