Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit a1414b4fbbfc6fa170817702df47ee770baf4839 1 parent 8e69804
Michael Sheets infininight authored
18 Preferences/Comments.tmPreferences
@@ -14,13 +14,25 @@
14 14 <key>name</key>
15 15 <string>TM_COMMENT_START</string>
16 16 <key>value</key>
17   - <string>&lt;!-- </string>
  17 + <string>%comment%</string>
18 18 </dict>
19 19 <dict>
20 20 <key>name</key>
21   - <string>TM_COMMENT_END</string>
  21 + <string>TM_COMMENT_START_2</string>
22 22 <key>value</key>
23   - <string> --&gt;</string>
  23 + <string>&gt;&gt;comment&lt;&lt;</string>
  24 + </dict>
  25 + <dict>
  26 + <key>name</key>
  27 + <string>TM_COMMENT_END_2</string>
  28 + <key>value</key>
  29 + <string>&gt;&gt;&lt;&lt;</string>
  30 + </dict>
  31 + <dict>
  32 + <key>name</key>
  33 + <string>TM_COMMENT_DISABLE_INDENT_2</string>
  34 + <key>value</key>
  35 + <string>yes</string>
24 36 </dict>
25 37 </array>
26 38 </dict>
54 Syntaxes/PmWiki.tmLanguage
@@ -13,6 +13,60 @@
13 13 <key>patterns</key>
14 14 <array>
15 15 <dict>
  16 + <key>begin</key>
  17 + <string>&gt;&gt;comment&lt;&lt;</string>
  18 + <key>captures</key>
  19 + <dict>
  20 + <key>0</key>
  21 + <dict>
  22 + <key>name</key>
  23 + <string>punctuation.definition.comment.pmwiki</string>
  24 + </dict>
  25 + </dict>
  26 + <key>end</key>
  27 + <string>&gt;&gt;&lt;&lt;</string>
  28 + <key>name</key>
  29 + <string>comment.block.pmwiki</string>
  30 + <key>patterns</key>
  31 + <array>
  32 + <dict>
  33 + <key>match</key>
  34 + <string>&gt;&gt;</string>
  35 + <key>name</key>
  36 + <string>invalid.illegal.bad-comments-or-CDATA.pmwiki</string>
  37 + </dict>
  38 + <dict>
  39 + <key>include</key>
  40 + <string>#embedded-code</string>
  41 + </dict>
  42 + </array>
  43 + </dict>
  44 + <dict>
  45 + <key>begin</key>
  46 + <string>%comment%</string>
  47 + <key>beginCaptures</key>
  48 + <dict>
  49 + <key>0</key>
  50 + <dict>
  51 + <key>name</key>
  52 + <string>punctuation.definition.comment.pmwiki</string>
  53 + </dict>
  54 + </dict>
  55 + <key>end</key>
  56 + <string>$\n?</string>
  57 + <key>name</key>
  58 + <string>comment.line.pmwiki</string>
  59 + <key>patterns</key>
  60 + <array>
  61 + <dict>
  62 + <key>match</key>
  63 + <string>(?&gt;\\\s*\n)</string>
  64 + <key>name</key>
  65 + <string>punctuation.separator.continuation.pmwiki</string>
  66 + </dict>
  67 + </array>
  68 + </dict>
  69 + <dict>
16 70 <key>match</key>
17 71 <string>\\\\$</string>
18 72 <key>name</key>

0 comments on commit a1414b4

Please sign in to comment.
Something went wrong with that request. Please try again.