Skip to content

Commit 9961a71

Browse files
Added history and license files. Converted README to RDoc format.
1 parent b94c6ee commit 9961a71

File tree

4 files changed

+59
-27
lines changed

4 files changed

+59
-27
lines changed

History.rdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== 0.2.0 / 2009-11-15
2+
* New indentation increase/decrease rules:
3+
* Case statements decrease and increase (they pop their own line back by one indent without affecting either prior or following line).
4+
* Regular braces now increase/decrease indent automatically.
5+
* Regular braces now act as folding markers for multi-line 'const ( ... )' declarations.
6+
* Code-folding matches on curly braces are now more conservative-- before, they could match characters beyond newlines.
7+
* Built-in storage types are now matched properly.
8+
* Variable initialization is FINALLY matching correctly. Should work for every style & number of variables, even in-line in loop statements.
9+
* Matches exported variable names correctly (i.e. those beginning with an uppercase letter).
10+
* Dot-accessed variable match no longer consumes the preceding '.' character.
11+
12+
=== 0.1.0 / 2009-11-14
13+
* Initial Revision

LICENSE

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) 2009, Jim Dovey
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
- Neither the name of the copyright holder nor the names of the software's contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9+
10+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11+
12+
Portions based on Allan Odgaard's C bundle for TextMate.

README

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.rdoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
= Go
2+
(a TextMate language bundle)
3+
4+
=== Features
5+
The bundle here implements a language syntax, some snippets, and a 'Run' command for the Go language (http://golang.org).
6+
7+
At present there are still a couple of odd things to clear up. If anyone can suggest how to change the Run script to stop after any errors compiling or linking, and to not output empty blocks for those steps if all went well, I would be very grateful.
8+
9+
=== Snippets
10+
+imp+:: sets up an import statement with optional alternative name.
11+
+func+:: creates a function declaration with tab-stops for name, parameters, and return types.
12+
+tfunc+:: creates a function as 'func' but adds the variable declaration needed to attach the function to a type (like a class method).
13+
+type+:: initializes a type declaration for you, with name and variable type as tab-stops.
14+
+struct+:: lays out a structure declaration (use 'type' first to name your structure) with a tab stop on a sample member variable.
15+
+main+:: creates a plain 'main()' function for you.
16+
+for+:: lays out a standard for loop, with tab stops for count, variable name, and loop-end action.
17+
+if+:: lays out a plain if statement, with curly braces, tab stop on the condition. This is here because an if in Go MUST use braces it seems, and this is as good a way as any to force myself (and others) to remember that.
18+
19+
=== Compiling and Running
20+
The Run() function will run 6g on your source file, then run 6l on the new <name>.6 file, then run the resulting 6.out file. All files will be created in the same folder as the source file. It doesn't do anything about building packages yet-- that's something I'll add later on. In the meantime, to build a package archive (or append new .6 files to an existing package archive) you would use:
21+
22+
> 6g myfile.go
23+
> gopack rg <archive>.a myfile.6 ...
24+
25+
<archive> is the name for your archive file, and you can specify multiple .6 files to be appended to that archive. So for instance:
26+
27+
> 6g my_io.go my_file.go my_echo.go my_cat.go
28+
> gopack rg my_stuff.a my_io.6 my_file.6 my_echo.6 my_cat.6
29+
30+
=== Contact Information
31+
32+
You can contact me through github, or you can ping me on Twitter as 'alanQuatermain'.
33+
34+
Happy coding :)

0 commit comments

Comments
 (0)