]> git.lizzy.rs Git - micro.git/commitdiff
Add better matchbrace
authorZachary Yedidia <zyedidia@gmail.com>
Sun, 4 Aug 2019 22:11:09 +0000 (15:11 -0700)
committerZachary Yedidia <zyedidia@gmail.com>
Wed, 25 Dec 2019 22:05:11 +0000 (17:05 -0500)
internal/action/actions.go
internal/buffer/buffer.go
internal/config/runtime.go
internal/config/settings.go
internal/display/bufwindow.go
runtime/help/options.md

index 8b6c76d20ee50177c38776f655a1a01233441a2d..f8b02b66f7f34575587183ba2da3825a55896d55 100644 (file)
@@ -933,9 +933,14 @@ func (h *BufPane) paste(clip string) {
 func (h *BufPane) JumpToMatchingBrace() bool {
        for _, bp := range buffer.BracePairs {
                r := h.Cursor.RuneUnder(h.Cursor.X)
-               if r == bp[0] || r == bp[1] {
-                       matchingBrace := h.Buf.FindMatchingBrace(bp, h.Cursor.Loc)
-                       h.Cursor.GotoLoc(matchingBrace)
+               rl := h.Cursor.RuneUnder(h.Cursor.X - 1)
+               if r == bp[0] || r == bp[1] || rl == bp[0] || rl == bp[1] {
+                       matchingBrace, left := h.Buf.FindMatchingBrace(bp, h.Cursor.Loc)
+                       if left {
+                               h.Cursor.GotoLoc(matchingBrace)
+                       } else {
+                               h.Cursor.GotoLoc(matchingBrace.Move(1, h.Buf))
+                       }
                }
        }
 
index 5767445f006d50cd19faa17c29cbc45780d9e55f..7fe65d2442acd662550f1905772a7b0ce402b4c8 100644 (file)
@@ -651,16 +651,30 @@ var BracePairs = [][2]rune{
 // It is given a brace type containing the open and closing character, (for example
 // '{' and '}') as well as the location to match from
 // TODO: maybe can be more efficient with utf8 package
-func (b *Buffer) FindMatchingBrace(braceType [2]rune, start Loc) Loc {
+// returns the location of the matching brace
+// if the boolean returned is true then the original matching brace is one character left
+// of the starting location
+func (b *Buffer) FindMatchingBrace(braceType [2]rune, start Loc) (Loc, bool) {
        curLine := []rune(string(b.LineBytes(start.Y)))
-       startChar := curLine[start.X]
+       startChar := ' '
+       if start.X >= 0 && start.X < len(curLine) {
+               startChar = curLine[start.X]
+       }
+       leftChar := ' '
+       if start.X-1 >= 0 && start.X-1 < len(curLine) {
+               leftChar = curLine[start.X-1]
+       }
        var i int
-       if startChar == braceType[0] {
+       if startChar == braceType[0] || leftChar == braceType[0] {
                for y := start.Y; y < b.LinesNum(); y++ {
                        l := []rune(string(b.LineBytes(y)))
                        xInit := 0
                        if y == start.Y {
-                               xInit = start.X
+                               if startChar == braceType[0] {
+                                       xInit = start.X
+                               } else {
+                                       xInit = start.X - 1
+                               }
                        }
                        for x := xInit; x < len(l); x++ {
                                r := l[x]
@@ -669,24 +683,34 @@ func (b *Buffer) FindMatchingBrace(braceType [2]rune, start Loc) Loc {
                                } else if r == braceType[1] {
                                        i--
                                        if i == 0 {
-                                               return Loc{x, y}
+                                               if startChar == braceType[0] {
+                                                       return Loc{x, y}, false
+                                               }
+                                               return Loc{x, y}, true
                                        }
                                }
                        }
                }
-       } else if startChar == braceType[1] {
+       } else if startChar == braceType[1] || leftChar == braceType[1] {
                for y := start.Y; y >= 0; y-- {
                        l := []rune(string(b.lines[y].data))
                        xInit := len(l) - 1
                        if y == start.Y {
-                               xInit = start.X
+                               if leftChar == braceType[1] {
+                                       xInit = start.X - 1
+                               } else {
+                                       xInit = start.X
+                               }
                        }
                        for x := xInit; x >= 0; x-- {
                                r := l[x]
                                if r == braceType[0] {
                                        i--
                                        if i == 0 {
-                                               return Loc{x, y}
+                                               if leftChar == braceType[1] {
+                                                       return Loc{x, y}, true
+                                               }
+                                               return Loc{x, y}, false
                                        }
                                } else if r == braceType[1] {
                                        i++
@@ -694,7 +718,7 @@ func (b *Buffer) FindMatchingBrace(braceType [2]rune, start Loc) Loc {
                        }
                }
        }
-       return start
+       return start, true
 }
 
 // Retab changes all tabs to spaces or vice versa
index f34df58104f8b2100a3e3012496be8af32271227..7690ddc378fa02d9502fc54be59329e80dbe85ec 100644 (file)
@@ -972,7 +972,7 @@ func runtimeHelpKeybindingsMd() (*asset, error) {
        return a, nil
 }
 
-var _runtimeHelpOptionsMd = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x5a\x5f\x8f\xe4\xb6\x91\x7f\x1e\x7d\x8a\xc2\x64\x81\x99\x36\x7a\x7a\x8d\xc4\x0f\x41\xbf\x18\x6b\xef\xdd\xda\xc8\xd9\x7b\x88\x37\x77\x0e\x92\x20\xa2\xa4\x52\x8b\x19\x8a\xd4\x91\x54\xf7\x6a\x0d\xdf\x67\x3f\x54\x15\x29\xa9\x7b\x7b\x66\x72\xc0\x9d\x1f\xbc\xd3\x12\x59\xac\xbf\xbf\xfa\x43\xfd\x06\xde\x0f\x51\x3b\x1b\x8a\xe2\x07\x5d\x7b\x07\x21\x3a\x8f\x01\x94\x31\xe0\x5a\x88\x1d\xc2\x18\xd0\x43\xed\x6c\xab\x0f\xa3\x57\xb4\x18\xb4\x05\x1d\xc3\xc5\xc3\x46\x7b\xac\xa3\xf3\xd3\x2e\xd3\x1a\x03\x06\x26\x51\xbe\xfa\xf9\xed\xbb\xbf\x7f\xfb\xfe\xc7\x7f\xfd\xfe\xdd\xdf\xbf\x7b\xff\xc3\xbf\xbc\xee\x69\x41\x09\x4a\xde\x3f\x45\x08\xde\x04\x18\xd0\x17\xb4\xe6\xe7\xb7\xef\x20\x0c\x58\x6f\x41\xb7\x9f\x13\x2c\x41\x07\xb0\x2e\x42\xc0\xb8\x85\xf2\xbf\x5f\xef\x84\x66\x3e\x48\x07\xe2\xa6\xa1\x03\x8b\xe5\xc4\x33\x9e\xbf\x43\x8f\xa0\x3c\x32\x47\x4e\xb4\x02\xb1\x53\x11\x26\x37\x42\xad\x2c\xd1\xde\x17\xc5\x17\x50\xaa\x31\x3a\x6d\x1b\xb4\xb1\xdc\xc3\xa9\x43\x0b\xb5\x47\x15\xb5\x3d\x80\x02\x8b\x27\x30\xda\xb2\xe2\x98\x56\x50\x3d\x82\x2c\x17\x01\x93\xd4\x05\x00\x0c\x1e\x8f\xda\x8d\x81\x77\xec\x8a\xe2\xa6\xc1\x56\x8d\x26\xc2\x51\x99\x11\xf7\x50\x46\x3f\x62\x39\x1f\x1a\xd4\x11\xcb\x3d\xb0\x50\x70\xd2\xc6\x00\x3d\x61\x6a\xd5\xd8\xb6\xe8\x01\x8f\xe8\x27\x28\x6d\x09\x01\x6b\x67\x9b\x00\xb4\xaf\x57\x51\xd7\xca\x98\x89\xce\xbc\x3f\x75\x24\x2a\xad\xd1\xc2\x09\x1f\x96\xed\x2d\xa2\x6f\x76\x20\x46\x54\x26\xa4\xa3\x3e\x23\xc4\x67\x2b\xdb\xc0\x7f\x8d\x3a\x8a\x1e\x48\x55\xf8\x91\x7e\xe9\xd8\xb9\x31\x82\x0a\x8f\xda\x1e\x76\xf0\x0d\x42\xad\x3c\xb6\xa3\x91\x85\x63\x20\x6d\xc5\x4e\x07\xa2\xd4\xa2\x8a\xa3\xc7\x2d\x54\x58\x2b\xd2\x1b\xd1\xe9\xf5\xa1\x8b\xa0\xea\x5a\xb3\xea\x8c\x99\xd2\x89\xd0\x6a\x83\x5b\x70\x47\xf4\x27\xaf\x59\xed\xa7\x4e\x45\x22\x74\x12\xdd\x7a\x84\x0a\x5b\xe7\x71\x07\xdf\xb7\x4f\x89\x48\xd2\x97\x5f\x96\xf4\xc4\xae\x54\x4a\x64\xc8\x93\xb2\xbe\xaf\x59\xe5\x4b\x31\x49\xa5\x02\x5a\xd5\x93\x49\xb4\x65\xca\xda\xb6\xae\x52\x7e\x0b\xa1\x73\x27\x70\xd6\x4c\x62\x9c\xb4\x30\x33\x40\x02\x40\x85\xc4\x39\x36\x3a\x62\x43\x87\x7a\x45\x9c\x93\xcb\x09\xad\x76\x34\x06\x06\x15\xbb\x5d\x41\xaf\xe1\x92\x89\x56\x99\x90\x7c\xa3\x76\xc6\xf9\xda\x99\xb1\xb7\xc4\x4b\xcb\x8a\x5d\x85\x04\x44\x07\x5f\x6e\x81\xed\x62\x0c\x34\x3a\x0c\x46\x4d\xa0\x40\xf6\x80\x8a\x74\x62\x01\x1c\x61\xba\xd5\xd8\xa4\x37\x3b\xf8\x90\x28\x8d\x81\x8d\xa7\x5b\xb6\xcd\x49\xd9\x98\x37\xff\xfe\x4b\x22\x5f\x21\x74\xfa\xd0\x19\x32\x1a\xcb\xc3\xa4\x94\x81\xd6\x79\xc0\x8f\xaa\x1f\xcc\x73\xaa\x64\x09\x42\xdd\x21\x6b\xd3\x38\xd5\x64\x68\x98\x9f\x0b\x36\x35\xa4\x6a\xd2\xc7\xab\x7b\x09\xe2\xb7\xda\x6f\x5e\xaf\x96\x85\xd7\xa5\xd8\xb7\xdc\xb1\x51\xb7\x22\x42\xc0\xc8\x9e\x42\x46\x3f\x18\x57\x29\xc3\xe6\x29\xaf\xf1\x94\x7e\x97\x45\x71\xf3\xa3\x8b\x28\x28\x40\xdc\xe4\x85\xeb\xe3\xe0\x3e\x3d\xdd\x42\x70\x46\x79\xfd\x09\x9b\x2d\x87\xc5\xfc\xf3\x21\xd6\x9b\xe2\x86\xb0\x85\xec\x61\x5c\xad\xa2\xc8\x31\x4b\xb0\x78\x7e\xec\x70\x62\x18\xc2\xbe\xc2\xa6\x91\x75\x74\xb6\x78\x68\xa5\xad\x62\xb8\xba\xf9\x70\xa1\x1d\x42\xa8\x0a\x21\xa0\xc1\x9a\xc8\xb7\xde\xf5\x8c\xe3\xd9\xe1\x42\xa6\x54\xdc\x5c\xe0\xe3\xb9\xfa\xd6\x00\x2c\x18\x50\x3b\x92\xb3\x9a\x66\xf9\x29\xba\x21\x76\x1e\xb1\xb8\x59\xef\xdd\x17\xc5\xcd\x9f\x13\x5a\x7a\x54\x0d\xf4\x8e\x40\xb5\x22\x24\xe0\x93\xee\xc2\xb9\xee\x12\x47\xc9\xfc\x25\x74\x68\x06\x88\x6e\xd0\x75\x71\x73\x5f\xf2\xaf\xf4\x6a\xb3\x13\x3f\x19\x7d\x70\x9e\xd0\xb2\xdc\x2f\x0e\xc7\x44\x18\x74\x67\x53\xc9\x42\x32\xb7\x24\x2c\x05\x8d\x26\x84\x44\x9b\xcc\xc7\x50\x38\xbb\x18\x2d\x6c\xb0\xd5\x16\x1b\x12\xf4\xd2\xf5\xc8\xe7\xc9\x28\x0c\x5b\x9b\xe7\x81\x1a\x6d\xed\x1a\x6d\x0f\xe5\x9e\xc9\xe4\x9f\x14\x24\x6e\x40\x2b\xae\x41\x40\x26\x46\x21\x5d\xee\xe0\xa7\x71\x18\x9c\x27\xbb\xe5\xf5\x0c\x8c\x74\xa6\xd1\x81\x9e\xab\x08\x5d\x8c\x43\xd8\xbf\x7e\x7d\x3a\x9d\x76\xa7\xdf\xed\x9c\x3f\xbc\xfe\xf0\xc7\xd7\x79\xc3\xeb\x27\x70\x62\x8c\xed\xc3\xef\x13\x6b\xae\xb5\x78\x4a\xda\x5b\x65\x91\x33\x68\x07\xd5\x34\x92\xc7\x44\xa3\x6e\xf6\xa0\x6b\x72\xaf\x50\xa8\x55\x21\x36\xda\xc7\x89\x25\x67\x85\x46\xf4\xbd\xb6\x24\x25\xd9\xe5\x51\xdb\x86\x20\x50\x99\x83\xf3\x3a\x76\x7d\xe2\x41\x0a\x05\xb7\xac\x07\xdd\xb2\xf4\x39\xab\xe9\x00\xbd\x6b\x04\x98\x9c\xa7\x28\xda\xc1\x7f\x12\x6c\xaf\xce\x14\x53\x6f\x13\xc9\x7f\x8c\x21\x0a\x5d\x45\x94\x2a\xe7\x0c\x2a\x0b\x65\x26\x53\x8a\xa7\x08\x30\xd0\xd9\x62\x40\xca\xcd\xc1\x2d\x39\x9a\x8b\x9f\x5e\x3d\x12\x1d\xcb\x58\xbd\x23\x72\x19\x14\xe9\xf4\x2d\x54\x63\xcc\xd1\xa7\xad\xaa\x6b\x2a\x64\x24\xf3\x5c\xb2\xd7\xb6\xdb\x6b\xe9\xa6\x53\xa1\xcb\x4e\xcb\x0e\x9a\xc4\x56\x07\xa5\x6d\x88\xa0\x64\x45\xce\x5e\x5e\x1f\xb4\x25\x64\xa5\x2c\x72\xcf\xa5\x07\x36\x92\x56\x05\xc5\xf3\x7e\xca\x86\x04\xa5\xd8\x6c\x16\x20\x97\x90\x4c\x5c\x32\xef\xae\xe2\x1a\xc4\x4c\xf2\xce\x63\x70\xa3\xaf\x99\x90\xb6\x11\x6d\xd0\x47\x4c\xfb\x97\xcc\xc9\xb9\x8d\xb0\x7d\x40\x37\x18\x84\x53\xe7\x28\xe4\xc9\x7f\x28\xd1\xa7\xa0\xef\xd4\x51\xdb\x03\xdb\x32\x9f\x38\x1b\x32\x44\x15\xc7\xf0\x7c\x2c\x91\x88\xad\xf3\xbd\x8a\x2f\xf9\x14\xfb\x2a\x5a\x8e\x9c\xb5\x6b\x13\xa6\x12\x9b\x49\x33\xec\xc6\xf0\xa7\x1f\xbf\xff\xf9\x7c\x07\xb1\xcc\x3e\x53\xfe\xd5\x96\x70\x6f\xda\x0d\x70\x99\xa4\x02\x34\x2e\x7c\xb6\x96\x48\x95\x7f\xf5\xbc\xb6\xf6\xa6\x65\xfd\x22\xc4\x93\x83\xc1\x85\xa0\x2b\x93\x4a\x8e\x90\x0e\x5f\x74\x47\x27\x95\xa3\xd5\x1f\x4b\x46\x82\xb2\x71\xa1\x4c\x4e\x25\x51\x26\xf2\x0a\xf7\x15\x5e\xc4\x26\x89\xcf\xf0\x4e\x7b\x53\x1e\xa7\xa0\x10\x1c\x15\x95\x12\xb3\xe2\x05\xf1\xec\xe4\xcf\xb3\xb8\x1b\x4d\x03\x46\x3f\x72\x94\xd7\x9d\xb2\x07\x5c\xa0\x34\x8b\x4b\xe0\xc8\xe1\x98\x41\x30\x44\xe5\x57\xc5\xee\x53\xc8\xc0\x32\xce\x56\x8c\xd3\x40\xa0\x13\x30\x86\x19\x4f\xe8\x59\x36\xce\x85\xef\xef\x2e\xb3\x36\x6b\x9c\x52\xe7\xd3\x79\x9b\x65\xbd\xae\x36\x0a\xf2\x06\x07\x11\x29\x6b\x8b\xe3\x87\x84\xea\xd4\x11\x8b\x1b\x02\x67\x66\x57\x1f\xac\xf3\x58\xab\x40\x0c\x0f\xe8\xc9\x20\x40\x3f\x1f\xb4\x0d\x14\x0e\x51\x1f\x29\xd1\x2a\x5f\x77\x78\xd5\x81\x57\xa0\x28\x85\x7f\xdd\x29\xbf\x96\x7e\xdd\x0e\xd0\x3b\x55\x47\xf4\xd7\x28\x41\xa6\xc2\x75\x65\xb9\x07\xb4\xaa\x32\xa9\xaf\x62\x33\xa5\x7c\x57\xb9\x18\x5d\x9f\x31\x82\x90\xca\x79\x71\x61\xe8\x31\x04\x75\xc0\xd9\x71\x07\x4f\x61\xdd\x7c\x16\xd2\x2f\xd6\x45\x4b\x5c\x3e\x22\x0e\x9f\x77\x41\x52\xd4\x2f\xcf\xb7\x70\xea\x74\xc4\x30\xa8\x1a\xe9\x00\xc5\xf5\x0c\x19\x7c\x72\xa3\x1c\x4f\xfc\x24\x0e\x56\x91\xad\xdb\xa5\x9d\xe8\xdd\x71\x4e\x42\x16\x3f\x46\x91\x7a\xee\x2f\xec\x04\x64\x15\x2f\x5d\x2c\x00\xaf\x5b\x1d\xcb\x30\x4f\x40\x28\x87\x87\x8e\x7d\xbe\xa2\x5a\xce\x20\x6b\xe1\x9b\xa5\xae\xa1\xbd\x0b\xfb\xdc\x50\x9c\x09\x90\xf6\x48\x85\x9d\xf4\xcf\x20\x8b\x6d\x04\xec\x87\x38\xbd\xe0\x0d\x8f\x38\xf5\x68\xc7\x72\x3f\xd7\xe0\x2c\x96\xb2\xee\x21\xc4\xc9\x20\x3c\xe2\x04\xb4\xe2\xba\x59\x43\xed\x11\xed\x0e\xa8\x2a\x15\x59\x55\x84\x0f\xee\x70\x30\xf8\x07\x9c\x7e\xa0\x7d\x3a\x40\xe5\x46\xdb\x70\x4e\x7b\x63\xe2\xc3\xa1\x5c\x57\x6e\x04\x1b\xb9\x39\x58\xe0\x43\xdb\xac\xb9\x05\x41\x76\xf0\xc1\xd1\x12\x72\x37\xde\xb2\x85\xa0\xfb\xc1\x4c\x44\x2e\x53\xa6\x43\xfe\x64\x2b\x6d\x9b\x3f\xe0\x75\x9f\x59\x09\xdf\xab\x58\x77\x95\x57\xf5\x79\xed\xc6\x8f\xc9\x71\xf8\x95\x00\xe6\xdd\xfd\xe6\x6e\x0b\x77\xbf\xfc\x4a\xff\xff\xcb\xdf\xee\x5e\xec\x80\x16\xda\x64\x8b\xec\x90\x33\x69\x05\xb5\x71\x61\x3e\x64\x9b\xfd\x60\x5e\xc0\x7f\xcc\xe9\x93\xd6\xa4\x32\xd8\x4c\x30\xda\x06\xfd\xaa\xa8\xdc\x42\x86\xac\x1c\xb9\xd9\x3f\xe9\xec\xaf\x25\x35\xf6\x2a\x46\xf4\xec\x91\xba\x3d\x93\x9d\xbb\x6e\x3f\xe2\xcb\x32\x3d\x0e\x8a\x20\x31\x48\x4f\x27\x7d\x2f\xe7\xde\x01\xad\x80\xbe\xe2\x06\x51\xfc\xa0\x71\x28\x0d\x1f\x7e\xd4\x54\x96\xcc\x10\x57\x2b\x6b\x1d\x7b\x33\xf5\x07\xea\x48\x25\xee\xd2\x6d\x80\x1c\x32\x57\xfd\x1a\x29\xe5\xd9\xbb\x44\xe7\x1c\x25\x0c\x01\x18\x67\x57\xce\xe9\x67\x18\x2b\x85\xc8\x53\x24\xb5\x85\x30\xd6\x1d\x28\x08\x3a\x8e\x8c\x7c\x2f\xf7\xb5\xbd\x1b\x19\x84\x4f\x1d\x4a\x6f\xec\x12\xfe\x01\xbf\x81\x20\x55\x73\x2a\x06\xcf\x9e\x25\x07\xa7\xc5\xcd\x96\xce\x19\xc3\xc8\x6c\x12\x7f\x02\x34\xca\x2c\xd9\x82\x9d\xdc\x51\x95\x82\x21\x24\x4a\x78\x24\xe5\x13\x04\xd4\x5d\x2e\xf0\x24\x81\x26\xab\xce\x9d\x30\x65\x4f\x37\x4c\xd2\x73\x9d\x1d\x40\xf5\x1b\x35\x42\xae\x95\x97\x52\x99\xdc\xeb\x96\xc7\x17\x10\x42\x47\xfe\x4e\xf4\x52\x8f\x7c\xd6\x09\x2e\x74\x3a\x42\x30\x61\x2e\xfb\x1a\xe7\xc2\xda\xe8\xa1\x72\xca\x4b\x41\x30\x5b\x26\xfb\xc2\x0b\xad\x8a\xef\xa3\x57\xda\x68\x7b\x38\x85\xe7\x3a\x82\xe8\x75\x0f\x79\xe9\x0a\x13\x03\xc1\x14\x3a\xf3\x42\xe0\xfb\xd1\xa0\x5f\x61\x1e\xe3\xa6\x1d\xfb\x0a\xfd\x0b\xf5\x1f\x79\xab\x04\x5d\xb9\x07\x8f\x3d\x35\xc5\x39\xad\xad\xba\x3c\xc6\x60\x15\x22\x44\xdd\xe3\xe2\xf8\xf4\x38\xc5\x8a\xb2\x3c\x63\x19\xc6\x08\x3a\xa6\x11\xd1\x9c\x62\xb8\x2d\x9b\x77\x71\xd5\xfd\x82\x44\xc4\x57\xa7\x03\x35\xc9\x6b\xc6\x6a\xd7\xf7\x64\x87\xf4\x0a\x2a\x8c\x27\x44\x3b\x83\x0f\xbd\xf3\xf8\x40\xe7\xa5\xb2\x98\x55\xfe\x44\x20\x9c\xab\x61\xb4\x8d\xcb\xb8\x16\x2f\x6b\xf1\x2d\x81\x94\xe3\x76\x86\xe3\x9b\x5c\x17\x54\x4b\xd0\xc4\xd3\x4b\xe3\x42\x1e\x9c\xf1\xe4\xce\x65\xf7\x4d\x6f\x98\x2f\xe9\x4e\xd3\x74\x2d\x0f\x3d\x29\xd3\x33\x71\x6d\x0f\x2f\x29\xa5\xf6\xce\x18\x29\x53\x96\x11\x93\x3c\x85\x4a\xf9\x17\xc3\x5d\x96\xf6\xca\x1f\xb4\x2d\xf7\xa0\x7a\x37\xda\x98\x8b\xfb\x70\xa5\x64\x0d\xc8\x8d\x46\x1a\x43\x56\x68\xdc\x29\x63\xb8\x78\xc6\x35\x8e\x7f\xb7\x3e\x2c\x0c\x88\xcd\x95\xb3\x88\xb8\x30\x4e\xe9\xc8\x59\xcc\x3f\x19\x14\xae\x91\xfd\x6d\x22\xdb\x2b\x1f\x07\x15\x22\x57\xbb\x29\xcb\xc8\x24\xb5\x69\xc0\xa0\x6a\xce\x43\x48\x0c\x4a\x1b\x38\x0d\x8d\x26\x6a\x6a\xa7\x98\x8b\xaf\xe7\x5e\x53\x62\x32\x46\xaa\x31\x88\xb7\xc1\x63\x40\x7f\xc4\xb3\xca\x79\x5d\x54\x1a\x3c\xa2\x39\xa7\xad\x38\xc9\x8f\x56\x96\x51\x12\x30\xae\x7e\x7c\x21\xfe\x5c\x1b\x4f\x5e\x0d\x97\xb2\xd0\xb3\xac\x29\xca\x3d\x3c\x37\x77\x0e\x8c\x93\x41\x47\xab\xe3\xdc\x93\x48\xcd\xf2\x82\xeb\x0c\x46\x47\xa9\x75\xb2\x8f\x2b\xe8\x9c\xd7\x9f\x9c\x8d\xca\x00\xbf\x27\xf7\x4e\xdd\xee\x9c\xc0\x75\x24\x54\xce\x3d\x30\x7b\x40\x2e\x65\xb2\x5a\x78\xef\xd7\xcf\x8b\x49\x4b\x3c\x55\x23\xcb\xe9\x47\xaa\x29\xeb\x7f\xfe\x6c\x81\x65\x1e\xe4\x72\x59\x93\x4a\xb6\xff\x0d\x17\x5c\x7b\x49\xfb\x67\xca\x3d\xa4\x46\x30\x44\x4f\xe6\xe3\xe9\x94\x66\xe3\xe6\x96\x89\xca\x8d\x07\xea\x5a\xa5\xa1\x1e\x94\xcf\xc7\x72\x90\xaf\x4a\xb9\x9f\xd2\x30\x56\x32\xb2\x3e\x62\x58\x55\xc2\x83\x51\x35\x17\x81\x41\x37\x08\xe5\xab\xfb\x4d\x39\xef\xe0\x64\xb2\x6c\xd2\xb6\x36\x63\xc3\xc6\xd3\x46\x66\xdf\xdb\xd5\x50\x65\x0b\x25\x0f\x97\xb6\x3c\xd1\xa3\x7f\xdc\x10\xe9\x1f\xaa\x10\x97\x2e\x97\x9f\x4a\xf7\xcb\x2f\xd6\x27\x44\xf5\x88\x80\x9a\xd3\xbd\xb2\x19\xe4\x1c\xff\x50\xb5\x74\xd0\x84\x6b\x27\xe5\x19\xd1\x89\x4a\x4b\xd1\x91\x46\x89\xd7\x06\xfd\x49\x5d\x54\x5b\xcf\xb5\x31\x97\xfa\xf5\x33\x65\xc8\xab\xfb\x2c\xe2\x06\x5e\xdd\x67\x11\x37\xf7\xaf\xee\x49\xc4\xcd\xf6\xd5\x7d\xed\xcc\x86\xde\xb9\x21\xee\x73\x3b\xbb\x61\x5a\x97\xff\x2d\x6b\xc4\xa6\x79\x57\x1e\xdd\x6d\xfe\xbf\x1d\xe0\x29\x11\x49\xfd\xfb\xb3\x06\x62\xb3\x97\xbb\x0b\x7a\x43\xed\xff\x16\xce\x56\x7d\x87\x66\xd8\xec\xaf\x0a\x19\x79\x01\x8f\x70\xd7\xe2\xa4\x69\xe3\xba\xdf\x91\x17\xcf\xb4\xaf\x4f\x63\xc6\x2a\x5a\xc6\xba\x27\xe4\xce\x57\x16\xd2\x12\x87\x71\x40\x9f\xef\x2c\x39\x19\xef\xe0\x3d\x95\x86\x21\x42\x98\x42\xc4\x3e\xcc\xfd\xcf\x6d\x18\x1b\x77\x0b\xd5\xc8\xb5\xb1\xb3\xf0\xcd\x4f\x6f\x29\xa8\x53\xa9\x77\xdb\x38\x15\x76\xb7\x67\xf5\x6f\x7a\x55\x8f\x21\xba\x5e\x7f\x4a\x73\x98\x3c\x0e\xe3\x2b\x46\x82\x8f\x74\x3b\xc6\x48\xaf\x63\x07\x61\xbc\x26\x0b\x1d\x9f\x64\x99\x6c\x54\x1f\xcb\x3d\xc4\xd1\xdb\x00\xf2\x13\xc4\x73\x5d\xdb\x3e\xaf\x88\xa8\x2a\xea\x91\x7b\x69\xc4\xad\x3a\xea\x03\xd5\xe1\x4b\x81\xc6\xfa\xc5\x83\xb6\x96\x87\x1f\x39\xc5\xa9\x90\xfa\x58\xb9\x6f\x88\xaa\xe2\x6e\xe5\x1e\x77\x87\x9d\x74\xdd\x5c\xa2\x7e\xb5\xa2\xe4\x6c\x8d\x9b\xf3\x8e\x80\x05\xe7\x72\x53\xd9\x29\x72\x2f\x25\xd3\x22\xe2\x2b\x44\x27\x9b\xd3\x74\xf6\x85\x2c\x40\x3b\xf4\xa7\xb3\x31\x51\x54\x15\xd0\x33\xee\x34\xd3\xbd\xce\x15\x22\x5f\x2d\x04\xe6\x23\xf7\x3c\xfb\x4b\xcc\xaf\xea\x70\x16\xf4\x79\x3e\xd0\xf7\x51\x47\xc3\x7e\xcb\x97\x02\x61\x6e\x41\x64\xfc\x4c\xb5\x88\x9f\xab\xf3\xbb\x00\xbc\x7c\x6e\x27\x02\x46\xea\x92\xe7\x72\x9c\x53\x8a\x54\xa2\x2f\xa8\x60\x0c\x38\x78\xdd\x2b\x3f\x95\x70\x9f\x9d\xaa\x1d\x0d\x39\xc3\x17\x56\x7f\xdc\x3c\xc9\xd1\xc5\xcc\x33\x61\x40\x22\xb6\xea\x13\x72\xaf\x22\x17\x45\x7c\xcb\x9d\xa0\xb3\x52\xf5\xe3\xc1\x13\x40\x26\x13\xcf\x1d\xa5\x6a\x5b\xac\x63\x4e\xac\x96\x60\x69\xdd\x7a\xc8\xdc\xe7\xdb\xe8\xcd\xc3\xb7\x1c\x10\xfc\xe7\x7f\x3c\xe3\xb6\x0f\x0f\x0f\x45\xf1\x36\xbd\x1b\xcc\x78\xd0\x19\xea\xc3\x72\xc5\xce\xb5\x29\xd5\x66\xe7\x6d\x26\x57\xac\xe5\x2f\xbf\x96\x50\xde\x6f\x4a\x28\xff\xf2\xb7\x12\xca\xdb\xdb\x12\xca\xbb\xbb\x72\x07\xff\xee\xdd\x51\x37\xf3\x35\x0e\xbb\xe2\x42\x2d\x1d\xf6\xfc\xd0\x39\x26\x56\xca\xfd\x6a\x74\xb2\x3d\xbb\x76\xc7\x08\xc1\xf5\xcb\x87\x02\x95\x0a\xcb\x18\x36\x27\x83\x1d\xbc\x99\x95\xd6\xbb\x9e\x27\x62\x97\x66\x52\x95\x4c\x3c\x7a\xf5\x88\x72\x21\xc4\xf7\x43\xc3\x3c\x0a\x19\xa6\xd8\x39\xb9\x35\x9a\x54\x6f\xf2\x10\x3b\x80\xc7\x83\xf2\x8d\xa1\x96\xd0\xb5\xe2\x90\x69\x5c\x1a\xf8\xf2\xe1\xf3\x72\x79\x3d\xcd\x81\x0a\x3b\x75\xd4\xd2\x7b\x12\xec\x9c\x35\x15\x2f\x82\x8e\xd1\x36\x72\x4f\xf7\xe6\xcc\x38\xf4\x78\xbe\x89\x98\xe7\x15\xdc\x93\x7c\x66\x99\x99\x08\xfb\x29\x9b\xe5\x99\x33\xdf\xd8\x29\x33\x47\x82\x91\x01\x92\xdb\xe6\x59\x67\x8e\x3d\x6e\x80\x56\xb7\x56\x50\x5c\x5e\x77\xce\x6a\xfa\x47\x70\x16\x82\xdb\x12\x29\x64\x1f\xdf\x8a\x22\xcf\xbf\x48\x91\x66\x32\xd1\x2f\x72\xc1\x37\xcf\x31\x45\xd7\x77\x8b\x9e\xb9\x86\xb9\x42\x87\x73\x01\x71\x1f\x1d\x28\xeb\x28\x7a\x8b\x5e\xd5\x9d\xb6\x38\x0f\xd7\x38\x36\x39\x93\x9d\x31\x99\xe4\xe1\x3d\x90\xf6\xec\x8a\xa2\xf8\xcd\x6f\xe0\x9d\x4c\x6d\xc9\x41\x64\x26\x90\x77\x16\xc5\x9f\x97\x2f\x57\x68\x7b\x58\xa8\xe6\x12\x4b\x46\xbe\x66\x22\x14\xe1\xdd\x66\xda\xc1\xbf\xc9\x1f\xd0\xa3\xca\xdf\xc0\x50\x24\xe5\x61\xfc\x89\xa7\x43\x6b\x55\x5f\x7e\x70\x73\xae\xe1\x32\x4d\x1d\x55\x9c\xbf\x40\x20\x64\x2b\x12\x50\x26\x33\x5e\xce\xff\x7f\x4a\xa7\x2d\x45\xe0\xcc\x6b\xfa\x6c\x65\x0e\x4c\x6a\xee\xe7\xb0\x5c\x7f\xe0\x61\xf9\x02\x5c\x28\x86\x5d\x51\x7c\x58\xee\x9a\xe5\x53\x83\x55\x13\xbd\x1a\x7e\x6f\x13\xc3\xb8\xba\xba\x58\xad\x64\x3d\x15\xb4\x90\x67\xa4\x74\xe8\xc2\x64\x52\xe2\x96\xa3\xbb\x0c\x18\xf9\x41\xb9\x4e\x40\xf4\xb4\xdc\x15\xc5\xf7\xe9\xf2\xfb\x42\x59\xf3\xb5\x04\x59\x8e\x3f\xbf\x19\x46\xf9\x8a\x23\x83\x4d\x3a\x83\xe2\x48\xaa\x9f\x89\xbf\x24\x61\x8b\x16\x8a\x25\xe1\x8a\x79\x05\x44\xfc\x75\x93\x96\x5b\x4c\x19\x34\xa5\xb9\x56\xa7\xc2\x65\xaa\x4e\x05\x26\xa9\x4e\x90\x06\x3f\xd6\x38\x44\x78\xe7\x0a\xfe\x2d\xea\x99\xb3\x35\x7c\x75\x7d\xf9\x1f\xc7\x6a\x92\x27\xfb\xa2\x28\xcb\x92\xa4\x2b\x7e\x29\x6e\x6e\xdb\xb8\x3f\xb8\xdb\x3d\xfc\x52\xdc\xdc\xdc\xae\x8f\xbe\xdd\x03\xa7\xc2\xe2\xe6\xd7\xad\xac\xf3\x63\x35\xad\x57\xea\x4f\x78\xbb\x87\xdf\xa6\x05\x17\x7b\x09\x29\xf2\x63\x59\xf8\x55\xf1\x2b\x9d\x5c\x14\xef\x3d\xc5\x97\x36\xca\x9b\x69\xd6\xad\xcc\x7c\x39\x28\x49\x65\x97\x6c\x7e\xb1\xfb\xa7\xb8\xfc\x62\xe7\xab\xff\x03\x16\xff\x27\x00\x00\xff\xff\xff\x0a\x4b\x21\x8a\x27\x00\x00"
+var _runtimeHelpOptionsMd = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x5a\x5f\x8f\xe4\xb6\x91\x7f\x1e\x7d\x8a\xc2\x78\x81\x99\x36\x7a\x7a\x8d\xc4\x0f\x41\xbf\x04\x6b\xef\xdd\xda\xc8\xd9\x7b\x88\x37\x77\x0e\x92\x20\xa2\xa4\x52\x8b\x19\x8a\xd4\x91\x54\xf7\x6a\x0d\xdf\x67\x3f\x54\x15\x29\xa9\x7b\x7b\x66\x72\xc0\x9d\x1f\xbc\xd3\x12\x59\xac\xbf\xbf\xfa\x43\x7d\x01\xef\x87\xa8\x9d\x0d\x45\xf1\x83\xae\xbd\x83\x10\x9d\xc7\x00\xca\x18\x70\x2d\xc4\x0e\x61\x0c\xe8\xa1\x76\xb6\xd5\x87\xd1\x2b\x5a\x0c\xda\x82\x8e\xe1\xe2\x61\xa3\x3d\xd6\xd1\xf9\x69\x97\x69\x8d\x01\x03\x93\x28\x5f\xfd\xfc\xf6\xdd\xdf\xbf\x7d\xff\xe3\xbf\x7e\xff\xee\xef\xdf\xbd\xff\xe1\x5f\x5e\xf7\xb4\xa0\x04\x25\xef\x9f\x22\x04\x6f\x02\x0c\xe8\x0b\x5a\xf3\xf3\xdb\x77\x10\x06\xac\xb7\xa0\xdb\xcf\x09\x96\xa0\x03\x58\x17\x21\x60\xdc\x42\xf9\xdf\xaf\x77\x42\x33\x1f\xa4\x03\x71\xd3\xd0\x81\xc5\x72\xe2\x19\xcf\xdf\xa1\x47\x50\x1e\x99\x23\x27\x5a\x81\xd8\xa9\x08\x93\x1b\xa1\x56\x96\x68\xef\x8b\xe2\x4b\x28\xd5\x18\x9d\xb6\x0d\xda\x58\xee\xe1\xd4\xa1\x85\xda\xa3\x8a\xda\x1e\x40\x81\xc5\x13\x18\x6d\x59\x71\x4c\x2b\xa8\x1e\x41\x96\x8b\x80\x49\xea\x02\x00\x06\x8f\x47\xed\xc6\xc0\x3b\x76\x45\x71\xd3\x60\xab\x46\x13\xe1\xa8\xcc\x88\x7b\x28\xa3\x1f\xb1\x9c\x0f\x0d\xea\x88\xe5\x1e\x58\x28\x38\x69\x63\x80\x9e\x30\xb5\x6a\x6c\x5b\xf4\x80\x47\xf4\x13\x94\xb6\x84\x80\xb5\xb3\x4d\x00\xda\xd7\xab\xa8\x6b\x65\xcc\x44\x67\xde\x9f\x3a\x12\x95\xd6\x68\xe1\x84\x0f\xcb\xf6\x16\xd1\x37\x3b\x10\x23\x2a\x13\xd2\x51\x9f\x11\xe2\xb3\x95\x6d\xe0\xbf\x46\x1d\x45\x0f\xa4\x2a\xfc\x48\xbf\x74\xec\xdc\x18\x41\x85\x47\x6d\x0f\x3b\xf8\x06\xa1\x56\x1e\xdb\xd1\xc8\xc2\x31\x90\xb6\x62\xa7\x03\x51\x6a\x51\xc5\xd1\xe3\x16\x2a\xac\x15\xe9\x8d\xe8\xf4\xfa\xd0\x45\x50\x75\xad\x59\x75\xc6\x4c\xe9\x44\x68\xb5\xc1\x2d\xb8\x23\xfa\x93\xd7\xac\xf6\x53\xa7\x22\x11\x3a\x89\x6e\x3d\x42\x85\xad\xf3\xb8\x83\xef\xdb\xa7\x44\x24\xe9\xcb\xaf\x4a\x7a\x62\x57\x2a\x25\x32\xe4\x49\x59\xdf\xd7\xac\xf2\x95\x98\xa4\x52\x01\xad\xea\xc9\x24\xda\x32\x65\x6d\x5b\x57\x29\xbf\x85\xd0\xb9\x13\x38\x6b\x26\x31\x4e\x5a\x98\x19\x20\x01\xa0\x42\xe2\x1c\x1b\x1d\xb1\xa1\x43\xbd\x22\xce\xc9\xe5\x84\x56\x3b\x1a\x03\x83\x8a\xdd\xae\xa0\xd7\x70\xc9\x44\xab\x4c\x48\xbe\x51\x3b\xe3\x7c\xed\xcc\xd8\x5b\xe2\xa5\x65\xc5\xae\x42\x02\xa2\x83\xaf\xb6\xc0\x76\x31\x06\x1a\x1d\x06\xa3\x26\x50\x20\x7b\x40\x45\x3a\xb1\x00\x8e\x30\xdd\x6a\x6c\xd2\x9b\x1d\x7c\x48\x94\xc6\xc0\xc6\xd3\x2d\xdb\xe6\xa4\x6c\xcc\x9b\x7f\xf7\x15\x91\xaf\x10\x3a\x7d\xe8\x0c\x19\x8d\xe5\x61\x52\xca\x40\xeb\x3c\xe0\x47\xd5\x0f\xe6\x39\x55\xb2\x04\xa1\xee\x90\xb5\x69\x9c\x6a\x32\x34\xcc\xcf\x05\x9b\x1a\x52\x35\xe9\xe3\xd5\xbd\x04\xf1\x5b\xed\x37\xaf\x57\xcb\xc2\xeb\x52\xec\x5b\xee\xd8\xa8\x5b\x11\x21\x60\x64\x4f\x21\xa3\x1f\x8c\xab\x94\x61\xf3\x94\xd7\x78\x4a\xbf\xcb\xa2\xb8\xf9\xd1\x45\x14\x14\x20\x6e\xf2\xc2\xf5\x71\x70\x9f\x9e\x6e\x21\x38\xa3\xbc\xfe\x84\xcd\x96\xc3\x62\xfe\xf9\x10\xeb\x4d\x71\x43\xd8\x42\xf6\x30\xae\x56\x51\xe4\x98\x25\x58\x3c\x3f\x76\x38\x31\x0c\x61\x5f\x61\xd3\xc8\x3a\x3a\x5b\x3c\xb4\xd2\x56\x31\x5c\xdd\x7c\xb8\xd0\x0e\x21\x54\x85\x10\xd0\x60\x4d\xe4\x5b\xef\x7a\xc6\xf1\xec\x70\x21\x53\x2a\x6e\x2e\xf0\xf1\x5c\x7d\x6b\x00\x16\x0c\xa8\x1d\xc9\x59\x4d\xb3\xfc\x14\xdd\x10\x3b\x8f\x58\xdc\xac\xf7\xee\x8b\xe2\xe6\xcf\x09\x2d\x3d\xaa\x06\x7a\x47\xa0\x5a\x11\x12\xf0\x49\x77\xe1\x5c\x77\x89\xa3\x64\xfe\x12\x3a\x34\x03\x44\x37\xe8\xba\xb8\xb9\x2f\xf9\x57\x7a\xb5\xd9\x89\x9f\x8c\x3e\x38\x4f\x68\x59\xee\x17\x87\x63\x22\x0c\xba\xb3\xa9\x64\x21\x99\x5b\x12\x96\x82\x46\x13\x42\xa2\x4d\xe6\x63\x28\x9c\x5d\x8c\x16\x36\xd8\x6a\x8b\x0d\x09\x7a\xe9\x7a\xe4\xf3\x64\x14\x86\xad\xcd\xf3\x40\x8d\xb6\x76\x8d\xb6\x87\x72\xcf\x64\xf2\x4f\x0a\x12\x37\xa0\x15\xd7\x20\x20\x13\xa3\x90\x2e\x77\xf0\xd3\x38\x0c\xce\x93\xdd\xf2\x7a\x06\x46\x3a\xd3\xe8\x40\xcf\x55\x84\x2e\xc6\x21\xec\x5f\xbf\x3e\x9d\x4e\xbb\xd3\x6f\x77\xce\x1f\x5e\x7f\xf8\xe3\xeb\xbc\xe1\xf5\x13\x38\x31\xc6\xf6\xe1\x77\x89\x35\xd7\x5a\x3c\x25\xed\xad\xb2\xc8\x19\xb4\x83\x6a\x1a\xc9\x63\xa2\x51\x37\x7b\xd0\x35\xb9\x57\x28\xd4\xaa\x10\x1b\xed\xe3\xc4\x92\xb3\x42\x23\xfa\x5e\x5b\x92\x92\xec\xf2\xa8\x6d\x43\x10\xa8\xcc\xc1\x79\x1d\xbb\x3e\xf1\x20\x85\x82\x5b\xd6\x83\x6e\x59\xfa\x9c\xd5\x74\x80\xde\x35\x02\x4c\xce\x53\x14\xed\xe0\x3f\x09\xb6\x57\x67\x8a\xa9\xb7\x89\xe4\x3f\xc6\x10\x85\xae\x22\x4a\x95\x73\x06\x95\x85\x32\x93\x29\xc5\x53\x04\x18\xe8\x6c\x31\x20\xe5\xe6\xe0\x96\x1c\xcd\xc5\x4f\xaf\x1e\x89\x8e\x65\xac\xde\x11\xb9\x0c\x8a\x74\xfa\x16\xaa\x31\xe6\xe8\xd3\x56\xd5\x35\x15\x32\x92\x79\x2e\xd9\x6b\xdb\xed\xb5\x74\xd3\xa9\xd0\x65\xa7\x65\x07\x4d\x62\xab\x83\xd2\x36\x44\x50\xb2\x22\x67\x2f\xaf\x0f\xda\x12\xb2\x52\x16\xb9\xe7\xd2\x03\x1b\x49\xab\x82\xe2\x79\x3f\x65\x43\x82\x52\x6c\x36\x0b\x90\x4b\x48\x26\x2e\x99\x77\x57\x71\x0d\x62\x26\x79\xe7\x31\xb8\xd1\xd7\x4c\x48\xdb\x88\x36\xe8\x23\xa6\xfd\x4b\xe6\xe4\xdc\x46\xd8\x3e\xa0\x1b\x0c\xc2\xa9\x73\x14\xf2\xe4\x3f\x94\xe8\x53\xd0\x77\xea\xa8\xed\x81\x6d\x99\x4f\x9c\x0d\x19\xa2\x8a\x63\x78\x3e\x96\x48\xc4\xd6\xf9\x5e\xc5\x97\x7c\x8a\x7d\x15\x2d\x47\xce\xda\xb5\x09\x53\x89\xcd\xa4\x19\x76\x63\xf8\xd3\x8f\xdf\xff\x7c\xbe\x83\x58\x66\x9f\x29\xff\x6a\x4b\xb8\x37\xed\x06\xb8\x4c\x52\x01\x1a\x17\x3e\x5b\x4b\xa4\xca\xbf\x7a\x5e\x5b\x7b\xd3\xb2\x7e\x11\xe2\xc9\xc1\xe0\x42\xd0\x95\x49\x25\x47\x48\x87\x2f\xba\xa3\x93\xca\xd1\xea\x8f\x25\x23\x41\xd9\xb8\x50\x26\xa7\x92\x28\x13\x79\x85\xfb\x0a\x2f\x62\x93\xc4\x67\x78\xa7\xbd\x29\x8f\x53\x50\x08\x8e\x8a\x4a\x89\x59\xf1\x82\x78\x76\xf2\xe7\x59\xdc\x8d\xa6\x01\xa3\x1f\x39\xca\xeb\x4e\xd9\x03\x2e\x50\x9a\xc5\x25\x70\xe4\x70\xcc\x20\x18\xa2\xf2\xab\x62\xf7\x29\x64\x60\x19\x67\x2b\xc6\x69\x20\xd0\x09\x18\xc3\x8c\x27\xf4\x2c\x1b\xe7\xc2\xf7\x77\x97\x59\x9b\x35\x4e\xa9\xf3\xe9\xbc\xcd\xb2\x5e\x57\x1b\x05\x79\x83\x83\x88\x94\xb5\xc5\xf1\x43\x42\x75\xea\x88\xc5\x0d\x81\x33\xb3\xab\x0f\xd6\x79\xac\x55\x20\x86\x07\xf4\x64\x10\xa0\x9f\x0f\xda\x06\x0a\x87\xa8\x8f\x94\x68\x95\xaf\x3b\xbc\xea\xc0\x2b\x50\x94\xc2\xbf\xee\x94\x5f\x4b\xbf\x6e\x07\xe8\x9d\xaa\x23\xfa\x6b\x94\x20\x53\xe1\xba\xb2\xdc\x03\x5a\x55\x99\xd4\x57\xb1\x99\x52\xbe\xab\x5c\x8c\xae\xcf\x18\x41\x48\xe5\xbc\xb8\x30\xf4\x18\x82\x3a\xe0\xec\xb8\x83\xa7\xb0\x6e\x3e\x0b\xe9\x17\xeb\xa2\x25\x2e\x1f\x11\x87\xcf\xbb\x20\x29\xea\x97\xe7\x5b\x38\x75\x3a\x62\x18\x54\x8d\x74\x80\xe2\x7a\x86\x0c\x3e\xb9\x51\x8e\x27\x7e\x12\x07\xab\xc8\xd6\xed\xd2\x4e\xf4\xee\x38\x27\x21\x8b\x1f\xa3\x48\x3d\xf7\x17\x76\x02\xb2\x8a\x97\x2e\x16\x80\xd7\xad\x8e\x65\x98\x27\x20\x94\xc3\x43\xc7\x3e\x5f\x51\x2d\x67\x90\xb5\xf0\xcd\x52\xd7\xd0\xde\x85\x7d\x6e\x28\xce\x04\x48\x7b\xa4\xc2\x4e\xfa\x67\x90\xc5\x36\x02\xf6\x43\x9c\x5e\xf0\x86\x47\x9c\x7a\xb4\x63\xb9\x9f\x6b\x70\x16\x4b\x59\xf7\x10\xe2\x64\x10\x1e\x71\x02\x5a\x71\xdd\xac\xa1\xf6\x88\x76\x07\x54\x95\x8a\xac\x2a\xc2\x07\x77\x38\x18\xfc\x03\x4e\x3f\xd0\x3e\x1d\xa0\x72\xa3\x6d\x38\xa7\xbd\x31\xf1\xe1\x50\xae\x2b\x37\x82\x8d\xdc\x1c\x2c\xf0\xa1\x6d\xd6\xdc\x82\x20\x3b\xf8\xe0\x68\x09\xb9\x1b\x6f\xd9\x42\xd0\xfd\x60\x26\x22\x97\x29\xd3\x21\x7f\xb2\x95\xb6\xcd\x1f\xf0\xba\xcf\xac\x84\xef\x55\xac\xbb\xca\xab\x9a\xe2\x6a\xb4\x0d\x72\x1d\x07\xfc\x98\x1c\x87\x5f\x09\x60\xde\xdd\x6f\xee\xb6\x70\xf7\xcb\xaf\xf4\xff\xbf\xfc\xed\x6e\xce\x6e\xa9\xae\xe3\xdc\xc4\xa5\x9d\x92\x6d\x67\x51\x74\xad\x0a\x5a\x7c\xb7\x7f\x1c\x14\x21\x4d\x90\x56\x49\xda\x49\xa6\x36\xa0\x15\x2c\x55\xdc\x77\x89\x7a\x1b\x87\xd2\x47\xe1\x47\x4d\xd9\x7e\x46\x8e\x5a\x59\xeb\xd8\x49\xa8\xec\x56\x47\xaa\x1c\x97\x22\x1e\xe4\x90\xb9\x98\xd6\x48\x99\xc4\xde\x25\x3a\xe7\xc1\x67\x08\x17\x38\x69\x71\xaa\x3c\x83\x2e\xc9\xef\x4f\x91\xd4\x16\xc2\x58\x77\xa0\x20\xe8\x38\x32\xa0\xbc\xdc\x2e\xf6\x6e\x64\x6c\x3b\x75\x28\x2d\xa7\x4b\xb0\x02\xfc\x06\x82\x14\xa3\xa9\xc6\x3a\x7b\x96\xfc\x86\x16\x37\x5b\x3a\x67\x0c\x23\xb3\x49\xfc\x49\xfc\x2a\xb3\x80\x30\xfb\x8e\xa3\xe4\x8f\x21\x24\x4a\x78\x24\xe5\x53\x64\xd5\x5d\xae\x9b\x24\x2f\xb1\x55\x57\x0d\x26\x25\x25\x37\x4c\xd2\xca\x9c\x1d\x40\x65\x11\xf5\x17\xae\x95\x97\x92\xf0\xef\x75\xcb\x53\x01\x08\xa1\x23\x37\x22\x7a\xa9\xf5\x3c\x6b\xb0\x16\x3a\x1d\x01\x83\x30\x97\x20\x46\x52\x4c\x6d\xf4\x50\x39\xe5\x25\xcf\xce\x96\xc9\xbe\xf0\x42\x07\xe0\xfb\xe8\x95\x36\xda\x1e\x4e\xe1\xb9\x42\x3b\x7a\xdd\x43\x5e\xba\x82\x9a\x40\xd1\x8f\xce\xbc\x10\x4f\x7e\x34\xe8\x57\x50\xc2\xd1\x64\xc7\xbe\x42\xff\x42\x59\x45\xde\x2a\x81\x54\xee\xc1\x63\x4f\xbd\x66\xce\x16\xab\xe6\x89\xa1\x4d\x85\x08\x51\xf7\xb8\x38\x3e\x3d\x4e\xb1\xa2\x2c\x8f\x2e\x86\x31\x82\x8e\x69\xf2\x32\x23\x37\x77\x3b\xf3\x2e\x2e\x66\x5f\x90\x88\xf8\xea\x34\xf5\xf9\xd3\x9a\xb1\xda\xf5\x3d\xd9\x21\xbd\x82\x0a\xe3\x09\xd1\x42\x6d\x9c\x64\x1c\xdb\x80\xc7\x07\x3a\x2f\x55\x9b\xac\xf2\x17\x91\x80\x8e\x1b\x6d\xe3\x72\xfe\x8a\x97\x25\xee\x96\x60\xca\x71\x97\xc0\xf1\x4d\xae\x0b\xaa\x8d\xe8\x65\x28\x68\x5c\xc8\xf3\x28\x1e\x88\xb9\xec\xbe\xe9\x0d\xf3\x25\x4d\x5f\x1a\x5a\xe5\x59\x22\x25\x50\x26\xae\xed\xe1\x25\xa5\xd4\xde\x19\x23\xd9\x7f\x99\xdc\xc8\x53\xa8\x94\x7f\x31\xdc\x65\x69\xaf\xfc\x41\xdb\x72\x0f\xaa\x77\xa3\x8d\xb9\x66\x0e\x57\x2a\xc1\x80\x5c\xbf\xa7\xe9\x5e\x85\xc6\x9d\x72\xfd\x2c\x9e\x71\x8d\xe3\xdf\xae\x0f\x0b\x03\x62\x73\xe5\x2c\x22\x2e\x8c\x13\xca\x3b\x8b\xf9\x27\x83\xc2\x35\xb2\xbf\x49\x64\x7b\xe5\xe3\xa0\x42\xe4\x22\x52\x92\xb8\xc4\x15\x75\xab\x06\x55\x73\x1e\x42\x62\x50\xda\x40\xcf\xfb\xd1\x44\x4d\x5d\x0a\x73\xf1\xfb\xb9\x85\x93\x98\x8c\x91\x52\x37\xf1\x36\x78\x0c\xe8\x8f\x78\x56\x90\xae\x6b\x35\x83\x47\x34\xe7\xb4\x15\xe7\xce\xd1\xca\x32\x4a\x02\xc6\xd5\x8f\x2f\xc4\x9f\x6b\xe3\xc9\xab\xe1\x52\x16\x7a\x96\x35\x45\xb9\x87\xc7\xd1\xce\x81\x71\x32\x3f\x68\x75\x9c\x4b\x7d\x29\x05\x5e\x70\x9d\xc1\xe8\x28\x25\x44\xf6\x71\x05\x9d\xf3\xfa\x93\xb3\x51\x19\xe0\xf7\xe4\xde\xa9\x89\xdc\x66\x76\x74\x24\x54\xce\xad\x25\x7b\x40\xae\x10\xb2\x5a\x78\xef\xef\x9f\x17\x93\x96\x78\x7d\xe8\xe2\x72\xfa\x91\x4a\xb5\xfa\x9f\x3f\x5b\x60\x99\xe7\xa3\x3c\xe9\x49\x95\xd0\xff\x86\x0b\x2e\x69\xa4\xab\x32\xe5\x1e\x52\x7f\x15\xa2\x27\xf3\xf1\xd0\x47\xb3\x71\x73\x27\x42\xd5\xdc\x03\x35\x83\xd2\xa7\x0e\xca\xe7\x63\x39\xc8\x57\x15\xd2\x4f\x69\xc6\x29\x19\x59\x1f\x31\xac\x0a\xcc\xc1\xa8\x9a\x6b\xab\xa0\x1b\x84\xf2\xd5\xfd\xa6\x9c\x77\x70\x32\x59\x36\x69\x5b\x9b\xb1\x61\xe3\x69\x23\x23\xe5\xed\x6a\x56\xb1\x85\x92\x67\x36\x5b\x1e\x94\xd1\x3f\x6e\x88\xf4\x0f\x15\x5e\x4b\xf3\xc8\x4f\xa5\xa9\xe4\x17\xeb\x13\xa2\x7a\x44\x40\xcd\xe9\x5e\xd9\x0c\x72\x8e\x7f\xa8\x5a\x1a\x53\xc2\xb5\x93\xf2\x8c\xe8\x44\xa5\xa5\xe8\x48\x13\xba\x6b\xf3\xf3\xa4\x2e\x2a\x59\xe7\x92\x93\x2b\xe8\xfa\x99\x32\xe4\xd5\x7d\x16\x71\x03\xaf\xee\xb3\x88\x9b\xfb\x57\xf7\x24\xe2\x66\xfb\xea\xbe\x76\x66\x43\xef\xdc\x10\xf7\xb9\x4b\xdc\x30\xad\xcb\xff\x96\x35\x62\xd3\xbc\x2b\x4f\xc4\x36\xff\xdf\x0e\xf0\x94\x88\xa4\xfe\xfd\x59\x5d\xbe\xd9\xcb\x95\x00\xbd\xa1\xae\x7a\x0b\x67\xab\xbe\x43\x33\x6c\xf6\x57\x85\x8c\xbc\x80\x27\xa3\x6b\x71\xd2\x10\x6f\xdd\x46\xc8\x8b\x67\xba\xc2\xa7\x31\x63\x15\x2d\x63\xdd\x13\x72\xe7\x9b\x00\xe9\x34\xc3\x38\xa0\xcf\x57\x81\x9c\x8c\x77\xf0\x9e\x4a\xc3\x10\x21\x4c\x21\x62\x1f\xe6\xb6\xe2\x36\x8c\x8d\xbb\x85\x6a\xe4\xda\xd8\x59\xf8\xe6\xa7\xb7\x14\xd4\xa9\xd4\xbb\x6d\x9c\x0a\xbb\xdb\xb3\xfa\x37\xbd\xaa\xc7\x10\x5d\xaf\x3f\xa5\xf1\x46\x9e\x32\xf1\xcd\x1d\xc1\x47\xba\x74\x62\xa4\xd7\xb1\x83\x30\x5e\x93\x85\x8e\x4f\xb2\x4c\x36\xaa\x8f\xe5\x1e\xe2\xe8\x6d\x00\xf9\x09\xe2\xb9\xae\x6d\x9f\x57\x44\x54\x15\xb5\x9e\xbd\xf4\xb7\x56\x1d\xf5\x81\xea\xf0\xa5\x40\x63\xfd\xe2\x41\x5b\xcb\x33\x85\x9c\xe2\x54\x48\xed\xa1\x8c\xf1\xa3\xaa\xb8\x2d\xbd\xc7\xdd\x61\x27\xcd\x2c\x97\xa8\x5f\xaf\x28\x39\x5b\xe3\xe6\xbc\x23\x60\xc1\xb9\xdc\x54\x76\x8a\xdc\x1e\xc9\x10\x86\xf8\x0a\xd1\xc9\xe6\x34\xf4\x7c\x21\x0b\xd0\x0e\xfd\xe9\x6c\xfa\x12\x55\x05\xf4\x8c\x1b\xb8\x74\x5d\x72\x85\xc8\xd7\x0b\x81\xf9\xc8\x3d\x8f\xd4\x12\xf3\xab\x3a\x9c\x05\x7d\x9e\x0f\xf4\x7d\xd4\xd1\xb0\xdf\xf2\xac\x3d\xcc\x2d\x88\x4c\x75\xa9\x16\xf1\x73\x75\x7e\x17\x80\x97\xcf\xed\x44\xc0\x48\xcd\xe7\x5c\x8e\x73\x4a\x91\x4a\xf4\x05\x15\x8c\x01\x07\xaf\x7b\xe5\xa7\x12\xee\xb3\x53\xb5\xa3\x21\x67\xf8\xd2\xea\x8f\x9b\x27\x39\xba\x18\x25\x26\x0c\x48\xc4\x56\x7d\x42\xee\x55\xe4\xfe\x85\x2f\x8f\x13\x74\x56\xaa\x7e\x3c\x78\x02\xc8\x64\xe2\xb9\xa3\x54\x6d\x8b\x75\xcc\x89\xd5\x12\x2c\xad\x5b\x0f\x19\xa7\x7c\x1b\xbd\x79\xf8\x96\x03\x82\xff\xfc\x8f\x67\xdc\xf6\xe1\xe1\xa1\x28\xde\xa6\x77\x83\x19\x0f\x3a\x43\x7d\x58\x6e\xae\xb9\x36\xa5\xda\xec\xbc\xcd\xe4\x8a\xb5\xfc\xe5\xd7\x12\xca\xfb\x4d\x09\xe5\x5f\xfe\x56\x42\x79\x7b\x5b\x42\x79\x77\x57\xee\xe0\xdf\xbd\x3b\xea\x66\xbe\x1d\x61\x57\x5c\xa8\xa5\xc3\x9e\x9f\xe5\xc6\xc4\x4a\xb9\x5f\x4d\x24\xb6\x67\xb7\xd9\x18\x21\xb8\x7e\xb9\x7f\xaf\x54\x58\xa6\x9b\x39\x19\xec\xe0\xcd\xac\xb4\xde\xf5\x3c\x68\xba\x34\x93\xaa\x64\x90\xd0\xab\x47\x94\x7b\x16\xbe\x76\x19\xe6\x09\xc3\x30\xc5\xce\xc9\x65\xcc\xa4\x7a\x93\x67\xc3\x01\x3c\x1e\x94\x6f\x0c\xb5\x84\xae\x15\x87\x4c\x53\xc8\xc0\x33\xfd\xcf\xcb\xe5\xf5\x90\x04\x2a\xec\xd4\x51\x4b\xef\x49\xb0\x73\xd6\x54\xbc\x08\x3a\x46\xdb\xc8\x3d\xdd\x9b\x33\xe3\xd0\xe3\x65\x04\x92\xe7\x15\xdc\x93\x7c\x66\x99\x99\x08\xfb\x29\x9b\xe5\x99\x33\xdf\xd8\x29\x33\x47\x82\x91\x01\x92\xdb\xe6\x11\x62\x8e\x3d\x6e\x80\x56\x97\x41\x50\x5c\xde\x22\xce\x6a\xfa\x47\x70\x16\x82\xdb\x12\x29\x64\x1f\xdf\x8a\x22\xcf\x3f\xf4\x90\x66\x32\xd1\x2f\x72\xc1\x37\x8f\x07\x45\xd7\x77\x8b\x9e\xb9\x86\xb9\x42\x87\x73\x01\x71\x1f\x1d\x28\xeb\x28\x7a\x8b\x5e\xd5\x9d\xb6\x38\xcf\xac\x38\x36\x39\x93\x9d\x31\x99\xe4\xe1\x3d\x90\xf6\xec\x8a\xa2\xf8\xe2\x0b\x78\x27\xc3\x50\x72\x10\x99\x09\xe4\x9d\x45\xf1\xe7\xe5\x83\x10\xda\x1e\x16\xaa\xb9\xc4\x92\x49\xaa\x99\x08\x45\x78\xb7\x99\x76\xf0\x6f\xf2\x07\xf4\xa8\xf2\xa7\x25\x14\x49\x79\xc6\x7d\xe2\xe9\xd0\x5a\xd5\x97\xdf\xb1\x9c\x6b\xb8\x4c\xc3\x3c\x15\xe7\x8b\x7d\x42\xb6\x22\x01\xa5\xb6\x57\xc7\xea\x3f\xa5\xd3\x96\x22\x70\xe6\x35\x7d\x0d\x32\x07\x26\x35\xf7\x73\x58\xae\xbf\x9b\xb0\x7c\xaf\x2c\x14\xc3\xae\x28\x3e\x2c\x57\xb8\x72\x83\xbf\x6a\xa2\x57\x33\xe5\x6d\x62\x18\x57\x37\x02\xab\x95\xac\xa7\x82\x16\xf2\xe8\x91\x0e\x5d\x98\x4c\x4a\xdc\x72\x74\x97\x01\x23\x3f\x28\xd7\x09\x88\x9e\x96\xbb\xa2\xf8\x3e\xdd\x29\x5f\x28\x6b\x9e\xf6\x93\xe5\xf8\xab\x96\x61\x94\x8f\x23\x32\xd8\xa4\x33\x28\x8e\xa4\xfa\x99\xf8\x03\x0d\xb6\x68\xa1\x58\x12\xae\x98\x57\x40\xc4\x1f\x0d\x69\xb9\x1c\x94\x41\x53\x9a\x6b\x75\x2a\x5c\xa6\xea\x54\x60\x92\xea\x04\x69\xf0\x63\x8d\x43\x84\x77\xae\xe0\xdf\xa2\x9e\x39\x5b\xc3\xd7\xd7\x97\xff\x71\xac\x26\x79\xb2\x2f\x8a\xb2\x2c\x49\xba\xe2\x97\xe2\xe6\xb6\x8d\xfb\x83\xbb\xdd\xc3\x2f\xc5\xcd\xcd\xed\xfa\xe8\xdb\x3d\x70\x2a\x2c\x6e\x7e\xdd\xca\x3a\x3f\x56\xd3\x7a\xa5\xfe\x84\xb7\x7b\xf8\x4d\x5a\x70\xb1\x97\x90\x22\x3f\x96\x85\x5f\x17\xbf\xd2\xc9\x45\xf1\xde\x53\x7c\x69\xa3\xbc\x99\x66\xdd\xf2\x3c\x57\x82\x92\x54\x76\xc9\xe6\x97\xbb\x7f\x8a\xcb\x2f\x77\xbe\xfa\x3f\x60\xf1\x7f\x02\x00\x00\xff\xff\xee\x0c\x05\x9b\xe1\x26\x00\x00"
 
 func runtimeHelpOptionsMdBytes() ([]byte, error) {
        return bindataRead(
index b7cdaa691250fd15c8f8024d0738060b69469aff..1ec84cafdc89780d0c0526581190afcdb81d633e 100644 (file)
@@ -162,8 +162,7 @@ var defaultCommonSettings = map[string]interface{}{
        "ignorecase":     false,
        "indentchar":     " ",
        "keepautoindent": false,
-       "matchbrace":     false,
-       "matchbraceleft": false,
+       "matchbrace":     true,
        "mkparents":      false,
        "readonly":       false,
        "rmtrailingws":   false,
index 391e0010793ae9b05da8d056dcae8588b267479b..4fdfb129afbc5963b382aea00a98873a10579f42 100644 (file)
@@ -381,6 +381,27 @@ func (w *BufWindow) displayBuffer() {
                b.Highlighter.HighlightMatches(b, w.StartLine, w.StartLine+bufHeight)
        }
 
+       var matchingBraces []buffer.Loc
+       // bracePairs is defined in buffer.go
+       if b.Settings["matchbrace"].(bool) {
+               for _, bp := range buffer.BracePairs {
+                       for _, c := range b.GetCursors() {
+                               if c.HasSelection() {
+                                       continue
+                               }
+                               curX := c.X
+                               curLoc := c.Loc
+
+                               r := c.RuneUnder(curX)
+                               rl := c.RuneUnder(curX - 1)
+                               if r == bp[0] || r == bp[1] || rl == bp[0] || rl == bp[1] {
+                                       mb, _ := b.FindMatchingBrace(bp, curLoc)
+                                       matchingBraces = append(matchingBraces, mb)
+                               }
+                       }
+               }
+       }
+
        lineNumStyle := config.DefStyle
        if style, ok := config.Colorscheme["line-number"]; ok {
                lineNumStyle = style
@@ -477,6 +498,12 @@ func (w *BufWindow) displayBuffer() {
                                        }
                                }
 
+                               for _, mb := range matchingBraces {
+                                       if mb.X == bloc.X && mb.Y == bloc.Y {
+                                               style = style.Underline(true)
+                                       }
+                               }
+
                                screen.Screen.SetContent(w.X+vloc.X, w.Y+vloc.Y, r, nil, style)
 
                                if showcursor {
index 5e25ea6e96e3e62d53a56695fc80452f65d30e11..4c7840e9eac03c22d240cc24868d9e1a82214bf8 100644 (file)
@@ -115,15 +115,10 @@ Here are the options that you can set:
 
        default value: `false`
 
-* `matchbrace`: highlight matching braces for '()', '{}', '[]'
+* `matchbrace`: underline matching braces for '()', '{}', '[]' when the cursor
+   is on a brace character.
 
-    default value: `false`
-
-* `matchbraceleft`: when matching a closing brace, should matching match the
-   brace directly under the cursor, or the character to the left? only matters
-   if `matchbrace` is true
-
-    default value: `false`
+    default value: `true`
 
 * `mkparents`: if a file is opened on a path that does not exist, the file cannot
    be saved because the parent directories don't exist. This option lets micro