Skip to content

Commit

Permalink
fix: add block chomping for yaml store model field (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery committed Apr 26, 2024
1 parent 07e65cc commit db4cdb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syntaxes/openfga.injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"repository": {
"openfga-block-scalar": {
"begin": "(?i)(^model)(:)\\s+(\\|)\\s*\\n",
"begin": "(?i)(^model)(:)\\s+(\\|)([-+])?\\s*\\n",
"beginCaptures": {
"1": {
"name": "entity.name.tag.yaml"
Expand All @@ -18,6 +18,9 @@
},
"3": {
"name": "keyword.control.flow.block-scalar.literal.yaml"
},
"4": {
"name": "storage.modifier.chomping-indicator.yaml"
}
},
"end": "^(?=\\S)|(?!\\G)",
Expand Down

0 comments on commit db4cdb7

Please sign in to comment.