[Chapel Merge] Improve the custom pygments lexer

Branch: refs/heads/master
Revision: 19a2e0b
Author: e-kayrakli
Log Message:

Merge pull request #41 from e-kayrakli/pygments-improve-lexer

Improve the custom pygments lexer

This PR:

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-blocks in docs.

[Reviewed by @lydia-duncan]

Modified Files:
M sphinxcontrib/chapeldomain/chapel.py

Compare: https://github.com/chapel-lang/sphinxcontrib-chapeldomain/compare/f16dc3368680...19a2e0bb1dc9