Skip to content

Commit

Permalink
{ }s are sometimes used when there are multiple levels of "parens", s…
Browse files Browse the repository at this point in the history
…o they shouldn't always be a "set".

I added code that looks for one of ',∈∉|' inside the braces.
  • Loading branch information
NSoiffer committed Oct 22, 2024
1 parent 3295c7f commit 80c8a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rules/Intent/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@
-
name: set
tag: mrow
match: "IsBracketed(., '{', '}')"
# sets have { }s and should have at least one of ",∈∉|" (vertical bar is "such that")
match: "IsBracketed(., '{', '}') and . != translate(., ',∈∉|', '')"
replace:
- intent:
name: "set"
Expand Down

0 comments on commit 80c8a7a

Please sign in to comment.