Skip to content

Commit

Permalink
match a well-formed heading as line 1, i.e., bracketed with matching …
Browse files Browse the repository at this point in the history
…numbers of = signs
  • Loading branch information
tbates committed Jul 13, 2012
1 parent fcdd7a5 commit 15c32d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/Mediawiki.tmLanguage
Expand Up @@ -44,7 +44,7 @@
<string>wiki</string>
</array>
<key>firstLineMatch</key>
<string>(^\s*\={1,}(.*)=\s*$)|&lt;\!-- ?mediawiki ?--\&gt;</string>
<string>^(={1,5})(?!=)[^=]*(?=\1\s*$)|&lt;\!-- ?mediawiki ?--\&gt;</string>
<key>keyEquivalent</key>
<string>^~M</string>
<key>name</key>
Expand Down

0 comments on commit 15c32d4

Please sign in to comment.