Skip to content

Commit

Permalink
better table handling
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/Mediawiki.tmbundle@12030 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Timothy Bates committed May 21, 2011
1 parent 8a5491d commit 69299ea
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions Syntaxes/Mediawiki.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -733,17 +733,17 @@
<dict>
<key>begin</key>
<string>(?x:
({{) # opening brackets
([Rr]edirect) # redirect?
[ ]* # spaces
(\|) # pipe
({{) # opening brackets
([Rr]edirect|subst:.*) # redirect?
[ ]* # spaces
(\|) # pipe
)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.fix_this_later.brackets.mediawiki</string>
<string>meta.tag.inline.redirect.mediawiki</string>
</dict>
<key>2</key>
<dict>
Expand Down Expand Up @@ -779,6 +779,11 @@
<key>name</key>
<string>constant.other.pipe.mediawiki</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>meta.tag.inline.redirect.mediawiki</string>
</dict>
</dict>
<key>name</key>
<string>meta.link.wiki.redirect.mediawiki</string>
Expand Down Expand Up @@ -1273,11 +1278,7 @@
</dict>
</dict>
<key>comment</key>
<string>
we are going to have to add the styling capabilities
to this section eventually. It is complicated,
though, so I am putting it off.
</string>
<string>TODO: add styling capabilities</string>
<key>end</key>
<string>(^\|})</string>
<key>endCaptures</key>
Expand Down Expand Up @@ -1314,12 +1315,16 @@
<dict>
<key>begin</key>
<string>^\|-</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>meta.tag.inline.table.mediawiki</string>
</dict>
</dict>
<key>comment</key>
<string>
hopefully we can allow selection of a whole
table row, and possibly later allow things
like moving a whole row up/down, etc.
</string>
<string>TODO: allow selection of rows; move row up/down, etc.</string>
<key>end</key>
<string>^(?=\|-|^\|})</string>
<key>name</key>
Expand Down Expand Up @@ -1347,7 +1352,7 @@
</dict>
</dict>
<key>match</key>
<string>(^\||\|\|)([^\|]*)</string>
<string>(^\||\|\|) *([^\|]*) *</string>
<key>name</key>
<string>meta.table.cell.mediawiki</string>
</dict>
Expand Down

0 comments on commit 69299ea

Please sign in to comment.