-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Enable the comment in model config files.
- Loading branch information
1 parent
8a77971
commit 016a57c
Showing
7 changed files
with
66 additions
and
1 deletion.
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
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
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
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,13 @@ | ||
[request_definition] | ||
r = sub, obj, act ### The following text is a test for comment in model config. | ||
|
||
[policy_definition] | ||
p = sub, obj, act #This is an inline comment, splited by a comma | ||
|
||
[policy_effect] | ||
# This is a comment, splited by a comma | ||
e = some(where (p.eft == allow)) #This is an inline comment, splited by a comma | ||
|
||
#This is a comment, splited by a comma | ||
[matchers] | ||
m = r.sub == p.sub && r.obj == p.obj && r.act == p.act # Comment, another comment |
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,16 @@ | ||
[request_definition] | ||
r = sub, obj, act #This is an inline comment, splited by a comma | ||
|
||
[policy_definition] | ||
p = sub, obj, act #This is an inline comment, splited by a comma | ||
|
||
[role_definition] | ||
# This is a comment, splited by a comma | ||
g = _, _ # This is an inline comment, splited by a comma | ||
|
||
# This is a comment, splited by a comma | ||
[policy_effect] | ||
e = some(where (p.eft == allow)) #This is an inline comment, splited by a comma | ||
|
||
[matchers] | ||
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act # This is an inline comment, splited by a comma |
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
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