Skip to content
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] Operator highlighting in word quote #155

Open
habere-et-dispertire opened this issue Oct 12, 2022 · 5 comments
Open

[raku] Operator highlighting in word quote #155

habere-et-dispertire opened this issue Oct 12, 2022 · 5 comments

Comments

@habere-et-dispertire
Copy link

habere-et-dispertire commented Oct 12, 2022

Syntax highlighting appears confused by the word quote construct < >.

The following example illustrates the issue:

# x, xx, o, X, Z are not used here as operators
# but are highlighted as such inside the word
# quote construct < >

my @array = [ 'x', 'xx', 'xxx', 'o', 'oo', 'X', 'Y', 'Z' ];
my @array = <  x    xx    xxx    o    oo    X    Y    Z  >;

It looks okay using GitHub's syntax highlighting -- see attached PDF:

X-syntax-issue-min.pdf

Please let me know if I can be of help.
:-)

@jgm
Copy link
Owner

jgm commented Oct 12, 2022

First step is to determine whether this is a bug in the KDE syntax definition or in pandoc's implementation of it. Easiest way to do that is to see if the issue can be reproduced in the Kate editor.

@habere-et-dispertire
Copy link
Author

habere-et-dispertire commented Oct 12, 2022

I can replicate it on Kate 22.08.1 on Windows, screenshot:

kate-22-08-1-min

@jgm
Copy link
Owner

jgm commented Oct 13, 2022

In that case you should report the bug upstream to KDE at https://invent.kde.org/~/issues . Once it is fixed upstream, we can merge the fixed version here.

@habere-et-dispertire
Copy link
Author

Filed issue 460347 with Kate editor.
:-)

@jubilatious1
Copy link

It looks okay using GitHub's syntax highlighting -- see attached PDF:

X-syntax-issue-min.pdf

Not here. PDF with GitHub's syntax highlighting shows bold for words that are recognized as operators (e.g. x and xx; MacOS 13.4 Ventura PDF conversion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants