Closed eyston closed 10 years ago
When are you logging this?
The grammar can be the null grammar at startup but then switch to the clojure grammar once it is loaded.
Can you open a clojure file and when it says Clojure
in the status bar run: atom.workspace.getActiveEditor().getGrammar().name
from the dev tools console (cmd-alt-i
)?
Ah of course :) My apologies, closed! And thanks!
The editor emit a grammar-changed
event whenever the grammar switches. You can subscribe to it like so: https://github.com/atom/grammar-selector/blob/master/lib/grammar-status-view.coffee#L13-L15
I'm working on a clojure(script) plugin. I have language-clojure installed, 0.8, but when I ask the editor for its grammar I get null:
This also affects the token / scopes:
The bottom of the editor window, next to row,column, shows 'Clojure'. The syntax highlighting seems to work okay as well.
I'm not sure if this is an issue with the grammar or just me being terrible at writing a plugin :).