Support .cljs and .cljc as clojure files

Fixes #911
This commit is contained in:
Zachary Yedidia 2017-11-14 13:58:28 -05:00
parent d6ccaf0e41
commit 7dfeda1ae5
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -1,7 +1,7 @@
filetype: clojure
detect:
filename: "\\.(clj)$"
filename: "\\.(clj[sc]?)$"
rules: