Permalink
Browse files

Improve comment preferences and syntax. Patch from timothy_b.

git-svn-id: http://svn.textmate.org/trunk/Bundles/PmWiki.tmbundle@11721 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 8e69804 commit a1414b4fbbfc6fa170817702df47ee770baf4839 @infininight infininight committed Jul 27, 2009
Showing with 69 additions and 3 deletions.
  1. +15 −3 Preferences/Comments.tmPreferences
  2. +54 −0 Syntaxes/PmWiki.tmLanguage
@@ -14,13 +14,25 @@
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
- <string>&lt;!-- </string>
+ <string>%comment%</string>
</dict>
<dict>
<key>name</key>
- <string>TM_COMMENT_END</string>
+ <string>TM_COMMENT_START_2</string>
<key>value</key>
- <string> --&gt;</string>
+ <string>&gt;&gt;comment&lt;&lt;</string>
+ </dict>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_END_2</string>
+ <key>value</key>
+ <string>&gt;&gt;&lt;&lt;</string>
+ </dict>
+ <dict>
+ <key>name</key>
+ <string>TM_COMMENT_DISABLE_INDENT_2</string>
+ <key>value</key>
+ <string>yes</string>
</dict>
</array>
</dict>
View
@@ -13,6 +13,60 @@
<key>patterns</key>
<array>
<dict>
+ <key>begin</key>
+ <string>&gt;&gt;comment&lt;&lt;</string>
+ <key>captures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.pmwiki</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>&gt;&gt;&lt;&lt;</string>
+ <key>name</key>
+ <string>comment.block.pmwiki</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>&gt;&gt;</string>
+ <key>name</key>
+ <string>invalid.illegal.bad-comments-or-CDATA.pmwiki</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#embedded-code</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>%comment%</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.pmwiki</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>$\n?</string>
+ <key>name</key>
+ <string>comment.line.pmwiki</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>(?&gt;\\\s*\n)</string>
+ <key>name</key>
+ <string>punctuation.separator.continuation.pmwiki</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
<key>match</key>
<string>\\\\$</string>
<key>name</key>

0 comments on commit a1414b4

Please sign in to comment.