-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Implement highlighting of Emacs Lisp keywords #43
Comments
You'll need to use the same theme to compare. |
Sorry, the two screenshots were not for theme comparison.. they were to show that:
Comparing emacs.go with lisp.py, I see that the whole section of keywords/identifiers/macros/builtins is not ported over. |
Okay. The converter script can only convert RegexLexers. It's likely that the lispish ones are slightly different and will need some manual intervention. I will get to this, but probably not for a few days. If you'd like to send a PR I'll happily merge it. |
Yes, this is happening because of this function in Pygments. It will need to be ported. |
This pattern is used heavily in Pygments for certain lexers, particularly Lisp variants. See #43.
Okay, this seems to have worked. Here's your example code highlighted. Note that whether a particular element is highlighted also depends on the style used. |
Note that I only converted EmacsLisp. The other lisps will need similar treatment. |
Wow! Thank you for implementing this so quick, especially when you apparently don't use emacs-lisp. I'll rebuild Hugo with latest Chroma as soon as I get to my computer. Apologies for not providing the raw emacs-lisp code for testing. So thank you for going the extra mile to parse the raw code out of that HTML, or finding out the markdown source. I'll make sure to link the source too, next time. For now, emacs-lisp is the only Lisp I use. So I am content :) Many thanks again! I'll try it out as soon as I can today, and report back. Final nitpick: Can the |
I confirm the fix. Thank you! From: https://scripter.co/building-org-development-version/#set-the-correct-paths-in-your-emacs-config |
Hello,
Can the emacs-lisp keywords also be ported from Pygments lexers/lisp.py?
Live example: https://scripter.co/building-org-development-version/#set-the-correct-paths-in-your-emacs-config
Here we see that keywords like
defvar
,with-eval-after-load
,unless
, .. do not get highlighted at all.The text was updated successfully, but these errors were encountered: