Skip to content

Commit

Permalink
コードを簡略化する
Browse files Browse the repository at this point in the history
Co-authored-by: spinylobster <[email protected]>
  • Loading branch information
Seasawher and spinylobster committed Nov 16, 2024
1 parent 0caf409 commit e08be94
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ example : True := by

/-- `hoge` タクティク用のルールを追加する -/
macro attrKind:attrKind "add_hoge_rules" e:Aesop.rule_expr : command =>
match attrKind with
| `(attrKind| local) => `(command| local add_aesop_rules (rule_sets := [HogeRules]) $e)
| `(attrKind| scoped) => `(command| scoped add_aesop_rules (rule_sets := [HogeRules]) $e)
| _ => `(command| add_aesop_rules (rule_sets := [HogeRules]) $e)
`(command| $attrKind:attrKind add_aesop_rules (rule_sets := [HogeRules]) $e)

namespace Command --#

Expand Down

0 comments on commit e08be94

Please sign in to comment.