{"action":"created","issue":{"url":"https://api.github.com/repos/the-lambda-church/merlin/issues/394","labels_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/394/comments","events_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/394/events","html_url":"https://github.com/the-lambda-church/merlin/issues/394","id":76839650,"number":394,"title":"Ocamlscript syntax support","user":{"login":"struktured","id":5060002,"avatar_url":"https://avatars.githubusercontent.com/u/5060002?v=3","gravatar_id":"","url":"https://api.github.com/users/struktured","html_url":"https://github.com/struktured","followers_url":"https://api.github.com/users/struktured/followers","following_url":"https://api.github.com/users/struktured/following{/other_user}","gists_url":"https://api.github.com/users/struktured/gists{/gist_id}","starred_url":"https://api.github.com/users/struktured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struktured/subscriptions","organizations_url":"https://api.github.com/users/struktured/orgs","repos_url":"https://api.github.com/users/struktured/repos","events_url":"https://api.github.com/users/struktured/events{/privacy}","received_events_url":"https://api.github.com/users/struktured/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-15T20:02:21Z","updated_at":"2015-05-18T17:26:18Z","closed_at":"2015-05-18T17:26:18Z","body":"Merlin rightly generates syntax errors about the code preceding the ```--`` `for headers of [ocamlscript](https://github.com/mjambon/ocamlscript/) files. The header looks something like this:\r\n\r\n```Ocaml\r\n#!/usr/bin/env ocamlscript\r\nOcaml.packs := [\"extlib\";\"re\";\"unix\";\"cmdliner\";\"fileutils\"]\r\nOcaml.sources := \"some_source.ml\"\r\n\r\n--\r\nlet () = \"hello world\"\r\n```\r\n\r\nSome other examples are [here](https://github.com/mjambon/ocamlscript/tree/master/examples). \r\n\r\nIf a ```.merlin``` file has ```ocamlscript``` listed as a package definition, it would be nice if it interpreted the header appropriately, including (maybe) adding all the sources referenced by \"packs\" (I don't need this feature but it would be cool). At the very least if it ignored the header that would be an improvement.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/the-lambda-church/merlin/issues/comments/103141858","html_url":"https://github.com/the-lambda-church/merlin/issues/394#issuecomment-103141858","issue_url":"https://api.github.com/repos/the-lambda-church/merlin/issues/394","id":103141858,"user":{"login":"struktured","id":5060002,"avatar_url":"https://avatars.githubusercontent.com/u/5060002?v=3","gravatar_id":"","url":"https://api.github.com/users/struktured","html_url":"https://github.com/struktured","followers_url":"https://api.github.com/users/struktured/followers","following_url":"https://api.github.com/users/struktured/following{/other_user}","gists_url":"https://api.github.com/users/struktured/gists{/gist_id}","starred_url":"https://api.github.com/users/struktured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struktured/subscriptions","organizations_url":"https://api.github.com/users/struktured/orgs","repos_url":"https://api.github.com/users/struktured/repos","events_url":"https://api.github.com/users/struktured/events{/privacy}","received_events_url":"https://api.github.com/users/struktured/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T17:26:18Z","updated_at":"2015-05-18T17:26:18Z","body":"Nice, you found it! I had it defined on this machine as\r\n\r\n```let g:syntastic_ocaml_check = [\"merlin\"]```\r\n\r\ninstead of\r\n\r\n```let g:syntastic_ocaml_checkers = [\"merlin\"]```\r\n\r\nThanks @trefis for the debugging help!\r\n\r\n"}}