File tree Expand file tree Collapse file tree 18 files changed +747
-76
lines changed
tests/integration/test-run Expand file tree Collapse file tree 18 files changed +747
-76
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " zenstack-monorepo" ,
3- "version" : " 1.0.0-alpha.81 " ,
3+ "version" : " 1.0.0-alpha.85 " ,
44 "description" : " " ,
55 "scripts" : {
66 "build" : " pnpm -r build" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @zenstackhq/language" ,
3- "version" : " 1.0.0-alpha.81 " ,
3+ "version" : " 1.0.0-alpha.85 " ,
44 "displayName" : " ZenStack modeling language compiler" ,
55 "description" : " ZenStack modeling language compiler" ,
66 "homepage" : " https://zenstack.dev" ,
2222 "devDependencies" : {
2323 "concurrently" : " ^7.4.0" ,
2424 "copyfiles" : " ^2.4.1" ,
25- "langium-cli" : " 1.0 .0" ,
25+ "langium-cli" : " 1.1 .0" ,
2626 "rimraf" : " ^3.0.2" ,
2727 "typescript" : " ^4.9.4"
2828 },
2929 "dependencies" : {
30- "langium" : " 1.0.1 "
30+ "langium" : " 1.1.0 "
3131 }
3232}
Original file line number Diff line number Diff line change 11/******************************************************************************
2- * This file was generated by langium-cli 1.0 .0.
2+ * This file was generated by langium-cli 1.1 .0.
33 * DO NOT EDIT MANUALLY!
44 ******************************************************************************/
55
@@ -16,7 +16,7 @@ export function isAbstractDeclaration(item: unknown): item is AbstractDeclaratio
1616
1717export type AttributeAttributeName = string ;
1818
19- export type AttributeName = string ;
19+ export type AttributeName = AttributeAttributeName | DataModelAttributeName | DataModelFieldAttributeName ;
2020
2121export type BuiltinType = 'BigInt' | 'Boolean' | 'Bytes' | 'DateTime' | 'Decimal' | 'Float' | 'Int' | 'Json' | 'String' ;
2222
@@ -776,6 +776,14 @@ export class ZModelAstReflection extends AbstractAstReflection {
776776 ]
777777 } ;
778778 }
779+ case 'LiteralExpr' : {
780+ return {
781+ name : 'LiteralExpr' ,
782+ mandatory : [
783+ { name : 'value' , type : 'boolean' }
784+ ]
785+ } ;
786+ }
779787 case 'Model' : {
780788 return {
781789 name : 'Model' ,
Original file line number Diff line number Diff line change 11/******************************************************************************
2- * This file was generated by langium-cli 1.0 .0.
2+ * This file was generated by langium-cli 1.1 .0.
33 * DO NOT EDIT MANUALLY!
44 ******************************************************************************/
55
@@ -3058,55 +3058,51 @@ export const ZModelGrammar = (): Grammar => loadedZModelGrammar ?? (loadedZModel
30583058 "types": [
30593059 {
30603060 "$type": "Type",
3061- "typeAlternatives": [
3062- {
3063- "$type": "AtomType",
3064- "refType": {
3065- "$ref": "#/rules@34"
3066- },
3067- "isArray": false,
3068- "isRef": false
3069- },
3070- {
3071- "$type": "AtomType",
3072- "refType": {
3073- "$ref": "#/rules@29"
3061+ "name": "ReferenceTarget",
3062+ "type": {
3063+ "$type": "UnionType",
3064+ "types": [
3065+ {
3066+ "$type": "SimpleType",
3067+ "typeRef": {
3068+ "$ref": "#/rules@34"
3069+ }
30743070 },
3075- "isArray": false,
3076- "isRef": false
3077- },
3078- {
3079- "$type": "AtomType",
3080- "refType": {
3081- "$ref": "#/rules@32"
3071+ {
3072+ "$type": "SimpleType",
3073+ "typeRef": {
3074+ "$ref": "#/rules@29"
3075+ }
30823076 },
3083- "isArray": false,
3084- "isRef": false
3085- }
3086- ],
3087- "name": "ReferenceTarget"
3077+ {
3078+ "$type": "SimpleType",
3079+ "typeRef": {
3080+ "$ref": "#/rules@32"
3081+ }
3082+ }
3083+ ]
3084+ }
30883085 },
30893086 {
30903087 "$type": "Type",
3091- "typeAlternatives": [
3092- {
3093- "$type": "AtomType",
3094- "refType": {
3095- "$ref": "#/rules@28"
3096- },
3097- "isArray": false,
3098- "isRef": false
3099- },
3100- {
3101- "$type": "AtomType",
3102- "refType": {
3103- "$ref": "#/rules@31"
3088+ "name": "TypeDeclaration",
3089+ "type": {
3090+ "$type": "UnionType",
3091+ "types": [
3092+ {
3093+ "$type": "SimpleType",
3094+ "typeRef": {
3095+ "$ref": "#/rules@28"
3096+ }
31043097 },
3105- "isArray": false,
3106- "isRef": false
3107- }
3108- ],
3109- "name": "TypeDeclaration"
3098+ {
3099+ "$type": "SimpleType",
3100+ "typeRef": {
3101+ "$ref": "#/rules@31"
3102+ }
3103+ }
3104+ ]
3105+ }
31103106 }
31113107 ],
31123108 "definesHiddenTokens": false,
Original file line number Diff line number Diff line change 11/******************************************************************************
2- * This file was generated by langium-cli 1.0 .0.
2+ * This file was generated by langium-cli 1.1 .0.
33 * DO NOT EDIT MANUALLY!
44 ******************************************************************************/
55
Original file line number Diff line number Diff line change 1010 },
1111 {
1212 "name" : " keyword.control.zmodel" ,
13- "match" : " \\ b(Any|Asc|attribute| BigInt|Boolean|Bytes|ContextType|datasource| DateTime|Decimal|Desc|enum| FieldReference|Float|function|generator| Int|Json|model| Null|Object|plugin|sort| String|TransitiveFieldReference)\\ b"
13+ "match" : " \\ b(Any|Asc|BigInt|Boolean|Bytes|ContextType|DateTime|Decimal|Desc|FieldReference|Float|Int|Json|Null|Object|String|TransitiveFieldReference|attribute|datasource|enum|function|generator|model|plugin|sort )\\ b"
1414 },
1515 {
1616 "name" : " string.quoted.double.zmodel" ,
1717 "begin" : " \" " ,
18- "end" : " \" "
18+ "end" : " \" " ,
19+ "patterns" : [
20+ {
21+ "include" : " #string-character-escape"
22+ }
23+ ]
1924 },
2025 {
2126 "name" : " string.quoted.single.zmodel" ,
2227 "begin" : " '" ,
23- "end" : " '"
28+ "end" : " '" ,
29+ "patterns" : [
30+ {
31+ "include" : " #string-character-escape"
32+ }
33+ ]
2434 }
2535 ],
2636 "repository" : {
5262 "name" : " comment.line.zmodel"
5363 }
5464 ]
65+ },
66+ "string-character-escape" : {
67+ "name" : " constant.character.escape.zmodel" ,
68+ "match" : " \\\\ (x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\\ {[0-9A-Fa-f]+\\ }|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)"
5569 }
5670 }
57- }
71+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " @zenstackhq/next" ,
3- "version" : " 1.0.0-alpha.81 " ,
3+ "version" : " 1.0.0-alpha.85 " ,
44 "displayName" : " ZenStack Next.js integration" ,
55 "description" : " ZenStack Next.js integration" ,
66 "homepage" : " https://zenstack.dev" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @zenstackhq/openapi" ,
33 "displayName" : " ZenStack Plugin and Runtime for OpenAPI" ,
4- "version" : " 1.0.0-alpha.81 " ,
4+ "version" : " 1.0.0-alpha.85 " ,
55 "description" : " ZenStack plugin and runtime supporting OpenAPI" ,
66 "main" : " index.js" ,
77 "repository" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @zenstackhq/react" ,
33 "displayName" : " ZenStack plugin and runtime for ReactJS" ,
4- "version" : " 1.0.0-alpha.81 " ,
4+ "version" : " 1.0.0-alpha.85 " ,
55 "description" : " ZenStack plugin and runtime for ReactJS" ,
66 "main" : " index.js" ,
77 "repository" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @zenstackhq/trpc" ,
33 "displayName" : " ZenStack plugin for tRPC" ,
4- "version" : " 1.0.0-alpha.81 " ,
4+ "version" : " 1.0.0-alpha.85 " ,
55 "description" : " ZenStack plugin for tRPC" ,
66 "main" : " index.js" ,
77 "repository" : {
You can’t perform that action at this time.
0 commit comments