Branch: refs/tags/0.0.18
Revision: 19a2e0b
Author: lydia-duncan
Log Message:
Merge pull request #41 from e-kayrakli/pygments-improve-lexer
Improve the custom pygments lexer
This PR:
- Refactors large tuples into their own variables
- Adds a new
receivertype
state to handle
by properly highlighting it including the keywords within parentheses:
We can tweak how we handle secondary methods better, but this PR doesn’t do that. For example we can’t currently higlight without this patch:
With this patch, we can highlight, but a non-parenthesized receiver type shouldn’t be higlighted as function name
I wasn’t able to get that puzzle solved in a reasonable amount of time, but I think this is still progress. At least we don’t have to workaround this issue when writing code-block
s in docs.
[Reviewed by @lydia-duncan]
Modified Files:
M sphinxcontrib/chapeldomain/chapel.py
Compare: https://github.com/chapel-lang/sphinxcontrib-chapeldomain/compare/0.0.18