diff --git a/data/magic.mse-game/game b/data/magic.mse-game/game index e17487e7..56a8af6a 100644 --- a/data/magic.mse-game/game +++ b/data/magic.mse-game/game @@ -206,7 +206,7 @@ init script: # context in which mana symbols are found mana_context := "(?ix) # case insensitive, ignore whitespace - (^|[[:space:]\"(]) # start of a word + (^|[[:space:]\"(“']) # start of a word ( : # G: something | , # G, tap: something | [ ]can[ ]be[ ]pay @@ -241,7 +241,12 @@ init script: ) + # step 2b : move action keywords' reminder text to the end of the line replace_rule( - match: "(.*]*>)([^\n(]+)", + match: "((?:(?!]*>)(((?!]*>[^)]+[)]]*>)([^\n]+)\\1" replace: "\\2\\1" ) + # step 3a : expand shortcut words ~ and CARDNAME