From 3b846430507b35c75aed255f7f6b4fd2ff921fa4 Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 5 Jul 2007 00:34:42 +0000 Subject: [PATCH] Tweaked the inline keyword regex a bit; "\"0:" now becomes a mana symbol if the " is a curly quote. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@483 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/game | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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