Skip to content

Commit

Permalink
add support for reject if
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel committed Nov 29, 2024
1 parent 7ad39e2 commit 9ad4215
Show file tree
Hide file tree
Showing 5 changed files with 1,767 additions and 1,673 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = grammar({
field('body', $.rule_body)
),
check: $ => seq(
choice("check if", "check all"),
choice("check if", "check all", "reject if"),
$.rule_body,
repeat(seq(
"or",
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
{
"type": "STRING",
"value": "check all"
},
{
"type": "STRING",
"value": "reject if"
}
]
},
Expand Down
4 changes: 4 additions & 0 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@
"type": "previous",
"named": false
},
{
"type": "reject if",
"named": false
},
{
"type": "string",
"named": true
Expand Down
Loading

0 comments on commit 9ad4215

Please sign in to comment.