-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for clojure and tomorrow night theme #9
base: master
Are you sure you want to change the base?
Conversation
This is awesome, thanks for the PR. A couple comments:
(defn remove! [editor cur]
(object/update! editor [:widgets] dissoc [(:line @cur) :underline])
(object/raise cur :clear!)) GitHub highlights I've merged your changes along with some tweaks I've made, to the clojure branch. If you want to update anything, please fork that branch. |
Great!
I also saw you created you own test file. I've been working on creating on 2014-05-26 0:43 GMT+02:00 tmont [email protected]:
|
this needs more testing, but it'll fix clojure in PR #9
I just learned this; I didn't know At any rate, this is more of a bug with Sunlight than anything else. I guess no other languages thus far have had a keyword that ended in punctuation. I fixed this in 7c87abc but I need to test it a little more. Anyway, it would be pretty rad if we could get things like Otherwise, everything else looks pretty good. |
Hmmm, now that I'm thinking about it, 7c87abc might cause havoc if you use a space in a keyword, such as C# with |
It's weird how /^event\b/.test('event,') is true, but 2014-05-26 11:32 GMT+02:00 tmont [email protected]:
|
Also, I have pushed new changes to my clojure branch. I can't get the 2014-05-27 20:23 GMT+02:00 Daniel Marjenburgh [email protected]:
|
That wouldn't work in certain cases, e.g. arrays in JavaScript: var x = [true];
The regex Try this one: |
-.5 not matching is fine, since it's not a valid number notation in 2014-05-28 7:13 GMT+02:00 tmont [email protected]:
|
2014-05-28 7:13 GMT+02:00 tmont [email protected]:
My bad, I meant making "\b" the default like you have now, but with the
|
Sorry for taking so long to reply. Been busy.
This is happening because idents are parsed before numbers, and you have a defined an ident as starting with So, you'll probably have to handle idents in a special way by defining a custom parse rule that does something like (pseudocode):
And then remove the |
Hi,
I have added a clojure language definition file and added the tomorrow-night theme. I copied and adjusted the dark theme a bit. The theme is a tailored to display the clojure code nicely, but it should look fine for other languages too.