-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Docstring Highlighting #33
Comments
These fixes would be great. Re: improving highlighting generally, I have a PR with comprehensive improvements that I'm pretty excited about, but they're languishing locally until a parsing bug is fixed upstream: atom/first-mate#52. I don't know if anyone has done any work on first-mate -- hopefully it's fixed soon. |
@garborg, really looking forward to your improvements. I think a solid cleanup would be great. Most of what is there right now is just inherited from the textmate bundle. We've made a few changes, but not a general overhaul like I think you are working on. |
@one-more-minute I think you can just put a space between the This also seems like more of a problem in the atom-gfm grammar since it only happens when we |
@garborg any update on this? I see that very little has happened over at atom/first-mate, but are some of your improvements independent of that? |
Oh and @one-more-minute, I currently have this in my styles.less
It makes it more or less the same color as comments, depending on how the syntax uses that variable. It would be better to somehow pop the string scope when we enter a docstring though |
The issue in atom/first-mate has been switched from 'bug' to 'matches macromates', which I imagine means won't fix. So dead end there until Atom supports more powerful tokenizers -- there are links in atom/first-mate#52 to issues suggesting supporting external tokenizers and/or Sublime 3's grammar. Unfortunately, my plan to highlight almost everything correctly falls apart with a grammar that ignores 'end' patterns, so much of what I did will be useless. I do have plenty of new tests that should pass, but it'll take a bit of work to try to salvage actual changes. |
Darn, that's disappointing. I was looking forward to sane/complete scoping for everything. |
The markdown specification used by The following code works well:
|
This is the same as atom/language-gfm#44, btw. |
Fixed on master. |
This docstring makes highlighting go funky:
The
_
seems to start an italic section despite being in a code block, and this doesn't happen without the)
. Also, for some reason the final"""
isn't closing off the docstring either.Highlighting top-level strings as markdown is a great idea, but maybe it would then be good to remove the string scope so that the default colour isn't yellow. It'd also be pretty cool if we could highlight indent code blocks as Julia by default.
The text was updated successfully, but these errors were encountered: