]> git.lizzy.rs Git - micro.git/commitdiff
Add latex support in comment plugin (#1725)
authorJán Priner <51519088+priner@users.noreply.github.com>
Fri, 12 Jun 2020 16:58:51 +0000 (18:58 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 16:58:51 +0000 (12:58 -0400)
internal/config/runtime.go
runtime/plugins/comment/comment.lua

index 02e6a24efee783aafe432e8953a900b269572e8d..5f39a8ecda0e34b305556794ea0aa88852bdb244 100644 (file)
@@ -1083,7 +1083,7 @@ func runtimePluginsAutocloseAutocloseLua() (*asset, error) {
        return a, nil
 }
 
-var _runtimePluginsCommentCommentLua = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x57\x6d\x6f\xeb\x34\x14\xfe\xde\x5f\x61\x7c\xa9\x94\x6c\x8d\xb7\x8e\x6f\x13\x45\xba\x9b\x60\x17\x51\x76\xa5\x76\xba\x74\xaa\x8a\x94\x26\x27\xad\x2f\x8e\x13\xd9\x0e\x50\x21\xf8\xed\xc8\x2f\x79\x75\x5b\x7a\x85\x04\x5f\xee\xa4\x2d\xc9\x93\xe7\x39\xc7\xe7\xcd\xce\x3e\x7c\xbb\x58\x7e\xff\xfe\x19\xcd\x10\x9e\x92\x5b\x72\x8b\x47\x23\x56\x24\x31\x43\x95\xa2\x0c\xcd\x10\xcd\xcb\x42\xa8\x00\xe7\x34\x11\xc5\x8d\x06\x71\xe8\x18\x49\xc1\x33\xba\xf3\x38\x16\x6e\x58\xdb\x2a\xcb\x40\x78\x2c\x0b\xe3\xb0\x76\x97\x29\x34\x43\x7f\xfc\x39\x1a\x65\x6a\x8d\x13\xbc\xd1\x0b\xba\xb9\x41\x63\x89\x2d\x72\x7d\xed\x61\xbb\xc2\x83\xca\x83\xda\x17\xdc\xc2\x6f\x06\xe8\x57\x43\x78\xaf\x72\x66\xb1\xaf\xbf\x88\x22\x34\x96\x28\x8a\xbe\xb1\xaf\x3e\xc6\xbf\xc6\x9e\xf1\x8f\x15\xa3\xb1\x67\x1b\x04\xf3\xb0\x7d\xe9\x89\x45\x25\x95\x07\xca\x3d\x30\x4f\xcd\x2a\xe7\xc4\xac\xa9\x5d\x8f\x4c\x04\x2d\x7d\x1b\xa2\xda\x1e\x86\x26\x52\xdf\xd3\x6f\x34\xf3\xb5\xc0\xf2\x9e\xab\x51\x56\xf1\x44\xd1\x82\xa3\x82\x3f\x98\x02\xbd\x2f\x81\x07\xdb\x2a\x0b\x47\x08\x21\x44\x33\x5d\x4e\xb2\x04\xa5\x28\xdf\xc9\x35\x4e\x8a\x3c\x07\xae\xd4\xa1\x04\x6d\x68\x86\x38\x65\x48\xed\x81\x1b\xba\x93\x64\x6a\xdd\x57\x65\x94\x81\x95\x6c\xd0\x5f\x47\x34\xfa\xe7\xac\x9f\xb3\x26\x1b\x33\xc0\x24\x7c\x82\x4d\x97\xbf\x46\xcd\xd3\x51\x7d\xd5\xbf\x6d\x6e\x9c\x70\x4e\x39\x04\xdb\x72\x82\x18\xe5\xf0\x6c\x13\x64\x7b\x59\x03\x68\x86\xb6\x25\x79\xa8\xb2\x7b\xc3\xf3\x38\xce\xc8\xcb\xa1\x6c\xa9\xa7\x16\xe7\xcb\x16\xb0\x83\xdf\xf5\x9a\x7f\x1e\xcb\x2b\x8c\x08\xe9\xda\xbb\xdf\xc9\x6a\x1b\xe0\xf1\x15\x9e\x20\xfd\x37\xac\x81\xc8\x00\x51\x0b\x10\x03\x90\x16\xb8\x36\xc0\x75\x0b\x6c\x0c\xb0\x69\x81\xb5\x01\xd6\x2d\x30\x96\x1a\x09\xc8\x55\x88\xbb\xf1\x49\xd0\xbb\x47\xb4\x2d\xc9\x63\x25\x64\x21\xf4\x65\x09\x0c\x4c\x0a\xbb\x01\x55\xa2\x2c\x64\x9f\x3a\x2f\x92\x0e\x83\xf2\xd4\xc4\x2a\x95\xa0\x7c\x47\x32\xca\xd3\xa0\x13\xad\x5e\xce\x58\xe2\x10\x45\x68\x5a\x37\xa9\xa3\xe6\xb1\x4a\xf6\x26\xf5\x93\x5e\xe2\xc2\x7e\xbb\x55\xdc\xbd\x84\x74\x6e\x2b\xf7\x4f\xfa\x46\xea\x4a\xbc\x80\x92\xc5\x09\x04\x76\x53\xd3\xeb\x0f\x6e\xeb\xbe\x98\xa0\x0e\xfa\xc6\x1a\xab\xdf\xe8\xed\x94\x3c\x81\x9a\x43\x9c\x52\xbe\xfb\x69\x4f\x15\xc8\x52\x5b\xd2\x8c\x50\xd7\x75\xb0\xb8\xb0\x3b\x58\x4d\xc6\xee\xdf\xc5\xb2\x49\x6e\x10\x1e\x99\xa6\xa3\x65\x58\x4f\x37\xe4\x55\x87\x0b\xcc\xdc\x5e\x22\xb9\x6b\x25\x77\x17\x4a\xa6\x1b\xb2\x6a\xbd\xac\x2e\xf4\xb2\x6a\xbd\xac\xce\x8c\x74\xa3\xd7\x7c\xdb\x4c\x64\x85\x22\xdb\x35\x27\xa8\xaf\x2d\xf5\xd5\x9f\xf7\xae\x8b\xde\xd0\x35\xed\x71\x64\xd6\xcc\x14\x28\x41\x73\x5b\xb9\xff\xb2\x43\x3e\xf7\xc7\xa7\xf7\xc7\xf5\xbf\xe8\x0f\x77\x6d\x93\xbb\x00\xdd\x26\x0a\x82\xb0\xff\x82\xcc\x63\xa9\x3e\x50\x59\xc5\x6c\x65\xf7\x78\x27\x78\x82\x1a\x0e\xc2\xe3\x67\x4b\x5b\x2c\x7d\xc0\x48\x15\x0b\x73\xdc\x4c\xb4\xf7\xb6\xcc\x59\x21\xea\xb3\xc6\xa7\xa0\xb4\x68\xd6\x7e\xec\xc4\x0a\xcf\x9f\x6e\x86\x17\x8b\x9d\x6c\x4f\xfe\x8b\xba\xa9\x4b\x1c\x96\xf9\xfe\x49\x40\xac\x40\xbc\xec\x63\x1e\x9c\x38\x1a\xd6\x77\x9b\x23\xfd\x69\xe7\xb0\x8e\x6c\x76\xae\x5f\x7b\xba\x73\xab\xd1\x1d\x31\x43\xb7\xbe\x33\x97\x17\xe7\xaa\xbe\xab\x8f\x97\x61\x3f\x0c\x72\xdc\xaf\xdc\x99\x21\x19\xd4\xf2\x68\xf7\x5e\x18\xb6\x37\x68\xa7\xc3\xbe\xfb\x3f\xc3\x9e\x9e\x08\xfb\xd8\xce\x3b\x6c\xd9\xce\x74\x9e\xea\x5c\xb3\xfd\xba\x7e\x15\xa0\x2a\xc1\x51\x20\xdd\x06\xad\xbf\x93\x02\x12\x85\x63\x79\xf5\xa5\xf9\x82\x99\xe2\x70\x38\x7b\xee\xd4\x37\xa3\x24\x83\xa5\x79\x9a\x2c\xf5\x53\xcf\x66\x4d\xab\xb6\x35\x67\x3a\x71\x18\x03\x1e\x58\x41\x38\x9b\x99\x9b\x81\x0b\xca\xa9\x72\xdb\x84\xfd\x37\x89\xfc\x18\xff\x02\x8f\x45\x9e\xc7\x3c\x0d\xea\xaf\x3e\xdc\x7c\x6e\x4c\x6a\xda\x73\xf1\x58\xe4\x25\x03\x05\x3d\xf5\x8b\x38\x3c\x50\x9e\xfe\x00\x87\x00\xbf\x65\x2a\xba\xd1\xb1\xb1\x2a\xbe\x77\x7a\xd2\x5a\xcc\x62\x26\xfb\xe2\xb7\x69\xba\xa8\xb8\xa2\x39\x7c\x47\x19\xf4\xbd\x1b\xc2\xe2\xe5\x1d\xb0\x72\x82\xf0\x1e\x58\x79\x53\x9b\xcc\x53\x6c\x33\xf7\x77\x00\x00\x00\xff\xff\x0d\x13\x9c\x6f\x3b\x0e\x00\x00"
+var _runtimePluginsCommentCommentLua = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x57\xd1\x6e\xe3\xb6\x12\x7d\xf7\x57\xf0\x72\x23\x40\x4a\x24\x25\xce\x7d\x0b\xea\x2e\x36\x41\x9b\x2d\x9a\x66\x01\x3b\xd8\x3a\x30\x5c\x40\x96\x46\x36\xb7\x14\x25\x90\x54\xbb\x46\xd1\x7e\x7b\x41\x52\x12\x25\xd1\x76\xbd\x28\xd0\xbe\x34\x40\x22\xf1\x68\xce\x0c\x39\x73\x86\x64\x3e\x7e\x33\x5f\x7c\xf7\xe1\x19\xcd\x10\x9e\xc6\x37\xf1\x0d\x9e\x4c\x68\x99\x26\x14\xd5\x92\x50\x34\x43\xa4\xa8\x4a\x2e\x7d\x5c\x90\x94\x97\xd7\x0a\xc4\x41\x63\x91\x96\x2c\x27\x5b\xc7\xc6\xc0\x9d\xd5\xa6\xce\x73\xe0\x8e\x95\x81\x71\xd0\x86\xcb\x25\x9a\xa1\xdf\x7e\x9f\x4c\x72\xb9\xc2\x29\x5e\xab\x09\x5d\x5f\x23\x4f\x60\x83\x5c\x5d\x39\xd8\xb6\x74\xa0\x6a\x2f\x77\x25\x33\xf0\x9b\x11\xfa\xff\x31\xbc\x93\x05\x35\xd8\x57\xff\x8b\x22\xe4\x09\x14\x45\x5f\x9b\x4f\x9f\x92\x5f\x12\xc7\xf9\xa7\x9a\x92\xc4\xf1\x0d\x9c\x3a\xd8\xae\x72\xc8\xbc\x16\xd2\x01\xc5\x0e\xa8\xc3\xa6\x75\x13\x44\xcf\xc9\xce\x47\xa4\x9c\x54\xae\x0f\x5e\x6f\xf6\x63\x17\x99\x1b\xe9\x57\x92\xbb\x5c\xa0\x85\x13\x4a\xc2\x67\x83\x79\x1a\x9a\xe4\x35\x4b\x25\x29\x19\x2a\xd9\xbd\xae\xd9\x87\x0a\x98\xbf\xa9\xf3\x60\x82\x10\x42\x24\x57\x15\x8e\x17\x20\x25\x61\x5b\xb1\xc2\x69\x59\x14\xc0\xa4\xdc\x57\xa0\xfc\xcc\x10\x23\x14\xc9\x1d\x30\x6d\xde\x50\x72\xb9\x1a\xb2\x72\x42\xc1\x50\xd6\xe8\x8f\x03\x1c\xf5\x73\x32\xce\x49\x97\x9d\x1b\xa0\x02\xbe\xc0\x67\x93\xd2\x8e\xcd\xb2\x49\xfb\x54\xbf\x36\x37\x0d\xf1\x89\x30\xf0\x37\x55\x88\x28\x61\xf0\x6c\x12\x64\xe4\xad\x00\x34\x43\x9b\x2a\xbe\xaf\xf3\x3b\x6d\xe7\xd8\x34\x4e\x5e\xf6\x95\x35\x3d\x36\x39\x97\x36\x87\x2d\x7c\x56\x73\xfe\xc9\x13\x97\x18\xc5\x71\xdf\xdf\xdd\x56\xd4\x1b\x1f\x7b\x1e\x0e\xb1\xe7\x79\x1e\x0e\x5a\xe4\x42\x21\x17\x76\x1c\xa8\x71\x60\xc7\xbe\x1a\xfb\x76\xfc\x56\x8d\xdf\xda\xf1\x25\x0e\x91\xfa\xdb\x01\x91\x06\x22\x0b\xc4\x1a\x88\x2d\x70\xa5\x81\x2b\x0b\xac\x35\xb0\xb6\xc0\x4a\x03\x2b\x0b\x78\x9e\x27\x14\xe6\xc7\x97\x01\xee\xe7\x4c\x80\xda\xa4\xa2\x4d\x15\x3f\xd4\x5c\x94\x5c\x3d\x16\x40\x41\x97\xa5\x9f\xa4\x9a\x57\xa5\x18\x9a\x3e\x95\x69\xcf\x82\xb0\x4c\xe7\x4f\x48\x4e\xd8\x36\xce\x09\xcb\xfc\x5e\x06\xd5\x84\x3c\x81\x03\x14\xa1\x69\x2b\xfc\xc6\xb4\x48\x64\xba\xd3\xe5\x0c\x07\xc5\x08\x86\x12\xae\x59\xf3\x11\xb2\x27\xa3\x86\xbf\xe2\x77\xd4\x46\x36\x73\xa8\x68\x92\x82\x6f\xf6\x4e\x35\x7f\xff\xa6\xd5\x5a\x88\x7a\xe8\x1b\xe3\xac\xfd\xa2\x76\xed\xf8\x11\xe4\x13\x24\x19\x61\xdb\x1f\x77\x44\x82\xa8\x94\x27\x65\x11\x28\xad\x8c\x26\x17\xf4\x9b\xb5\xcb\xd8\xdd\xfb\x44\x74\xc9\xf5\x83\x03\x1d\x7a\xb0\x0c\xab\xe9\x3a\x7e\x55\xcb\x05\xaa\x5f\xcf\xa1\xdc\x5a\xca\xed\x99\x94\xe9\x3a\x5e\xda\x28\xcb\x33\xa3\x2c\x6d\x94\xe5\x89\x6d\xa2\xe3\x2b\x7b\x23\xa6\x78\x89\x22\xa3\x9a\x23\xa6\xaf\xd6\xf4\xd5\xdd\x43\xfa\x21\x06\x8d\xdc\xc9\xe3\x50\xff\xaa\x2e\x90\x9c\x14\xa6\x72\xff\xa4\x42\xfe\xd3\xc7\x97\xeb\xe3\xea\x6f\xe8\xa3\x79\xda\xe4\xce\x41\xc9\x44\x82\x1f\x0c\x3f\xc4\x4f\x89\x90\x1f\x89\xa8\x13\xba\x34\xe7\x46\x43\x78\x84\x16\xf6\x83\xc3\xe7\x95\x2d\x96\x3a\xb4\x84\x4c\xb8\x3e\xc2\x42\x15\xdd\x96\x39\x2f\x79\x7b\x7e\xb9\x26\x28\x2b\xbb\xb9\x1f\x3a\x05\x83\xd3\x27\xa6\xb6\x4b\xf8\x56\xd8\xdb\xc4\x59\x6a\xea\x1b\x8e\xcb\x7c\xf7\xc8\x21\x91\xc0\x5f\x76\x09\xf3\x8f\x1c\x0d\xab\xdb\xf5\x01\x7d\x9a\x3e\x6c\x57\x36\x3b\xa5\xd7\x01\xef\xd4\x6c\x94\x22\x66\xe8\xc6\x0d\xd6\xe4\xa5\x09\xd5\xbe\xb5\xc7\xcb\x58\x0f\xa3\x1c\x0f\x2b\x77\xa2\x49\x46\xb5\x3c\xa8\xde\x33\x97\xed\x34\xda\xf1\x65\xdf\xfe\x9b\xcb\x9e\x1e\x59\xf6\xa1\x9d\x77\x2c\xd9\x5e\x77\x1e\x53\xae\xde\x7e\x45\xff\x12\xa2\x90\x02\x32\xd5\x1f\xcd\x46\xad\xee\x60\x7e\x1c\x05\x9e\xb8\xbc\xd0\x77\x99\x69\xef\x2e\xd3\xdd\xc1\xb4\x0b\x0e\xb2\xe6\xac\xf5\x31\x8a\xd5\xdc\x10\x74\xdb\x09\x7f\xa1\x47\xe1\x42\x8d\x06\xe4\xd6\xac\xde\xb4\x36\xd3\xb0\xc1\x28\x30\xdf\x10\x82\xd9\x4c\xbf\x8c\x42\x10\x46\x64\xb3\xa5\x98\xff\xdc\xe2\x1f\x92\x9f\xe1\xa1\x2c\x8a\x84\x65\x7e\x7b\xeb\xc4\xdd\xd5\x24\x6c\xcd\x9e\xcb\x87\xb2\xa8\x28\x48\x18\xb0\x5f\xf8\xfe\x9e\xb0\xec\x7b\xd8\xfb\xf8\x1d\x95\xd1\xb5\x5a\x3f\xad\x93\xbb\x86\x1f\x5b\x8f\x79\x42\xc5\x90\xfc\x2e\xcb\xe6\x35\x93\xa4\x80\x6f\x09\x85\x61\x74\x6d\x30\x7f\x79\x0f\xb4\x0a\x11\xde\x01\xad\xae\x5b\x97\x45\x86\xcd\x0e\xf7\x67\x00\x00\x00\xff\xff\x68\x10\x3c\x55\xce\x0e\x00\x00"
 
 func runtimePluginsCommentCommentLuaBytes() ([]byte, error) {
        return bindataRead(
@@ -5283,7 +5283,7 @@ func runtimeSyntaxPython3Hdr() (*asset, error) {
        return a, nil
 }
 
-var _runtimeSyntaxPython3Yaml = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x56\x4d\x6f\xe3\x46\x0f\xbe\xe7\x57\x68\xb3\xfb\xbe\x9b\xec\x36\xde\x02\x3d\xd5\xfd\xd8\x2d\x8a\xf6\xd8\x53\x4f\x8d\x53\x61\x24\x51\x16\x9b\xf9\x02\x49\xd9\x56\xca\xfe\xf7\x62\x66\xa4\xd8\xf1\x26\x68\x2f\x45\x10\xf0\x11\x35\x43\x3e\x7c\x86\x43\xb9\x47\x0b\x32\x45\x58\x57\x71\x92\x21\xf8\x8b\x8b\x0e\x04\x5a\x59\x5f\x54\x55\x55\xa5\xb7\xde\x38\x58\x57\x97\x9b\xcd\x2a\x4e\x57\x5f\x5d\x7f\x7c\x73\x99\x5f\x0d\x60\x3a\xa0\x75\x75\xf9\xfb\xeb\x57\xab\x77\x1f\xae\xc0\xef\xaa\xf7\xd7\x1f\x4b\x94\x79\xdd\x05\x8d\x16\xb8\x84\x7a\x5d\x35\x23\x5a\xb9\x41\x5f\x85\xe6\x0f\x68\x85\xb3\xfb\xa6\x6a\x83\x67\x31\x5e\x72\x8e\xe6\xea\x27\x6b\x31\x32\xb2\xfe\x12\x3c\x28\x83\xed\xf5\x57\x1a\x41\x7f\x36\x96\xe1\x7a\xb3\x69\x4a\xfa\x27\x01\x8d\x08\x61\x33\x0a\xbc\x10\xb3\xae\x1b\xc3\xc0\x75\xad\x75\x9d\x37\xa1\xcf\xb8\xb5\x86\x8b\xb7\x83\x66\xdc\x16\x84\xad\x14\x10\xda\x6c\x93\x06\x19\x38\x70\x0d\x10\xcf\x58\x86\xd0\x15\x9c\x04\xca\x20\x91\xad\xeb\x17\x38\xf6\xa3\x6f\x05\x83\x5f\x28\x62\x07\x5e\xb0\xc7\xac\x61\x22\x69\x1a\x56\x63\xad\x1a\x3f\xa9\xe1\x16\x51\x1b\xf4\xda\x84\x60\xb5\x21\x30\xf7\x31\xa0\x17\x6d\x26\x01\x43\x64\xa6\x8c\x58\x5b\x63\xad\x69\x2c\x68\x3b\x90\xe6\x7a\x0a\x35\x6d\x83\x8b\x98\xfc\xc1\x45\x0b\x07\xed\xc0\x26\x99\xb4\xc3\xf4\xbf\x73\xa1\x53\xd8\x19\xab\x70\x80\x56\xfb\x40\xce\x88\x6e\x41\xf2\x9a\xad\x0d\x8d\xb1\xac\x83\xe1\xfc\x3c\x18\x1e\x74\x00\x1b\x75\x80\x83\x62\xa7\xe8\xe3\x28\x8a\x8c\x59\xe6\x16\x14\x99\xc7\x26\xa7\x57\x14\x20\xb5\xe0\xd5\x86\x36\x05\x71\xe6\xa0\x0e\xbd\x7a\x38\x88\xfa\xe0\xb3\x5b\x43\x2b\x1a\x22\x78\x0d\xd4\x69\x0c\x7b\x8d\x94\xca\x23\x88\xa4\x14\x46\xdf\x29\xcf\x64\x38\x90\x40\xa7\x3c\x3a\xdd\x19\x62\xad\x6b\x74\x31\x90\x9c\x2b\xcd\x11\x5a\x34\xb6\x2a\xf5\x57\xe9\x54\x5e\xd4\xba\xae\x4d\x53\x0e\xcf\x74\x5d\xb1\xbe\xd8\xa4\x67\x01\x2e\x16\x1b\x80\x5a\x98\x61\x96\x72\xc6\xbe\x35\xb2\x40\x31\xe8\x97\x46\xb2\x8b\x4d\xec\x17\x8c\x02\x6e\xc1\x6c\x71\x0e\xd8\xe1\x6e\xb1\x2e\x94\xfc\xbd\x0d\x73\xd8\xf9\x30\x16\xfc\x18\x61\x0b\x72\x8c\x90\x4e\xa6\x80\x99\x17\x7a\x94\x19\x2c\x76\xb7\x58\xa0\xe2\xb2\xe0\x9f\xb6\xba\x0d\xbe\x34\xbf\xe5\x01\xfb\xe2\x5b\x08\xb9\xb1\x14\xe4\x61\x3b\xdb\x43\x59\xe0\x83\x7f\x00\x0a\x19\x87\x39\x50\x28\x74\x63\xe0\xd9\xee\xb3\xa5\x45\x65\x5a\x64\xa6\x45\x5e\x5a\x34\xa0\x13\x11\x08\x22\xcc\x2a\xa4\x86\x28\xe0\x84\x1b\x3d\x2e\x5c\xd8\xd1\x9c\x99\x1e\x53\xd2\xc9\xf2\x53\x38\x36\x05\x1c\xe6\x1d\x7c\x22\x33\x9f\xc8\xcc\xa7\x32\xf3\xb2\x60\xde\x9d\x37\x3f\x6d\xbf\x34\x44\x97\x7e\x2b\x03\x35\x77\x5a\xb9\xbf\xe7\x97\xf6\xec\x9e\xe6\xfb\x89\xad\x28\xf8\xd1\x01\x19\x01\xed\xd1\xa6\x7b\x94\xdb\x41\x7b\x0a\x0f\xe0\x19\x44\xd3\x1d\xb1\xc8\xa2\xce\x44\x75\xe0\x02\x4d\x3b\x84\xbd\x96\x91\xaa\x91\x42\x04\x92\x49\xc9\xf8\x2d\x28\xc1\x0e\x88\x21\xdf\x25\xcd\xd5\x28\x8b\x11\x6c\xe7\xdc\x9c\xae\xd7\x18\x81\x54\xc6\x68\x41\x13\x6f\x7d\xc0\xf8\xb4\xb2\x0e\xfa\xd4\x55\x2f\xcd\xae\x0e\xfa\xea\xd6\xdc\x3c\xfc\x70\xf3\x5b\xfd\xe5\xcd\xd7\x77\xef\x8f\x3b\xef\x61\xda\x07\xea\x96\x6d\x29\x37\x38\x78\x1c\xcb\xc6\x77\x6a\x58\x0d\x33\x90\xa8\xd9\x1b\x94\x32\xea\x8a\x40\x9a\x2e\x16\xfa\x11\xb4\x83\x3e\xcd\x2f\x05\x8b\xbd\x82\x65\x50\x38\xb4\x10\x45\x7b\xf4\xc6\xda\x29\xcd\xaf\x24\x92\x9b\x27\x97\x62\xaf\x65\x48\x28\x7a\x45\x56\x6b\x5c\xd3\x99\xe3\xf4\xf1\x41\x34\x90\xc6\x94\x85\x0c\x72\x92\x4a\x46\xf2\x2a\x34\xe9\x7e\x48\x73\x73\x8f\x32\xe8\x84\x60\xbb\x73\x35\xda\x40\x46\x02\x2d\x55\x35\x84\xdb\x41\xb6\x04\xe0\xd7\xd5\xe5\xa7\xd5\xbb\xdb\xab\xbb\xe3\xf2\x74\x1e\xa7\xab\x79\x72\x4d\xb0\xab\xc5\xbd\xae\x2e\xaf\x6e\x57\xeb\x6f\xbe\x78\xff\x4e\xbf\x7b\xb5\xd9\xfc\xef\xd3\x9d\x7e\xab\xdf\xeb\x07\xbd\xd1\xff\x5f\x1f\xc3\x44\x43\xe0\x65\x00\x86\xb3\x40\x0d\x99\xf6\x1e\x84\x73\xa0\xab\xeb\x3f\xff\xba\xd3\xcd\xe6\x56\x37\x9b\xbb\x93\xdd\x7e\xcc\x5f\xae\xb3\x8f\xe3\xaa\xb8\xcb\x61\xdc\xe6\xa3\xcb\x95\x9e\x2f\x63\x21\xf4\xdb\xf5\x1c\xad\x4a\xc7\x48\xf9\x08\xf3\xdf\xe5\xa3\x1f\x7c\xf7\x8c\xb7\xfc\x04\xa8\x6e\xef\x8e\x71\x5d\xee\x81\xcf\xe2\xbd\x7d\xfb\xf6\x3c\xd8\x13\xd7\x33\x91\xfe\x91\xe1\xe7\xec\x8e\x1e\xbe\xc7\x98\x8b\xdf\x6c\x56\xe7\x59\x1e\x1f\xcf\x33\x95\x8f\xcc\x8f\x83\xa1\xe3\xd6\x7f\x4b\xe7\xf3\xf2\xfe\x4b\x32\x2f\xa8\xfc\xfa\x9c\xc4\x9b\x67\x15\xfe\x3b\x00\x00\xff\xff\xf0\x56\x0a\xd4\x18\x0a\x00\x00"
+var _runtimeSyntaxPython3Yaml = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x56\x4d\x6f\xe3\x46\x0f\xbe\xe7\x57\x68\xb3\xfb\xbe\x9b\xec\x36\xde\x02\x3d\xd5\xfd\xd8\x2d\x8a\xf6\xd8\x53\x4f\x8d\x53\x61\x24\x51\x16\x9b\xf9\x02\x49\xd9\x56\xca\xfe\xf7\x62\x66\xa4\xd8\xf1\x26\x68\x2f\x45\x10\xf0\x11\x35\x43\x3e\x7c\x86\x43\xb9\x47\x0b\x32\x45\x58\x57\x71\x92\x21\xf8\x8b\x8b\x0e\x04\x5a\x59\x5f\x54\x55\x55\xa5\xb7\xde\x38\x58\x57\x97\x9b\xcd\x2a\x4e\x57\x5f\x5d\x7f\x7c\x73\x99\x5f\x0d\x60\x3a\xa0\x75\x75\xf9\xfb\xeb\x57\xab\x77\x1f\xae\xc0\xef\xaa\xf7\xd7\x1f\x4b\x94\x79\xdd\x05\x8d\x16\xb8\x84\x7a\x5d\x35\x23\x5a\xb9\x41\x5f\x85\xe6\x0f\x68\x85\xb3\xfb\xa6\x6a\x83\x67\x31\x5e\x72\x8e\xe6\xea\x27\x6b\x31\x32\xb2\xfe\x12\x3c\x28\x83\xed\xf5\x57\x1a\x41\x7f\x36\x96\xe1\x7a\xb3\x69\x4a\xfa\x27\x01\x8d\x08\x61\x33\x0a\xbc\x10\xb3\xae\x1b\xc3\xc0\x75\xad\x75\x9d\x37\xa1\xcf\xb8\xb5\x86\x8b\xb7\x83\x66\xdc\x16\x84\xad\x14\x10\xda\x6c\x93\x06\x19\x38\x70\x0d\x10\xcf\x58\x86\xd0\x15\x9c\x04\xca\x20\x91\xad\xeb\x17\x38\xf6\xa3\x6f\x05\x83\x5f\x28\x62\x07\x5e\xb0\xc7\xac\x61\x22\x69\x1a\x56\x63\xad\x1a\x3f\xa9\xe1\x16\x51\x1b\xf4\xda\x84\x60\xb5\x21\x30\xf7\x31\xa0\x17\x6d\x26\x01\x43\x64\xa6\x8c\x58\x5b\x63\xad\x69\x2c\x68\x3b\x90\xe6\x7a\x0a\x35\x6d\x83\x8b\x98\xfc\xc1\x45\x0b\x07\xed\xc0\x26\x99\xb4\xc3\xf4\xbf\x73\xa1\x53\xd8\x19\xab\x70\x80\x56\xfb\x40\xce\x88\x6e\x41\xf2\x9a\xad\x0d\x8d\xb1\xac\x83\xe1\xfc\x3c\x18\x1e\x74\x00\x1b\x75\x80\x83\x62\xa7\xe8\xe3\x28\x8a\x8c\x59\xe6\x16\x14\x99\xc7\x26\xa7\x57\x14\x20\xb5\xe0\xd5\x86\x36\x05\x71\xe6\xa0\x0e\xbd\x7a\x38\x88\xfa\xe0\xb3\x5b\x43\x2b\x1a\x22\x78\x0d\xd4\x69\x0c\x7b\x8d\x94\xca\x23\x88\xa4\x14\x46\xdf\x29\xcf\x64\x38\x90\x40\xa7\x3c\x3a\xdd\x19\x62\xad\x6b\x74\x31\x90\x9c\x2b\xcd\x11\x5a\x34\xb6\x2a\xf5\x57\xe9\x54\x5e\xd4\xba\xae\x4d\x53\x0e\xcf\x74\x5d\xb1\xbe\xd8\xa4\x67\x01\x2e\x16\x1b\x80\x5a\x98\x61\x96\x72\xc6\xbe\x35\xb2\x40\x31\xe8\x97\x46\xb2\x8b\x4d\xec\x17\x8c\x02\x6e\xc1\x6c\x71\x0e\xd8\xe1\x6e\xb1\x2e\x94\xfc\xbd\x0d\x73\xd8\xf9\x30\x16\xfc\x18\x61\x0b\x72\x8c\x90\x4e\xa6\x80\x99\x17\x7a\x94\x19\x2c\x76\xb7\x58\xa0\xe2\xb2\xe0\x9f\xb6\xba\x0d\xbe\x34\xbf\xe5\x01\xfb\xe2\x5b\x08\xb9\xb1\x14\xe4\x61\x3b\xdb\x43\x59\xe0\x83\x7f\x00\x0a\x19\x87\x39\x50\x28\x74\x63\xe0\xd9\xee\xb3\xa5\x45\x65\x5a\x64\xa6\x45\x5e\x5a\x34\xa0\x13\x11\x08\x22\xcc\x2a\xa4\x86\x28\xe0\x84\x1b\x3d\x2e\x5c\xd8\xd1\x9c\x99\x1e\x53\xd2\xc9\xf2\x53\x38\x36\x05\x1c\xe6\x1d\x7c\x22\x33\x9f\xc8\xcc\xa7\x32\xf3\xb2\x60\xde\x9d\x37\x3f\x6d\xbf\x34\x44\x97\x7e\x2b\x03\x35\x77\x5a\xb9\xbf\xe7\x97\xf6\xec\x9e\xe6\xfb\x89\xad\x28\xf8\xd1\x01\x19\x01\xed\xd1\xa6\x7b\x94\xdb\x41\x7b\x0a\x0f\xe0\x19\x44\xd3\x1d\xb1\xc8\xa2\xce\x44\x75\xe0\x02\x4d\x3b\x84\xbd\x96\x91\xaa\x91\x42\x04\x92\x49\xc9\xf8\x2d\x28\xc1\x0e\x88\x21\xdf\x25\xcd\xd5\x28\x8b\x11\x6c\xe7\xdc\x9c\xae\xd7\x18\x81\x54\xc6\x68\x41\x13\x6f\x7d\xc0\xf8\xb4\xb2\x0e\xfa\xd4\x55\x2f\xcd\xae\x0e\xfa\xea\xd6\xdc\x3c\xfc\x70\xf3\x5b\xfd\xe5\xcd\xd7\x77\xef\x8f\x3b\xef\x61\xda\x07\xea\x96\x6d\x29\x37\x38\x78\x1c\xcb\xc6\x77\x6a\x58\x0d\x33\x90\xa8\xe1\xc9\xb7\x6a\xf6\x06\xa5\x0c\xbc\x22\x93\xa6\xeb\x85\x7e\x04\xed\xa0\x4f\x53\x4c\xc1\x62\xaf\x60\x19\x14\x0e\x2d\x44\xd1\x1e\xbd\xb1\x76\x4a\x53\x2c\x49\xe5\xe6\xf9\xa5\xd8\x6b\x19\x15\x8a\x5e\x91\xd5\x1a\xd7\x74\xe6\x38\x83\x7c\x10\x0d\xa4\x31\x65\x21\x83\x9c\x04\x93\x91\xbc\x0a\x4d\xba\x1f\xd2\xf4\xdc\xa3\x0c\x3a\x21\xd8\xee\x5c\x93\x36\x90\x91\x40\x4b\x6d\x0d\xe1\x76\x90\x2d\x01\xf8\x75\x75\xf9\x69\xf5\xee\xf6\xea\xee\xb8\x3c\x9d\xca\xe9\x6a\x9e\x5c\x13\xec\x6a\x71\xaf\xab\xcb\xab\xdb\xd5\xfa\x9b\x2f\xde\xbf\xd3\xef\x5e\x6d\x36\xff\xfb\x74\xa7\xdf\xea\xf7\xfa\x41\x6f\xf4\xff\xd7\xc7\x30\xd1\x10\x78\x19\x80\xe1\x2c\x50\x43\xa6\xbd\x07\xe1\x1c\xe8\xea\xfa\xcf\xbf\xee\x74\xb3\xb9\xd5\xcd\xe6\xee\x64\xb7\x1f\xf3\xf7\xeb\xec\x13\xb9\x2a\xee\x72\x24\xb7\xf9\x00\x73\xa5\xe7\xcb\x58\x08\xfd\x76\x3d\x47\xab\xd2\x61\x52\x3e\xc8\xfc\x77\xf9\xe8\x07\xdf\x3d\xe3\x2d\x3f\x04\xaa\xdb\xbb\x63\x5c\x97\x3b\xe1\xb3\x78\x6f\xdf\xbe\x3d\x0f\xf6\xc4\xf5\x4c\xa4\x7f\x64\xf8\x39\xbb\xa3\x87\xef\x31\xe6\xe2\x37\x9b\xd5\x79\x96\xc7\xc7\xf3\x4c\xe5\x53\xf3\xe3\x60\xe8\xb8\xf5\xdf\xd2\xf9\xbc\xbc\xff\x92\xcc\x0b\x2a\xbf\x3e\x27\xf1\xe6\x59\x85\xff\x0e\x00\x00\xff\xff\x6e\x72\x6e\xad\x1e\x0a\x00\x00"
 
 func runtimeSyntaxPython3YamlBytes() ([]byte, error) {
        return bindataRead(
index 3be4c7d5cce636156b634cdb1b90edfce8488efe..6994aa03678f2378a269c62e3b759e32933b3e35 100644 (file)
@@ -24,6 +24,7 @@ ft["ruby"] = "# %s"
 ft["d"] = "// %s"
 ft["swift"] = "// %s"
 ft["elm"] = "-- %s"
+ft["tex"] = "% %s"
 
 function onBufferOpen(buf)
     if buf.Settings["commenttype"] == nil then
@@ -38,7 +39,7 @@ end
 function commentLine(bp, lineN)
     local line = bp.Buf:Line(lineN)
     local commentType = bp.Buf.Settings["commenttype"]
-    local commentRegex = "^%s*" .. commentType:gsub("%*", "%*"):gsub("%-", "%-"):gsub("%.", "%."):gsub("%+", "%+"):gsub("%]", "%]"):gsub("%[", "%["):gsub("%%s", "(.*)")
+    local commentRegex = "^%s*" .. commentType:gsub("%%","%%%%"):gsub("%$","%$"):gsub("%)","%)"):gsub("%(","%("):gsub("%?","%?"):gsub("%*", "%*"):gsub("%-", "%-"):gsub("%.", "%."):gsub("%+", "%+"):gsub("%]", "%]"):gsub("%[", "%["):gsub("%%%%s", "(.*)")
     local sel = -bp.Cursor.CurSelection
     local curpos = -bp.Cursor.Loc
     local index = string.find(commentType, "%%s") - 1
@@ -98,7 +99,8 @@ function comment(bp, args)
 end
 
 function trim(s)
-    return (s:gsub("^%s*(.-)%s*$", "%1"))
+    local trimmed = s:gsub("^%s*(.-)%s*$", "%1"):gsub("%%","%%%%")
+    return trimmed
 end
 
 function string.starts(String,Start)