mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-17 14:27:12 +09:00
Merge pull request #539 from samdmarshall/nim
Adding syntax and linter support for nim-lang
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
// runtime/syntax/mpdconf.micro
|
||||
// runtime/syntax/nanorc.micro
|
||||
// runtime/syntax/nginx.micro
|
||||
// runtime/syntax/nim.micro
|
||||
// runtime/syntax/objc.micro
|
||||
// runtime/syntax/ocaml.micro
|
||||
// runtime/syntax/pascal.micro
|
||||
@@ -590,7 +591,7 @@ func runtimePluginsFtoptionsFtoptionsLua() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _runtimePluginsLinterLinterLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x56\x5d\x6f\xa4\x36\x14\x7d\x9f\x5f\x61\x59\x45\x32\x59\x20\xd5\x3e\x8e\x84\xaa\x6d\xba\x5d\xb5\xda\x34\x51\x93\xb6\x0f\x6d\xb7\xf2\xc0\x85\xf1\xc6\xd8\xc8\x36\xf3\xa1\xd1\xfe\xf7\xea\xda\x0c\x03\x0c\x59\xf5\xa1\x91\x32\x36\xf6\xf5\x39\xd7\xe7\x1e\x6c\x44\x45\x3e\x80\x7b\x68\x9d\xd0\x8a\x51\x29\x94\x03\x43\x63\x92\xe7\x44\x09\x49\xdc\x16\xd4\x8a\x10\x42\xde\x95\xe5\x2c\x26\x21\xce\x74\x10\xaf\x40\x95\xab\xd5\x3d\x7f\x81\x3b\xdd\x34\x5c\x95\x21\x80\x26\xa4\x0f\xcc\xb0\xe9\xe7\x68\x42\xbe\x8d\x57\xab\xaa\x53\x05\x62\x91\xd1\x14\x8b\x3d\xcf\x5d\x67\x7e\x17\xb0\x67\xf1\xfa\x89\xef\x80\x55\x5c\x5a\x08\x33\xa6\x53\x1f\x3d\x20\xeb\x39\x07\x94\xf1\x0c\x46\x4a\x5d\x70\x49\x2a\x47\xf2\x0b\x5c\xf6\x7d\x57\xad\x7f\x14\x12\x9e\x8f\x2d\x4c\xe3\x84\x84\x79\x64\xf6\xc8\xdd\x76\x14\x53\xc2\x4e\x75\x52\x92\x9c\xd0\xdb\x12\x76\xb7\xf8\x40\x47\xf3\x0e\x9a\x96\xe4\x44\xdb\xac\x06\x07\x6a\xc7\xe8\xf3\xfd\xe3\x0f\x3f\xfd\x4a\x03\x91\xa8\xc8\xc3\x13\x4a\x4a\xf7\x42\x95\x7a\x6f\xe9\x45\x58\xfc\x1b\xc1\xff\xf2\xdb\x47\x3a\x8c\x2f\xc0\xbe\xbf\x7f\xec\x41\x51\x83\x1e\x1c\xb7\x9a\x13\x5a\xeb\x19\x2e\xca\xcb\x68\xad\x37\x9d\x90\xa8\x3d\x46\x24\xe4\x44\x87\xe7\x14\x9f\x7b\xf6\x2f\x09\xa1\x51\xb5\x8e\xe4\x9a\x44\x4d\xcf\x31\x06\x39\x57\x75\xe8\x9d\xae\x25\xbb\x60\x44\xe5\x9b\x11\x0e\x48\x0b\x97\x3c\x65\xc7\x17\x13\x95\x1d\x2f\xb6\x50\xbc\x78\xef\x5c\xfa\x27\x9a\xa6\x4a\xa7\x85\x96\x1a\x5d\x87\xf5\xfa\x6f\x3c\xed\xd1\x6d\xb5\x5a\xa4\x6a\x8f\x95\xe4\x2f\x60\x91\x6a\xd4\x3f\x4d\xc1\xb3\x74\xfd\xdd\x92\x18\xcd\xb1\x3d\xe2\xca\xbe\x9d\xad\x5a\x5a\xd1\x1e\xcf\xf2\x0d\x3d\xdc\x96\xee\x5c\xdb\xb9\xb4\xd2\xa6\xe1\x2e\x6f\xb9\xb1\xc0\x37\x12\x7c\x69\x52\x03\xad\x36\xce\xe6\x4a\x5f\xed\xfa\xb5\x1d\x17\xcb\x06\x28\x0a\x5f\x38\xdf\x9c\x68\x5a\xd9\xa3\x72\xfc\x90\x6a\x25\xfd\x36\xd2\x3f\xb8\x94\xa1\x03\x07\x67\xf8\xa2\xc8\xd9\xeb\x3a\x3f\x6c\x3e\x43\xe1\xc4\x0e\xd2\xbb\x45\xfe\x42\x72\x55\x23\xfe\xa1\x30\x9d\xf2\x39\x0c\x43\xff\x7b\x32\xe5\x62\x0a\x65\xe3\xfd\x1e\x9a\x13\x0d\x66\xca\x75\x55\x85\xb7\x20\xf5\xcd\x3e\xfc\x0a\xdf\x14\x13\xe2\x88\x45\x32\x8a\xbf\xc6\xfb\x99\xef\x96\x5d\x8d\x13\x5e\xff\x73\xe7\x44\x53\xcc\x02\x5f\xee\xab\xba\x82\x31\xda\x7c\x95\xc3\x16\x46\xb4\x6e\x99\xc9\x6e\x7b\x93\x0d\xbd\xb1\x35\x31\x0a\x48\x24\x93\xec\x4d\x32\x62\x50\xe5\xec\x38\xd5\xca\x1f\xbd\x3b\x01\xfb\xe1\xf8\x5a\xba\x22\x26\x19\xcc\xcf\x60\x4c\x7c\x98\xbc\x1c\xea\x77\x12\xb8\x79\x27\xe5\x87\xce\x39\x30\xf7\x60\x2d\xaf\xc1\xb2\xd7\x52\xf1\xfb\x0a\x84\x09\x29\x9a\x32\x21\xdc\xd4\x36\x09\x32\x85\xb7\x66\x7e\x6d\x78\x86\x19\x7c\x40\x88\x57\x3e\xf4\x67\xbd\x79\x6a\xf9\x5e\xb1\x11\x1e\xa5\xfd\x7f\x7f\x65\x69\xf5\xfe\x20\x50\xbf\x33\xf7\x84\x70\x2e\x17\xc6\xb2\xf0\x2a\xbf\xb2\xe2\x72\x53\x60\x0d\x2c\xc9\x89\x6d\xe5\x68\x11\xfd\x4b\xd1\x3e\xbd\x10\x66\xa0\x86\x03\xc9\xc7\x28\xeb\xda\x76\x1b\x46\xa3\xc8\x7b\x96\x65\x59\x1a\xd3\x78\x18\xf4\xaf\x0c\x8b\xca\x37\xe3\xc1\x26\x44\xe2\x98\xc7\xae\xb4\x21\xff\x24\xde\x06\x42\x11\xd1\x72\x61\xbc\x38\x60\x63\x52\xea\xa1\x5c\x69\x4a\x9e\x8d\x68\xc8\x7e\x2b\x1c\xd8\x96\x17\x30\x36\x1a\x5e\x96\xd8\xac\x1b\xee\x8a\x2d\xa3\x9f\x22\x7b\x83\x1c\x91\xbd\xf9\x66\x74\xee\x89\x8a\x58\x67\x84\xaa\xb3\x4a\xa8\xd2\xb3\x24\x61\x5b\x33\xe7\x4c\x6f\x62\x2f\x20\x24\xa4\xb1\x35\xaa\x14\x10\x02\xd3\x18\x62\xb2\x5a\x54\x64\xc3\x2d\x28\xde\x00\xbb\xbe\x93\xfc\xb7\xcc\x30\x8f\x1c\x0b\x09\x4c\x3d\x34\xb1\xcf\xe0\x3f\xa7\x55\xd7\x6c\xc0\xf8\x44\x62\x9f\x62\x42\xde\x4e\x53\x39\x5f\xca\xe3\xfe\xb5\xad\x43\xf1\xad\x33\x09\xb1\xd0\xc6\x93\xba\xdb\x4e\xe2\x87\xcb\xe9\xcb\x82\x1b\x18\x65\x7f\x7e\x8a\xec\xdf\xbe\xc8\xc1\x15\x6c\x00\xc0\xe2\x02\x2f\xb6\x58\x5a\xeb\xcc\xba\x0e\xaa\xf5\x92\x8f\xca\xeb\xf0\x8a\xc9\x84\xb2\x60\x1c\x0b\x84\x89\x5f\x39\xfd\xae\x30\xe0\x3a\xa3\xfa\x8c\x66\x1b\x98\xca\x39\xca\x14\x07\x2f\x75\xf3\x3e\x0c\x55\xa5\x2c\xbb\xb9\x8d\x59\x76\x13\xa3\x27\xa3\xb7\xbd\x53\x7a\x12\x5c\xe6\x29\xfe\x0d\x00\x00\xff\xff\x00\xb2\xec\x6a\x8e\x0a\x00\x00")
|
||||
var _runtimePluginsLinterLinterLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x56\x51\x6f\xe4\x26\x10\x7e\xdf\x5f\x31\x42\xb5\x84\x13\xdb\x57\xdd\xe3\x4a\x56\x75\x4d\xef\x4e\xad\x2e\x4d\xd4\xa4\xed\x43\xdb\xab\x58\x7b\xec\x25\xc1\x60\x01\xde\xcd\x6a\x75\xff\xbd\x02\x1c\xaf\xed\xf5\x9e\x5a\xa9\x91\xb2\x60\x18\xbe\x6f\xf8\x66\x60\xe0\x15\x7c\x44\x7b\xd7\x5a\xae\x24\x25\x82\x4b\x8b\x9a\xc4\x90\xe7\x20\xb9\x00\xbb\x45\xb9\x02\x00\x78\x57\x96\x33\x9b\x04\xac\xee\x30\x5e\xa1\x2c\x57\xab\x5b\xf6\x8c\x37\xaa\x69\x98\x2c\x83\x01\x49\xa0\x37\xcc\x5c\xd3\xcf\x91\x04\xbe\x8d\x57\xab\xaa\x93\x85\xc3\x82\xd1\x14\x8d\x3d\xcf\x4d\xa7\x7f\xe3\xb8\xa7\xf1\xfa\x81\xed\x90\x56\x4c\x18\x0c\x33\xba\x93\x9f\x3c\x20\xed\x39\x07\x94\xf1\x8c\xb3\x14\xaa\x60\x02\x2a\x0b\xf9\x09\x2e\xfb\xbe\xab\xd6\x1f\xb8\xc0\xc7\x43\x8b\x53\x3b\x2e\x70\x6e\x99\xdd\x33\xbb\x1d\xd9\x94\xb8\x93\x9d\x10\x90\x03\x79\x53\xe2\xee\x8d\xfb\x20\xa3\x79\x8b\x4d\x0b\x39\x28\x93\xd5\x68\x51\xee\x28\x79\xbc\xbd\xff\xe1\xc7\x5f\x48\x20\xe2\x15\xdc\x3d\x38\x49\xc9\x9e\xcb\x52\xed\x0d\x39\x09\xeb\xfe\x46\xf0\x3f\xff\xfa\x89\x0c\xe3\x0b\xb0\xef\x6f\xef\x7b\x50\xa7\x41\x0f\xee\xb6\x9a\x03\xa9\xd5\x0c\xd7\xc9\x4b\x49\xad\x36\x1d\x17\x4e\x7b\x67\x91\xc0\x91\x0c\xdf\xa9\xfb\xee\xd9\xbf\x24\x40\xa2\x6a\x1d\x89\x35\x44\x4d\xcf\x31\x06\x79\x8d\xea\xd0\x3b\x9e\x4b\x76\xc2\x88\xca\xeb\x11\x0e\x0a\x83\x27\x3f\x45\xc7\x16\x1d\x15\x1d\x2b\xb6\x58\x3c\xfb\xdc\x39\xf5\x8f\x24\x4d\xa5\x4a\x0b\x25\x94\xcb\x3a\x17\xaf\x7f\xc7\xd3\x1e\xec\x56\xc9\x45\xaa\xf6\x50\x09\xf6\x8c\xc6\x51\x8d\xfa\xc7\x29\x78\x96\xae\xbf\x5b\x12\xa3\x39\xb4\x07\xb7\xb2\x6f\x67\xab\x96\x56\xb4\x87\x57\xf9\x86\x9e\xdb\x96\xea\x6c\xdb\xd9\xb4\x52\xba\x61\x36\x6f\x99\x36\xc8\x36\x02\x7d\x68\x52\x8d\xad\xd2\xd6\xe4\x52\x9d\xed\xfa\xd2\x8e\x8b\xe5\x04\x28\x0a\x1f\x38\xdf\x1c\x49\x5a\x99\x83\xb4\xec\x25\x55\x52\xf8\x6d\xa4\xbf\x33\x21\x42\x07\x5f\xac\x66\x8b\x22\x67\x97\x75\x36\x7b\x5e\xd9\x45\x66\xb3\xe7\xb6\xf2\xe4\x2f\x85\xee\xa4\xa7\xf7\xd6\xc5\x7f\xe5\xb8\xdb\x3c\x61\x61\xf9\x0e\xd3\x9b\x45\xa6\x42\x30\x59\x4f\x89\x86\xa1\xff\x7d\xc3\xe5\xa2\x0b\x65\xe3\xcf\x54\x68\x8e\x24\x24\x6c\xae\xaa\x2a\x9c\xb4\xd4\x37\xfb\xf0\xcb\x7d\x33\x55\x21\xa2\x91\x88\xe2\xaf\xf1\x3e\xb1\xdd\xf2\xc9\x71\x13\x5e\xe6\xd7\xce\x91\xa4\xce\x0b\x77\x81\x9c\xe5\x0e\x6a\xad\xf4\x57\x39\x4c\xa1\x79\xbb\x1c\xd1\x27\xb3\xed\x13\x79\xe8\x8d\xd3\xdf\x59\x21\x44\x22\xc9\xae\x93\x4b\x0c\x92\x37\x8b\xd0\x6e\x3c\x81\xbe\x39\x92\xe1\x2a\x48\x53\xc1\x8d\xfd\xd0\x09\xe1\xae\x18\x13\x86\x8c\x2d\x55\x67\x43\xdf\xf9\x61\xd6\x41\xe8\x93\x2f\x59\x24\x12\x88\xca\xeb\x6c\xe4\x87\x2c\x67\xa5\x43\x49\x5f\x66\x76\x1c\xf7\xc3\x55\xbd\x54\x0e\x27\xee\xce\xeb\x8d\xdb\xde\x30\x79\x2a\x60\x37\x02\x99\x7e\x27\xc4\xc7\xce\x5a\xd4\xb7\x68\x0c\xab\xd1\xd0\x4b\xae\x78\x11\x02\x61\x02\x45\x53\x26\xc0\x74\x6d\x92\x10\xae\x70\x43\xcc\x4b\xa4\x67\x98\xc1\x07\x84\x78\xe5\x4d\x7f\x52\x9b\x87\x96\xed\x25\x1d\xe1\x11\xd2\xff\xf7\xe5\x59\xc9\xf7\x2f\xdc\x29\xf9\xca\x3d\x21\x9c\xcb\xe5\x6c\x69\xb8\xb6\x2e\xac\x38\x55\x45\x97\x0b\x06\x72\x30\xad\x18\x2d\x22\x7f\x4a\xd2\xbb\x17\xcc\x34\xd6\xf8\x02\xf9\x18\x65\x5d\x9b\x6e\x43\x49\x14\xf9\xb3\x43\xb3\x2c\x8d\x49\x3c\x0c\xfa\xa3\x4b\xa3\xf2\x7a\x3c\xd8\x04\x4b\x37\xe6\xb1\x2b\xa5\xe1\xef\xc4\xa7\x23\x97\xc0\x5b\xc6\xb5\x17\x07\x4d\x0c\xa5\x1a\xc2\x95\xa6\xf0\xa8\x79\x03\xfb\x2d\xb7\x68\x5a\x56\xe0\x38\x2b\xdd\xc3\xc0\x35\xeb\x86\xd9\x62\x4b\xc9\xe7\xc8\x5c\x39\x8e\xc8\x5c\x7d\x33\xba\xe3\x79\x05\xc6\x6a\x2e\xeb\xac\xe2\xb2\xf4\x2c\x49\xd8\xd6\x2c\x73\x60\xf2\xea\xf0\x02\x62\x02\x8d\xa9\x9d\x4a\x01\x21\x30\x8d\x21\x26\xab\x79\x05\x1b\x66\x50\xb2\x06\xe9\x79\xfd\xf5\xef\xb6\x61\xde\x71\x2c\x38\x30\xcd\xa1\x49\xfa\x0c\xf9\x67\x95\xec\x9a\x0d\x6a\xef\x48\xec\x5d\x4c\xe0\xed\xd4\x95\xd7\x07\xc8\xb8\x7f\x9e\xd6\x21\xf8\xc6\xea\x04\x0c\xb6\xf1\x24\xee\xa6\x13\xee\x91\x76\xfc\xb2\x90\x0d\x94\xd0\x3f\x3e\x47\xe6\x2f\x1f\xe4\x90\x15\x74\x00\x70\xc1\x45\x56\x6c\x5d\x68\x8d\xd5\xeb\x3a\xa8\xd6\x4b\x3e\x0a\xaf\x75\xe5\x34\xe3\xd2\xa0\xb6\x34\x10\x26\x7e\xe5\xf4\x0d\xa5\xd1\x76\x5a\xf6\x1e\xcd\x36\x30\x95\x73\xe4\xa9\x1b\x3c\xc5\xcd\xe7\x61\x88\x2a\xa1\xd9\xd5\x9b\x98\x66\x57\xb1\xcb\xc9\xe8\x6d\x9f\x29\x3d\x89\x5b\xe6\x29\xfe\x09\x00\x00\xff\xff\xe6\x7e\x28\x6b\x7a\x0b\x00\x00")
|
||||
|
||||
func runtimePluginsLinterLinterLuaBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -1790,6 +1791,26 @@ func runtimeSyntaxNginxMicro() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _runtimeSyntaxNimMicro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x84\x54\x61\x73\xdc\x34\x13\xfe\xde\x5f\x71\xaf\xdb\x97\xdc\x25\xe4\x68\xd2\x4e\x28\x81\x12\xa0\x4d\x99\xce\x00\x9d\x21\x65\x26\x83\xe5\xc2\x5a\x5a\x9f\xd5\xc8\x92\x91\x56\xc9\x5d\xbb\xe5\xb7\x33\x6b\xfb\x92\x50\x32\xd3\x0f\xb7\xd2\x5a\x7b\xd2\xee\xf3\x3c\xbb\x69\xe3\x09\xd6\xb3\xc2\xdb\xae\x98\x15\x6a\xe9\x6d\xf7\xa0\xb8\x77\x4f\x07\x17\xe2\xac\x8f\xd8\xc7\xa0\x67\x45\xa9\xde\x2b\xae\x54\x3d\x07\x0a\x1d\x3b\x4b\x9c\x36\x1d\x5b\x83\x9e\x58\x83\x73\xec\x2e\xc1\x65\xe4\x64\x0d\x62\xd3\xa0\x26\xf6\xe1\x96\xd3\x43\x84\x8e\x57\xe8\x31\x5a\x3d\x3a\x5d\x30\xd9\x21\xd3\xa6\x47\x76\x48\x7c\x09\x91\x75\xf0\x89\x38\x62\xca\x8e\x58\x5e\xe6\x0e\xa9\x0d\x86\x2d\x61\x04\x0a\x43\xc4\x25\x46\xc2\xc8\x1d\xe8\x18\x98\xb0\xeb\x1d\x10\x72\x63\xd1\x19\x46\x9f\xbb\x71\xd7\x84\x28\x37\x3a\xa8\xd1\xb1\xbf\x28\x61\xff\xdd\xf7\xfb\xbf\x57\x7b\x0c\xce\x42\x62\x1f\x86\x75\xa1\xea\x52\x7d\x50\x5c\x5d\x97\x9c\x08\x08\x3b\xf4\x34\x2b\xa4\x5c\x63\x22\x83\x37\x0c\x89\x21\x75\x2c\xe5\x5b\xcd\xb5\xf5\x86\x6b\x17\xf4\x05\xd7\x11\xe1\x82\x35\x24\x14\x43\x92\xa0\xc6\x9e\xa6\x52\x74\xf0\x64\x7d\xc6\x5b\x79\x1b\x6c\xc4\xda\xa4\x21\x1a\x59\xc9\x7a\x4d\x6c\xec\x25\x9b\xc0\xe8\x6c\xc3\xe8\x12\x32\xfa\xb1\x1c\xc6\xf5\x70\x21\xae\xfb\x10\x89\x1b\xeb\xc1\xb9\x8d\xd4\xc7\x4d\x0c\x1d\x37\xd9\xeb\x2d\xb2\x6c\x1b\xb6\xdd\x10\x67\x3d\x5b\xaf\x5d\x36\xc8\xd6\x13\xc6\x06\x34\xb2\x4d\x6c\x93\x0f\x74\x83\xa7\x20\x3f\x22\x39\x21\xdd\xd9\xb5\xf5\x42\x0e\x7b\xeb\x58\x62\x7d\x20\xeb\x39\xd4\x6f\x85\xc8\xd0\x70\x88\x1c\xf2\x44\x4f\x4f\x91\x23\xd8\x84\x1c\xb1\xe1\x88\x94\xa3\xe7\xd4\x3a\x4e\x6d\x64\x81\xd2\xea\x1b\x8a\x28\x6e\x98\x72\xbf\x25\x3d\x27\xeb\x57\x03\xed\x57\x2d\x7a\xbe\x6a\xad\x43\xbe\xb2\xd4\x0e\x46\x9e\x58\x87\xc8\x1b\x61\x73\xa1\xea\xe2\x4e\x7e\x0c\xf6\x11\x35\x10\x1a\xf6\xe1\xcc\x1a\x3c\x1d\xf5\x36\xa0\x1f\xb3\x96\x12\x0d\x5e\x6f\xc3\x25\xc6\x68\x0d\x0e\xc9\x8f\x82\xeb\x7a\xeb\xf0\xb5\xed\x90\x7d\xf8\x75\xcc\x1f\xf4\x46\x3b\xab\x47\xa8\x39\xb5\xe0\x5c\xb8\xe2\x3e\x47\x14\x0d\xfc\x12\xce\x08\xf4\xc5\x8b\x08\x1d\x32\xc6\x28\x3c\x00\x81\xe3\x2b\x88\x5e\x2a\x6a\xad\x27\x76\xd6\xe3\x60\x20\x9e\x69\xf0\xa7\xde\x0c\x6f\x65\x42\xf3\x63\xa0\xc0\xd9\xc7\xe0\x1c\xdb\xae\x43\x63\x05\x1c\xdd\xa2\xbe\x48\x5c\x87\xec\x4d\x7a\x36\x3a\x92\x6e\xe3\xc2\xd5\xe4\x7a\xeb\xa6\x1d\xa4\x84\x51\xd0\x0d\x3e\x6d\xdf\x4d\xc3\xc3\x89\x43\x4f\xb6\xb3\xef\x86\x43\xee\x81\x08\xa3\x4f\x43\x93\x8a\x06\xb9\xcf\xa9\xe5\x3e\xf4\xbc\x72\xa1\x06\xc7\x7d\x84\x55\x07\xa2\x2e\x8c\x56\x70\x05\xc7\xb5\xa5\x64\xdf\x21\x5f\x06\x07\x24\xac\xf8\xf0\x1c\xb5\xe3\x16\xc1\x60\x14\x5d\x85\xae\x77\x48\x78\x36\x00\xbb\x45\x51\xea\xbd\xe0\x1e\x52\x7a\x36\xd8\x9f\x18\x3b\x4b\x93\x20\xf5\x76\xed\xfb\x69\x17\xea\xb7\x9a\x75\x30\xb8\x42\x3f\x5c\x6f\xbd\x48\xec\x8c\x3a\x51\x2f\x19\x6c\x04\xc3\x44\x71\xda\x5d\x42\x84\xb8\x4a\x53\x23\x68\xc6\xb5\x94\xc6\xf5\x46\x87\x7e\xc3\xf5\x46\x14\x98\xfd\x58\xb5\xbe\x40\xc3\xd9\x0f\xa0\xa2\x61\xb3\xf1\xce\xd6\xac\x8d\x3c\x43\x6d\x44\x30\xbc\xd2\x09\x1a\x9c\x3c\xd1\xc2\x2a\x4b\x43\x4a\x53\xa7\xdb\xba\xb8\x5b\x7b\xe5\x53\xb5\xa7\xf6\xd5\xee\x17\xdf\x7c\xfb\x9d\x7a\xf0\xf7\x67\xff\x57\xfc\x3f\x75\xa2\xde\xa8\xe5\xb1\x52\xd5\xde\xcd\x38\xe9\x51\x5b\x70\xb3\x42\xbd\x57\xcb\x61\xc0\xaa\x0f\xb2\x94\x5b\xaf\x92\x65\xbe\xf5\x16\xc5\xac\xf8\xba\x98\x15\x9f\x17\xb3\xe2\xcf\x3b\x67\xd2\x52\x2d\xaf\xbf\x4b\x1b\x0d\x6d\x20\x8a\xd3\x62\xac\xa7\x27\x62\x0e\x8e\xc4\x3e\x3a\x14\x7b\xf4\x98\xb3\x9c\xe5\xe1\x30\x8f\xa7\x79\x3c\xce\xe3\x79\xe3\x02\xd0\x68\x1f\x1d\x8e\xeb\xd1\x63\xae\x43\x70\xac\x5b\x88\xe3\x1c\x4a\x14\x45\xde\x7a\x5a\x21\x46\xd8\x70\xe8\xd1\x8f\xbb\x84\x7f\x5d\x53\x34\x76\xf9\x34\x32\x92\x0c\xf7\x60\x0d\x43\xa6\xc0\x3a\xb5\x32\x9e\x22\xf8\x15\x0e\x23\xe6\x35\x67\x2f\x85\x98\x61\x2a\x18\x4c\x7a\x40\xfc\x5f\x25\xee\x94\xf6\x65\x35\x7f\xc2\x07\x47\xfc\xe8\x90\x8f\x1e\x2f\x4e\x54\x5d\xc8\xe7\xfc\xdb\x9d\x9f\x9b\x17\xd5\x7c\xf8\xc2\x07\x87\x4f\xae\xbf\x9a\xe7\xd5\xad\x9b\x87\x11\x01\x9e\x96\x3e\x77\x35\x46\xc1\xb1\x7c\xb8\xff\x55\xb5\x77\xc3\xf7\x1d\x21\x0f\xcb\xf5\x79\x35\xc4\x89\xf9\xe3\x93\xd1\x41\x3f\x93\xc8\x2f\x07\xf3\xe9\xf0\xfa\x87\xaa\x7c\x78\x20\xbf\x4f\xc5\x8e\xcf\xcf\xe7\x6a\x79\xb2\x98\x52\x59\x9c\x94\x78\x5a\x95\x7b\x6a\xff\x3f\x19\x7e\x7c\xcf\xc8\xe1\xac\x28\xe6\x4a\x2d\xb9\x7c\x53\x54\x8b\xdd\x82\x77\x26\x6f\xa7\x5a\xec\xee\xdc\xfa\x53\x37\x69\xbe\x3c\x4e\x3d\x68\x3c\xae\xaa\xdd\xfb\xcb\xdd\x07\xc5\xec\xa3\x88\x44\x10\xe9\x69\xa1\xee\xab\xb2\x98\xa1\x37\x4f\x0b\x55\xa9\xfb\x37\x5c\x06\x13\x66\xc5\xfc\xf5\xab\xe7\xaf\xf8\xc5\xcb\xf3\x9f\x4f\xf9\xfc\xfc\x7c\x71\x7c\x52\xdc\xfb\x27\x00\x00\xff\xff\x3b\x43\x2a\x7f\x85\x08\x00\x00")
|
||||
|
||||
func runtimeSyntaxNimMicroBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
_runtimeSyntaxNimMicro,
|
||||
"runtime/syntax/nim.micro",
|
||||
)
|
||||
}
|
||||
|
||||
func runtimeSyntaxNimMicro() (*asset, error) {
|
||||
bytes, err := runtimeSyntaxNimMicroBytes()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "runtime/syntax/nim.micro", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _runtimeSyntaxObjcMicro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x74\x54\xdf\x73\xdb\x36\x0c\x7e\xcf\x5f\xa1\xd1\xdd\x2a\xb9\xb3\xdd\xfd\xb8\xde\x9a\xb5\x71\xd2\x5c\xba\xf5\x2e\x4b\x76\xcb\xfa\xb0\x8a\x8a\x8e\xa2\x20\x9b\x0d\x45\x6a\x24\x18\xc7\x19\xfa\xbf\xef\x28\xdb\x4d\x9c\x38\x2f\x36\x09\x7d\x00\x3e\xe2\x03\x30\x18\x24\xbf\x83\x83\x44\xf9\x44\x98\x04\x6e\x44\xdb\x69\x48\x1a\xeb\x92\xf3\xea\xf3\xe8\x78\xbc\x37\x18\xec\xf9\xa5\x41\x71\x93\xb0\xf3\xea\x33\x48\x54\xd7\x30\x3a\x66\x09\xe3\xe3\xb4\xa5\xb6\xa5\x79\xf6\x8c\xed\xed\x49\xab\xad\x4b\x70\xd9\x41\xc2\x78\x95\x36\xda\x0a\xa4\xda\x86\x4a\x03\x1d\xff\xf6\xbe\xbf\xaa\x9a\x2a\x6b\x35\xbd\x3b\x3f\x3f\xa5\x77\xd6\x6a\x10\x86\xe4\x5c\x38\x52\x06\xc9\xcf\xad\x43\xd2\xd6\xcc\xc8\xab\x5b\xb0\x0d\x81\x09\x2d\x5d\x5b\x55\x93\x47\x81\x4a\x92\xb4\xc6\x23\x79\x74\x41\x22\x05\xa3\xac\xa1\x98\xb1\x86\x86\xe0\x06\xc1\x19\x4a\x83\xc9\xa6\x5e\xcd\x0c\xd4\xa4\x8c\x56\x06\xe8\x58\x0b\xef\xe9\xe2\xe4\x94\x3e\xfc\xf1\x27\x9d\x5d\xa4\x1f\xb3\xe9\x07\x83\x30\x03\x97\xf1\x8a\x3d\x64\x9e\xfa\x69\x4c\x9f\x51\x9a\x86\x72\x9a\x4d\x95\xc1\xf4\x17\xfa\xe1\x15\xfd\xf4\x23\xbd\xfa\x99\x3a\x74\x59\x96\x95\xf8\xd8\x33\x3f\x1a\x7d\x2a\x56\x3f\xf9\xbe\xd0\x26\xb4\xfb\x45\x31\xdc\x8d\x13\xa3\xdb\x97\xa3\xd7\x65\x31\xdc\x15\xa8\x56\xbe\x13\x28\xe7\x65\x2e\x46\xb7\x47\xa3\x4f\xf7\x91\x6b\x68\xac\x07\xb4\x60\x30\x61\x65\x29\x10\x9d\xaa\x02\x42\x59\xe6\xf9\xbe\xef\x84\x84\x3e\x73\xca\xd3\xfc\x32\x2b\x86\x3c\xe3\x19\x8b\xc0\x54\xe8\x55\x65\x84\x6f\xa9\x0a\x4a\xa3\x32\x34\x57\x75\x0d\x66\x53\xac\x4e\xc8\x2b\xa8\xc9\x81\x47\xa7\x24\x92\x8f\x82\xaf\xcb\x6c\x1b\x5a\x80\xb8\xca\xca\xb2\x8f\x16\x4c\xf0\x50\xc7\xe3\x99\x35\x26\x68\xdd\x1f\x83\xd6\xa2\xd2\xd0\x23\x2a\x6d\xe5\xd5\xea\xb4\x4a\x36\x1e\xb2\xc7\x0f\xe0\x55\x2a\x7b\x89\x8c\x68\xa1\x67\x4f\x08\x6d\xa7\x05\x02\x75\xa1\xd2\x4a\x52\xe7\x2c\x82\x44\xa8\xa9\x73\xea\x3a\x7e\x88\x7c\x22\x9e\x70\xae\x3c\x35\x4e\x81\xa9\xe9\x5a\x39\x0c\x42\x53\xf0\xca\xcc\xa8\x0d\x18\x99\xd0\xb5\xd5\x02\x95\x06\x72\x30\x53\x1e\xc1\x11\xdc\x74\x5a\x49\x85\xf7\xe4\xdf\xe6\xd3\x58\x47\xaa\xa1\xc5\x3c\xba\xd5\x96\x40\x7b\x20\x29\x3c\x50\x0d\x8d\x08\x1a\xc9\x2f\x14\xca\xf9\x93\x01\xd0\x2d\x09\xe7\xce\x2e\x48\x46\x25\xc9\x76\xe0\x04\x5a\x47\x06\x16\x54\x83\x06\x84\x27\x7d\x67\x16\x6d\xec\x74\x54\x26\x00\x55\x0e\xc4\x15\x39\xc0\xe0\xcc\x93\x2e\xc6\x1a\x81\xb6\x55\x92\xd6\x7f\x0e\x44\x6d\x8d\x5e\xf6\x87\x85\x53\x08\x71\x6a\xe2\x68\x45\x05\x49\xf8\x38\x22\xbb\xc3\x1d\xa6\x60\xa4\xad\x81\x62\x45\x95\x41\x70\x4d\x94\x44\xc5\xbd\x10\x11\xa2\xef\x87\x95\x62\x1e\x34\xc8\xf8\xac\x28\x90\x95\x56\x93\x5f\x1a\x39\x77\xd6\xa8\x5b\xa8\x29\x56\x61\xf5\xfe\x46\x19\xa1\xf5\x32\xe2\x3a\x70\xb8\x24\xdb\xc5\x30\x42\x93\x83\x7f\x83\x72\x71\x5a\xdb\x2e\xce\xbf\x08\x68\x1d\x68\x10\x1e\x3a\x6b\x75\xf6\xb5\xe5\x3b\x07\x9d\xb3\x32\x61\x97\xf7\x9b\x7c\x70\xff\x92\xd6\xd0\xc4\x26\x56\x46\xea\x50\xc3\x26\x64\x1a\x0c\xa9\xc6\x4c\xb3\x7e\x4f\x98\x5a\x35\x04\x3a\x55\x0d\x79\xc8\x7a\x99\x85\x33\xb1\x61\xc0\xb9\xfe\x29\x62\xd6\x8a\x6c\x3c\x7c\xc6\x1e\x66\x2e\xcb\xfc\x6e\x1c\xcb\xbb\x61\xec\x40\x2a\xa1\x1f\x30\xcb\x07\x74\x58\x6c\xb1\x5b\xd3\x59\xb3\xcb\xb6\xc0\x9c\xd1\x9b\x62\x3c\xe4\x93\x69\x7e\x40\x9c\x6d\x39\x3e\xdb\x35\xf6\xf9\x78\xff\xd7\xef\x5f\x0c\xe9\xed\x37\xfc\x5b\x9e\xf3\xa2\x60\x09\x7b\xc3\x12\x76\xc0\x12\x36\x61\x09\x1b\xb1\x84\x7d\xc7\x92\x8d\x67\xbf\x39\x85\xc1\xb1\x09\x6d\x05\xae\xef\x9a\xd1\x34\x9b\xe6\x2f\x47\xaf\x8b\x17\xbc\x8a\xfb\xbc\xe2\xeb\xdb\x78\xcb\xfa\xf2\x26\x5e\x8f\x46\xef\x7b\xcb\x83\x78\x09\x3b\xe4\x79\xca\xf9\x98\xf2\x4b\x5e\x14\xd9\x90\x47\x22\x87\xfc\xbf\x8d\xed\x4b\xb4\x7d\xe9\x6d\xe9\xc6\x96\x45\x5b\xf6\x38\x14\xaf\xde\x44\x48\x7e\xc9\x0f\x22\xe2\x60\x57\xba\xd8\xed\x4a\xd3\xd9\xc7\xd3\x53\xfa\xe7\xe4\x82\xce\xce\xe9\xef\xbf\x3e\x9e\x10\xba\x00\xf4\xfe\xe8\xf4\xe2\x84\x1a\x11\xc7\xd5\x83\x6e\xb2\xdd\x11\xae\x36\x0b\x7a\x6b\x3f\x7f\x2d\x51\x5c\x7d\x66\x96\x30\xce\x36\x84\x59\xa4\xc3\xfa\x47\x3c\xb6\x3d\x1f\x3f\x67\x7b\x77\x75\x6e\x57\xfa\x4c\x26\x77\xcb\x6e\x63\xf4\x28\x1c\xbe\x65\x13\x3e\x64\x09\x98\xfa\x2d\xe3\xc3\x49\x74\xfd\x3f\x00\x00\xff\xff\x55\x14\x81\x2c\x84\x07\x00\x00")
|
||||
|
||||
func runtimeSyntaxObjcMicroBytes() ([]byte, error) {
|
||||
@@ -2782,6 +2803,7 @@ var _bindata = map[string]func() (*asset, error){
|
||||
"runtime/syntax/mpdconf.micro": runtimeSyntaxMpdconfMicro,
|
||||
"runtime/syntax/nanorc.micro": runtimeSyntaxNanorcMicro,
|
||||
"runtime/syntax/nginx.micro": runtimeSyntaxNginxMicro,
|
||||
"runtime/syntax/nim.micro": runtimeSyntaxNimMicro,
|
||||
"runtime/syntax/objc.micro": runtimeSyntaxObjcMicro,
|
||||
"runtime/syntax/ocaml.micro": runtimeSyntaxOcamlMicro,
|
||||
"runtime/syntax/pascal.micro": runtimeSyntaxPascalMicro,
|
||||
@@ -2961,6 +2983,7 @@ var _bintree = &bintree{nil, map[string]*bintree{
|
||||
"mpdconf.micro": &bintree{runtimeSyntaxMpdconfMicro, map[string]*bintree{}},
|
||||
"nanorc.micro": &bintree{runtimeSyntaxNanorcMicro, map[string]*bintree{}},
|
||||
"nginx.micro": &bintree{runtimeSyntaxNginxMicro, map[string]*bintree{}},
|
||||
"nim.micro": &bintree{runtimeSyntaxNimMicro, map[string]*bintree{}},
|
||||
"objc.micro": &bintree{runtimeSyntaxObjcMicro, map[string]*bintree{}},
|
||||
"ocaml.micro": &bintree{runtimeSyntaxOcamlMicro, map[string]*bintree{}},
|
||||
"pascal.micro": &bintree{runtimeSyntaxPascalMicro, map[string]*bintree{}},
|
||||
|
||||
@@ -29,6 +29,8 @@ function runLinter()
|
||||
lint("pylint", "pylint", {"--output-format=parseable", "--reports=no", file}, "%f:%l: %m")
|
||||
elseif ft == "c" then
|
||||
lint("gcc", "gcc", {"-fsyntax-only", "-Wall", "-Wextra", file}, "%f:%l:%d+:.+: %m")
|
||||
elseif ft == "swift" then
|
||||
lint("switfc", "xcrun", {"swiftc", file}, "%f:%l:%d+:.+: %m")
|
||||
elseif ft == "Objective-C" then
|
||||
lint("clang", "xcrun", {"clang", "-fsyntax-only", "-Wall", "-Wextra", file}, "%f:%l:%d+:.+: %m")
|
||||
elseif ft == "d" then
|
||||
@@ -37,6 +39,8 @@ function runLinter()
|
||||
lint("javac", "javac", {"-d", temp, file}, "%f:%l: error: %m")
|
||||
elseif ft == "javascript" then
|
||||
lint("jshint", "jshint", {file}, "%f: line %l,.+, %m")
|
||||
elseif ft == "nim" then
|
||||
lint("nim", "nim", {"check", "--listFullPaths", "--stdout", "--hints:off", file}, "%f.%l, %d+. %m")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
28
runtime/syntax/nim.micro
Normal file
28
runtime/syntax/nim.micro
Normal file
@@ -0,0 +1,28 @@
|
||||
syntax "nim" "\.nim$"
|
||||
|
||||
color preproc "[\{\|]\b(atom|lit|sym|ident|call|lvalue|sideeffect|nosideeffect|param|genericparam|module|type|let|var|const|result|proc|method|iterator|converter|macro|template|field|enumfield|forvar|label|nk[a-zA-Z]+|alias|noalias)\b[\}\|]"
|
||||
|
||||
color statement "\b(addr|and|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|div|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|in|include|interface|is|isnot|iterator|let|macro|method|mixin|mod|nil|not|notin|object|of|or|out|proc|ptr|raise|ref|return|shl|shr|static|template|try|tuple|type|using|var|when|while|with|without|xor|yield)\b"
|
||||
color statement "\b(deprecated|noSideEffect|constructor|destructor|override|procvar|compileTime|noReturn|acyclic|final|shallow|pure|asmNoStackFrame|error|fatal|warning|hint|line|linearScanEnd|computedGoto|unroll|immediate|checks|boundsChecks|overflowChecks|nilChecks|assertations|warnings|hints|optimization|patterns|callconv|push|pop|global|pragma|experimental|bitsize|volatile|noDecl|header|incompleteStruct|compile|link|passC|passL|emit|importc|importcpp|importobjc|codegenDecl|injectStmt|intdefine|strdefine|varargs|exportc|extern|bycopy|byref|union|packed|unchecked|dynlib|cdecl|thread|gcsafe|threadvar|guard|locks|compileTime)\b"
|
||||
color statement "[=\+\-\*/<>@\$~&%\|!\?\^\.:\\]+"
|
||||
|
||||
color special "\{\." "\.\}" "\[\." "\.\]" "\(\." "\.\)" ";" "," "`"
|
||||
|
||||
color statement "\.\."
|
||||
|
||||
color type "\b(int|cint|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float|float32|float64|bool|char|enum|string|cstring|array|openarray|seq|varargs|tuple|object|set|void|auto|cshort|range|nil|T|untyped|typedesc)\b"
|
||||
|
||||
color type "'[iI](8|16|32|64)?\b" "'[uU](8|16|32|64)?\b" "'[fF](32|64|128)?\b" "'[dD]\b"
|
||||
|
||||
color constant.number "\b[0-9]+\b"
|
||||
color constant.number "\b0[xX][0-9][0-9_]+\b"
|
||||
color constant.number "\b0[ocC][0-7][0-7_]+\b"
|
||||
color constant.number "\b0[bB][01][01_]+\b"
|
||||
color constant.number "\b[0-9_]((\.?)[0-9_]+)?[eE][+\-][0-9][0-9_]+\b"
|
||||
|
||||
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
|
||||
color comment "[[:space:]]*#.*$"
|
||||
color comment start="\#\[" end="\]\#"
|
||||
|
||||
color todo "(TODO|FIXME|XXX):?"
|
||||
Reference in New Issue
Block a user