Skip to content

Quoting - #27

Open
ccmywish wants to merge 4 commits into
bscan:masterfrom
ccmywish:quoting
Open

Quoting#27
ccmywish wants to merge 4 commits into
bscan:masterfrom
ccmywish:quoting

Conversation

@ccmywish

@ccmywish ccmywish commented Jun 2, 2026

Copy link
Copy Markdown

Close #5

I attempted to solve this problem because I came across a file where RakuNavigator was unable to correctly recognize the quoting structure. Given Raku's emphasis on quoting, I felt it necessary to implement this feature, so I attempted to submit this PR.

This is also the syntax that powers Github, so is an important repo

I think this might no longer be correct, because GitHub can correctly highlight the following code. According to: https://tree-sitter.github.io/tree-sitter/3-syntax-highlighting.html, GitHub may use tree-sitter, but which tree-sitter-raku is used I'm not sure.

# This file is extracted from https://github.com/finanalyst/rakuast-rakudoc-render/blob/main/lib/RakuDoc/To/HTML.rakumod
# Aimed to verify the parsing for quoting

class Test
{
  my $a = qw &lt; &gt; &amp; & " > <  => qw &lt; &gt; &amp; &amp; &quot; &gt; &lt;;

  method test() {}
}

Before the PR:
image

After the PR:
image

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

Successfully merging this pull request may close these issues.

Import Regex and String Highlighting from Atom

1 participant