From c1497a05898957ebc1deefb408a6781146c1424e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 30 Aug 2010 15:07:33 +1000 Subject: [PATCH] misc/fraise: syntax highlighting for Fraise.app (OS X) R=golang-dev, adg1, adg CC=golang-dev https://golang.org/cl/2075041 --- misc/fraise/go.plist | 93 ++++++++++++++++++++++++++++++++++++++++++ misc/fraise/readme.txt | 16 ++++++++ 2 files changed, 109 insertions(+) create mode 100644 misc/fraise/go.plist create mode 100644 misc/fraise/readme.txt diff --git a/misc/fraise/go.plist b/misc/fraise/go.plist new file mode 100644 index 0000000000..298361501b --- /dev/null +++ b/misc/fraise/go.plist @@ -0,0 +1,93 @@ + + + + + beginCommand + + endCommand + + beginInstruction + + endInstruction + + beginVariable + + endVariable + + firstString + " + secondString + ' + firstSingleLineComment + // + secondSingleLineComment + + beginFirstMultiLineComment + /* + endFirstMultiLineComment + */ + beginSecondMultiLineComment + + endSecondMultiLineComment + + functionDefinition + ^func\s*.*\(.*\)\s?\{ + removeFromFunction + + keywordsCaseSensitive + + recolourKeywordIfAlreadyColoured + + keywords + + 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 + bool + byte + chan + complex64 + complex128 + float + float32 + float64 + int + int8 + int16 + int32 + int64 + map + string + uint + uintptr + uint8 + uint16 + uint32 + uint64 + + autocompleteWords + + + diff --git a/misc/fraise/readme.txt b/misc/fraise/readme.txt new file mode 100644 index 0000000000..fb0f2c8c10 --- /dev/null +++ b/misc/fraise/readme.txt @@ -0,0 +1,16 @@ +##Instructions for enabling Go syntax highlighting in Fraise.app## +1. Move go.plist to /Applications/Fraise.app/Contents/Resources/Syntax\ Definitions/ +2. Open /Applications/Fraise.app/Contents/Resources/SyntaxDefinitions.plist and add + + + name + GoogleGo + file + go + extensions + go + + +before + +3. Restart Fraise and you're good to Go! \ No newline at end of file