{"action":"opened","issue":{"url":"https://api.github.com/repos/diesire/atom-oracle-format/issues/5","labels_url":"https://api.github.com/repos/diesire/atom-oracle-format/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/diesire/atom-oracle-format/issues/5/comments","events_url":"https://api.github.com/repos/diesire/atom-oracle-format/issues/5/events","html_url":"https://github.com/diesire/atom-oracle-format/issues/5","id":121441890,"number":5,"title":"Extend the grammar condition","user":{"login":"tschf","id":1747643,"avatar_url":"https://avatars.githubusercontent.com/u/1747643?v=3","gravatar_id":"","url":"https://api.github.com/users/tschf","html_url":"https://github.com/tschf","followers_url":"https://api.github.com/users/tschf/followers","following_url":"https://api.github.com/users/tschf/following{/other_user}","gists_url":"https://api.github.com/users/tschf/gists{/gist_id}","starred_url":"https://api.github.com/users/tschf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschf/subscriptions","organizations_url":"https://api.github.com/users/tschf/orgs","repos_url":"https://api.github.com/users/tschf/repos","events_url":"https://api.github.com/users/tschf/events{/privacy}","received_events_url":"https://api.github.com/users/tschf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T09:40:55Z","updated_at":"2015-12-10T09:40:55Z","closed_at":null,"body":"I notice you are using the generic SQL grammar to determine if this should run - https://github.com/diesire/atom-oracle-format/blob/master/lib/oracle-format.coffee#L30-L32\r\n\r\n```coffee\r\nif editor.getGrammar().scopeName isnt 'source.sql'\r\n  console.log 'This is not an SQL file'\r\n  return\r\n```\r\n\r\nNot sure if you are aware, but there's also an Oracle specific grammar. See: https://atom.io/packages/language-oracle"}}