ajstarks
unread,Nov 11, 2009, 10:54:23 PM11/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Here is the Codeless language Module used by BBEdit and TextWrangler
that will provide syntax coloring and function navigation. Go
language experts will surely extend from the basics supported here.
Install as Go.plist in:
~/Library/Application Support/TextWrangler/Language Modules
or
~/Library/Application Support/BBEdit/Language Modules
----- cut here ----
{
BBEditDocumentType = "CodelessLanguageModule";
BBLMColorsSyntax = YES;
BBLMIsCaseSensitive = YES;
BBLMKeywordList = (
break,
case,
chan,
const,
continue,
default,
defer,
else,
fallthrough,
for,
func,
go,
goto,
if,
import,
interface,
map,
package,
range,
return,
select,
struct,
switch,
type,
var,
);
BBLMLanguageCode = go;
"BBLMLanguageDisplayName" = "Go";
BBLMScansFunctions = YES;
BBLMSuffixMap = (
{
BBLMLanguageSuffix = ".go";
},
);
"Language Features" = {
"Close Block Comments" = "*/";
"Close Parameter Lists" = ")";
"Close Statement Blocks" = "}";
"Close Strings 1" = "`";
"Close Strings 2" = "\"";
"End-of-line Ends Strings 1" = YES;
"End-of-line Ends Strings 2" = YES;
"Escape Char in Strings 1" = "\\";
"Escape Char in Strings 2" = "\\";
"Identifier and Keyword Characters" =
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";
"Open Block Comments" = "/*";
"Open Line Comments" = "//";
"Open Parameter Lists" = "(";
"Open Statement Blocks" = "{";
"Open Strings 1" = "`";
"Open Strings 2" = "\"";
"Prefix for Functions" = "func";
"Prefix for Procedures" = func;
"Terminator for Prototypes 1" = ";";
"Terminator for Prototypes 2" = "";
};
}