-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01c133f
commit f28fc8f
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
pkg/composableschemadsl/parser/tests/localimport_with_quotes_in_quotes.zed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// NOTE: this is mostly to validate parser behavior; this path | ||
// would be treated as invalid by the compiler/importer. | ||
import """path/to/'"user.zed""" | ||
|
||
definition resource { | ||
relation user: user | ||
relation persona: persona | ||
permission view = user + persona | ||
} |
75 changes: 75 additions & 0 deletions
75
pkg/composableschemadsl/parser/tests/localimport_with_quotes_in_quotes.zed.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
NodeTypeFile | ||
end-rune = 267 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 0 | ||
child-node => | ||
NodeTypeImport | ||
end-rune = 150 | ||
import-path = path/to/'"user.zed | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 120 | ||
child-node => | ||
NodeTypeComment | ||
comment-value = // NOTE: this is mostly to validate parser behavior; this path | ||
NodeTypeComment | ||
comment-value = // would be treated as invalid by the compiler/importer. | ||
NodeTypeDefinition | ||
definition-name = resource | ||
end-rune = 266 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 153 | ||
child-node => | ||
NodeTypeRelation | ||
end-rune = 197 | ||
input-source = local imports with quotes within quotes on import test | ||
relation-name = user | ||
start-rune = 179 | ||
allowed-types => | ||
NodeTypeTypeReference | ||
end-rune = 197 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 194 | ||
type-ref-type => | ||
NodeTypeSpecificTypeReference | ||
end-rune = 197 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 194 | ||
type-name = user | ||
NodeTypeRelation | ||
end-rune = 227 | ||
input-source = local imports with quotes within quotes on import test | ||
relation-name = persona | ||
start-rune = 203 | ||
allowed-types => | ||
NodeTypeTypeReference | ||
end-rune = 227 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 221 | ||
type-ref-type => | ||
NodeTypeSpecificTypeReference | ||
end-rune = 227 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 221 | ||
type-name = persona | ||
NodeTypePermission | ||
end-rune = 264 | ||
input-source = local imports with quotes within quotes on import test | ||
relation-name = view | ||
start-rune = 233 | ||
compute-expression => | ||
NodeTypeUnionExpression | ||
end-rune = 264 | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 251 | ||
left-expr => | ||
NodeTypeIdentifier | ||
end-rune = 254 | ||
identifier-value = user | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 251 | ||
right-expr => | ||
NodeTypeIdentifier | ||
end-rune = 264 | ||
identifier-value = persona | ||
input-source = local imports with quotes within quotes on import test | ||
start-rune = 258 |