Skip to content

Commit

Permalink
New macro to add lines in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbrando committed Apr 5, 2012
1 parent 06e3f05 commit e3205b9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 20 deletions.
62 changes: 43 additions & 19 deletions Macros/Continue comment on the next line.tmMacro
Expand Up @@ -8,10 +8,6 @@
<key>command</key>
<string>insertNewline:</string>
</dict>
<dict>
<key>command</key>
<string>moveUp:</string>
</dict>
<dict>
<key>command</key>
<string>moveToBeginningOfLine:</string>
Expand All @@ -20,11 +16,11 @@
<key>argument</key>
<dict>
<key>action</key>
<string>findNext</string>
<string>count</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findString</key>
<string>\/\*|\s\*</string>
<string>^[ \t]+</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
Expand All @@ -38,12 +34,25 @@
<string>findWithOptions:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>count</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findString</key>
<string>^[ \t]+</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>selection</string>
<key>wrapAround</key>
<false/>
</dict>
<key>command</key>
<string>moveLeft:</string>
</dict>
<dict>
<key>command</key>
<string>moveDown:</string>
<string>findWithOptions:</string>
</dict>
<dict>
<key>argument</key>
Expand All @@ -53,7 +62,7 @@
<key>findInProjectIgnoreCase</key>
<false/>
<key>findString</key>
<string>\s*\*\/</string>
<string>^[ \t]+</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
Expand All @@ -68,11 +77,11 @@
</dict>
<dict>
<key>command</key>
<string>shiftLeft:</string>
<string>deleteBackward:</string>
</dict>
<dict>
<key>command</key>
<string>moveLeft:</string>
<string>insertTab:</string>
</dict>
<dict>
<key>argument</key>
Expand All @@ -93,14 +102,29 @@
<string>insertText:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>findNext</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findString</key>
<string>\s*\*\/</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>selection</string>
<key>wrapAround</key>
<false/>
</dict>
<key>command</key>
<string>moveLeft:</string>
<string>findWithOptions:</string>
</dict>
<dict>
<key>argument</key>
<string> </string>
<key>command</key>
<string>insertText:</string>
<string>moveLeft:</string>
</dict>
</array>
<key>keyEquivalent</key>
Expand All @@ -110,6 +134,6 @@
<key>scope</key>
<string>source.c, source.c++, source.objc, source.objc++</string>
<key>uuid</key>
<string>2D634EA6-0B42-4D0E-B2BE-5575E1A3A71E</string>
<string>9A76E039-F886-4C6C-8063-B2F7A6173513</string>
</dict>
</plist>
Expand Down
1 change: 0 additions & 1 deletion info.plist
Expand Up @@ -153,7 +153,6 @@
<string>E8D80809-0CDE-4E57-AC2A-8C22DFF353EE</string>
<string>0DABAE22-81C5-4ADF-8BCC-9B343A51CCB9</string>
<string>034C3F18-097D-4B2C-8F20-C1CA3E9573E9</string>
<string>2D634EA6-0B42-4D0E-B2BE-5575E1A3A71E</string>
<string>74AF5E38-994C-4641-96F0-EB98A2183F60</string>
<string>E8C3B596-9045-11D9-AB38-000D93589AF6</string>
<string>B10CBD5D-7298-11D9-813A-000D93589AF6</string>
Expand Down

0 comments on commit e3205b9

Please sign in to comment.