mirror of
https://github.com/golang/go
synced 2024-09-04 23:44:16 +00:00
misc/fraise: syntax highlighting for Fraise.app (OS X)
R=golang-dev, adg1, adg CC=golang-dev https://golang.org/cl/2075041
This commit is contained in:
parent
cc9d2e2dfe
commit
c1497a0589
93
misc/fraise/go.plist
Normal file
93
misc/fraise/go.plist
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?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>beginCommand</key>
|
||||
<string></string>
|
||||
<key>endCommand</key>
|
||||
<string></string>
|
||||
<key>beginInstruction</key>
|
||||
<string></string>
|
||||
<key>endInstruction</key>
|
||||
<string></string>
|
||||
<key>beginVariable</key>
|
||||
<string></string>
|
||||
<key>endVariable</key>
|
||||
<string></string>
|
||||
<key>firstString</key>
|
||||
<string>"</string>
|
||||
<key>secondString</key>
|
||||
<string>'</string>
|
||||
<key>firstSingleLineComment</key>
|
||||
<string>//</string>
|
||||
<key>secondSingleLineComment</key>
|
||||
<string></string>
|
||||
<key>beginFirstMultiLineComment</key>
|
||||
<string>/*</string>
|
||||
<key>endFirstMultiLineComment</key>
|
||||
<string>*/</string>
|
||||
<key>beginSecondMultiLineComment</key>
|
||||
<string></string>
|
||||
<key>endSecondMultiLineComment</key>
|
||||
<string></string>
|
||||
<key>functionDefinition</key>
|
||||
<string>^func\s*.*\(.*\)\s?\{</string>
|
||||
<key>removeFromFunction</key>
|
||||
<string></string>
|
||||
<key>keywordsCaseSensitive</key>
|
||||
<true/>
|
||||
<key>recolourKeywordIfAlreadyColoured</key>
|
||||
<true/>
|
||||
<key>keywords</key>
|
||||
<array>
|
||||
<string>break</string>
|
||||
<string>case</string>
|
||||
<string>chan</string>
|
||||
<string>const</string>
|
||||
<string>continue</string>
|
||||
<string>default</string>
|
||||
<string>defer</string>
|
||||
<string>else</string>
|
||||
<string>fallthrough</string>
|
||||
<string>for</string>
|
||||
<string>func</string>
|
||||
<string>go</string>
|
||||
<string>goto</string>
|
||||
<string>if</string>
|
||||
<string>import</string>
|
||||
<string>interface</string>
|
||||
<string>map</string>
|
||||
<string>package</string>
|
||||
<string>range</string>
|
||||
<string>return</string>
|
||||
<string>select</string>
|
||||
<string>struct</string>
|
||||
<string>switch</string>
|
||||
<string>type</string>
|
||||
<string>var</string>
|
||||
<string>bool</string>
|
||||
<string>byte</string>
|
||||
<string>chan</string>
|
||||
<string>complex64</string>
|
||||
<string>complex128</string>
|
||||
<string>float</string>
|
||||
<string>float32</string>
|
||||
<string>float64</string>
|
||||
<string>int</string>
|
||||
<string>int8</string>
|
||||
<string>int16</string>
|
||||
<string>int32</string>
|
||||
<string>int64</string>
|
||||
<string>map</string>
|
||||
<string>string</string>
|
||||
<string>uint</string>
|
||||
<string>uintptr</string>
|
||||
<string>uint8</string>
|
||||
<string>uint16</string>
|
||||
<string>uint32</string>
|
||||
<string>uint64</string>
|
||||
</array>
|
||||
<key>autocompleteWords</key>
|
||||
<array/>
|
||||
</dict>
|
||||
</plist>
|
16
misc/fraise/readme.txt
Normal file
16
misc/fraise/readme.txt
Normal file
|
@ -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
|
||||
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>GoogleGo</string>
|
||||
<key>file</key>
|
||||
<string>go</string>
|
||||
<key>extensions</key>
|
||||
<string>go</string>
|
||||
</dict>
|
||||
|
||||
before </array>
|
||||
|
||||
3. Restart Fraise and you're good to Go!
|
Loading…
Reference in a new issue