Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
c14216d7
Commit
c14216d7
authored
Jul 05, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked the inline keyword regex a bit; "\"0:" now becomes a mana symbol if the " is a curly quote.
parent
79b10780
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
data/magic.mse-game/game
data/magic.mse-game/game
+7
-2
No files found.
data/magic.mse-game/game
View file @
c14216d7
...
@@ -206,7 +206,7 @@ init script:
...
@@ -206,7 +206,7 @@ init script:
# context in which mana symbols are found
# context in which mana symbols are found
mana_context :=
mana_context :=
"(?ix) # case insensitive, ignore whitespace
"(?ix) # case insensitive, ignore whitespace
(^|[[:space:]\"(]) # start of a word
(^|[[:space:]\"(
“'
]) # start of a word
( <match>: # G: something
( <match>: # G: something
| <match>, # G, tap: something
| <match>, # G, tap: something
| <match>[ ]can[ ]be[ ]pay
| <match>[ ]can[ ]be[ ]pay
...
@@ -241,7 +241,12 @@ init script:
...
@@ -241,7 +241,12 @@ init script:
) +
) +
# step 2b : move action keywords' reminder text to the end of the line
# step 2b : move action keywords' reminder text to the end of the line
replace_rule(
replace_rule(
match: "(<atom-reminder-action>.*</atom-reminder-action></kw[^>]*>)([^\n(]+)",
match: "(<atom-reminder-action>(?:(?!<kw-).)*</atom-reminder-action></kw[^>]*>)(((?!<atom-reminder| ?<kw-)[^\n(])+)",
replace: "\\2\\1"
) +
# step 2c : remove duplicate reminder text
replace_rule(
match: "(<atom-reminder-[^>]*>[^)]+[)]</atom-reminder-[^>]*>)([^\n]+)\\1"
replace: "\\2\\1"
replace: "\\2\\1"
) +
) +
# step 3a : expand shortcut words ~ and CARDNAME
# step 3a : expand shortcut words ~ and CARDNAME
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment