Browse files

Removed everything to do with comment manipulation

Some of this is broken in TM2 and maybe not worth fixing, and probably it's better to have comments handled generally by Source and so on.
  • Loading branch information...
1 parent e57cfe2 commit 600275d2ca8fd49e7a54c85e35d6113036f78ea4 @DGrady DGrady committed with infininight Sep 18, 2012
View
33 Commands/Insert header comment.tmCommand
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-
-width = 80
-
-topbottom = "%%".ljust(width,"=") + "\n"
-
-print topbottom
-print "%%${1/^" + "(.)?"*(width-2) + ".*$/"
-1.upto(width-2) { |i| print "(?#{i}:: )" }
-print "/}${1:Header}" + "\n"
-print topbottom
-</string>
- <key>input</key>
- <string>none</string>
- <key>name</key>
- <string>Insert header comment</string>
- <key>output</key>
- <string>insertAsSnippet</string>
- <key>scope</key>
- <string>source.matlab, source.octave</string>
- <key>tabTrigger</key>
- <string>head</string>
- <key>uuid</key>
- <string>AD7201FB-23AD-4105-B8E3-5AAD29419FA6</string>
-</dict>
-</plist>
View
31 Commands/Insert section division.tmCommand
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-
-width = 80
-buffer = 5
-
-print "%%${1/^" + "(.)?"*(width) + ".*$/"
-1.upto(width-2-buffer) { |i| print "(?#{i}::=)" }
-print "/}".ljust(buffer+2)
-print "${1:Header}" + "\n$0"
-</string>
- <key>input</key>
- <string>none</string>
- <key>name</key>
- <string>Insert section division</string>
- <key>output</key>
- <string>insertAsSnippet</string>
- <key>scope</key>
- <string>source.matlab, source.octave</string>
- <key>tabTrigger</key>
- <string>div</string>
- <key>uuid</key>
- <string>D21BACE2-24A1-43EF-854C-460F5A55694E</string>
-</dict>
-</plist>
View
36 Commands/Replace comments with default.tmCommand
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-
-input = STDIN.readlines
-
-input.each do |str|
- puts case str
- when /\A(.*?)#+\s*(.*)$/: $1 + ENV['TM_COMMENT_START'] + $2
- when /\A(.*?)%+\s*(.*)$/: $1 + ENV['TM_COMMENT_START'] + $2
- # Default case
- else str
- end
-end
-</string>
- <key>fallbackInput</key>
- <string>line</string>
- <key>input</key>
- <string>document</string>
- <key>keyEquivalent</key>
- <string>^@C</string>
- <key>name</key>
- <string>Replace comments with default</string>
- <key>output</key>
- <string>replaceDocument</string>
- <key>scope</key>
- <string>source.matlab, source.octave</string>
- <key>uuid</key>
- <string>321567FE-2E57-4D5C-BEFB-98FE869FF4D7</string>
-</dict>
-</plist>
View
32 Commands/Toggle comment style.tmCommand
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-
-print case str = STDIN.read
- when /\A(.*?)\%(.*)$/: $1 + '#' + $2
- when /\A(.*?)#(.*)$/: $1 + '%' + $2
- # Default case
- else str
-end
-</string>
- <key>fallbackInput</key>
- <string>line</string>
- <key>input</key>
- <string>selection</string>
- <key>keyEquivalent</key>
- <string>@C</string>
- <key>name</key>
- <string>Toggle comment style</string>
- <key>output</key>
- <string>replaceSelectedText</string>
- <key>scope</key>
- <string>source.matlab, source.octave</string>
- <key>uuid</key>
- <string>BEAE3101-B710-4BDE-A178-247F9FB6C018</string>
-</dict>
-</plist>
View
15 Snippets/comment divide.tmSnippet
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>content</key>
- <string>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-</string>
- <key>name</key>
- <string>Comment Divide</string>
- <key>scope</key>
- <string>source.matlab, source.octave</string>
- <key>uuid</key>
- <string>0844D21C-383B-4106-8474-8F79589731C6</string>
-</dict>
-</plist>
View
15 info.plist
@@ -24,7 +24,6 @@
<string>064E306B-FF23-432B-952F-55AC3BEF029E</string>
<string>E888D2B7-977A-4A68-A966-6BE2762EB9C3</string>
<string>------------------------------------</string>
- <string>78BBA099-C976-415C-AA88-FE596173D38D</string>
<string>8EDB89D6-79E4-4A26-8E14-ED60254782FB</string>
<string>B5959BD1-48FB-495C-A3C3-AE04B05774C7</string>
<string>C5A70337-F3D2-4841-8A74-1B2CA2296B14</string>
@@ -61,20 +60,6 @@
<key>name</key>
<string>Functions</string>
</dict>
- <key>78BBA099-C976-415C-AA88-FE596173D38D</key>
- <dict>
- <key>items</key>
- <array>
- <string>0844D21C-383B-4106-8474-8F79589731C6</string>
- <string>D21BACE2-24A1-43EF-854C-460F5A55694E</string>
- <string>AD7201FB-23AD-4105-B8E3-5AAD29419FA6</string>
- <string>------------------------------------</string>
- <string>321567FE-2E57-4D5C-BEFB-98FE869FF4D7</string>
- <string>BEAE3101-B710-4BDE-A178-247F9FB6C018</string>
- </array>
- <key>name</key>
- <string>Comments</string>
- </dict>
<key>8550747A-AD69-421F-A229-CD3DC71E2CE8</key>
<dict>
<key>items</key>

0 comments on commit 600275d

Please sign in to comment.