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
[raku] Distinguish between builtin types and builtin routines #720
Comments
It looks like this is already handled in raku.go:
We just need to preserved the difference rather than amalgamate it. |
There is no token for builtin routines, see Builtin Tokens. But maybe |
: There is no token for builtin routines, see Builtin Tokens. I don't undertstand. What is being defined in raku.go if not just that? builtinTypes := []string{
`False`, `True`, `Order`, ...
builtinRoutines := []string{
`ACCEPTS`, `abs`, `abs2rel`, ... |
Those are definitions and separations in the code. What is important is the type of the token, such as |
Thank you @CIAvash 🌟🤩 ! ( I tried it on the playground but I guess that's not current. What is the release schedule for chroma ? ) |
I've got it working in nix. It seems the /* KeywordType */ .chroma .kt { } I'd like to suggest a typographic change to the /* KeywordType */ .chroma .kt { border-bottom: thin solid } BTW there seems to be (a harmless?) extra semi-colon generated at the end of the body { background-color: #ffffff;; } Thanks @CIAvash ! |
When highlighting the following raku:
The
Int
andsqrt
are lumped together asNameBuiltin
-- which limits the styling options. In a monochome setting, I'd enjoy for example being able to style type as underlined and other builtins as bold.This would be a lexical enhancement which I can try and contribute but I'd need some direction on the naming for the lexical distinction I am trying to make. I guess maybe a class of
NameType
could work?Thank you for a wonderful and blindingly fast highlighter!
:-)
The text was updated successfully, but these errors were encountered: