Skip to content

Commit

Permalink
fix: Inject CEL into YAML source (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery authored Nov 3, 2023
1 parent 78fe5df commit f30e3bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"path": "./syntaxes/cel.injection.json",
"scopeName": "cel-openfga.injection",
"injectTo": [
"source.openfga"
"source.openfga",
"source.yaml-store-openfga"
],
"embeddedLanguages": {
"meta.embedded.inline.cel": "cel"
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/cel.injection.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"scopeName": "cel-openfga.injection",
"injectionSelector": "L:source.openfga",
"injectionSelector": ["L:source.openfga", "L:source.yaml-store-openfga"],
"patterns": [
{
"include": "#condition"
}
],
"repository": {
"condition": {
"begin": "(^condition)\\s([_a-zA-Z][_a-zA-Z0-9]+)\\((.*)\\)\\s{",
"begin": "(condition)\\s([_a-zA-Z][_a-zA-Z0-9]+)\\((.*)\\)\\s*{",
"beginCaptures": {
"1": {
"name": "keyword.condition.openfga"
Expand Down

0 comments on commit f30e3bc

Please sign in to comment.