the way expand_keyword works has changed, templates updated.

parameter un-bolding now works for vs templates

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1359 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-15 22:15:59 +00:00
parent f24806a4de
commit 4421b24761
5 changed files with 31 additions and 13 deletions
+7 -5
View File
@@ -45,13 +45,15 @@
default_expand: {
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
},
combine: {
combine: {
# un-bold parameters
keyword := tag_contents@(keyword, tag:"<param",
contents: {"</b-auto>{input}<b-auto>"})
keyword := tag_contents(keyword, tag:"<param",
contents: {"</b-auto>{input}<b-auto>"})
reminder := process_english_hints(reminder)
# the combined result
"<b-auto>{keyword}</b-auto><atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
) +
"<b-auto>{keyword}</b-auto>"
+ if expand then "<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>"
}) +
# step 3 : Expand shortcut words ~ and CARDNAME
replace_rule(
match: "~|~THIS~|CARDNAME",