]> git.lizzy.rs Git - micro.git/commitdiff
Add elm as a default comment type in the comment plugin. (#1586)
authorallanderek <allan.clark@gmail.com>
Tue, 24 Mar 2020 14:56:50 +0000 (14:56 +0000)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 14:56:50 +0000 (10:56 -0400)
internal/config/runtime.go
runtime/plugins/comment/comment.lua

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