GNU nano - Patches: patch #9745, syntax highlighting for Raku
You are not allowed to post comments on this tracker with your current authentication level.
patch #9745: syntax highlighting for Raku
Submitter: | Naoum Hankache <hankache> | ||
Submitted: | Sat 12 Jan 2019 07:07:00 PM UTC | ||
Priority: | 3 - Low | Status: | Need Info |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Release: | None |
Sun 31 May 2020 11:08:45 AM UTC, comment #2: |
Benno Schulenberg <bens>![]() |
Sun 16 Jun 2019 09:30:35 AM UTC, comment #1: Hi,
|
Naoum Hankache <hankache> |
Sat 12 Jan 2019 07:07:00 PM UTC, original submission:
Hello,
|
Naoum Hankache <hankache> |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-10-01 | bens | Summary | syntax highlighting for Perl 6 | ![]() |
syntax highlighting for Raku |
2020-06-21 | bens | Status | None | ![]() |
Need Info |
2020-05-31 | bens | Priority | 5 - Normal | ![]() |
3 - Low |
Summary | Syntax highlighting for Perl 6 | ![]() |
syntax highlighting for Perl 6 | ||
2019-01-12 | hankache | Attached File | - | ![]() |
Added perl6.nanorc, #45947 |
Hello Naoum,
Sorry for the late reply. Your syntax file is huge... it was rather intimidating.
Some comments. The language has been renamed to Raku, right? So probably the syntax should be renamed too.
You start with coloring everything brighwhite. That is not what nano normally does: leave it to the user how the base text is colored. (Also, if all is brightwhite anyway, then the rules for the "Ops" would be superfluous.)
When both "=" and "<" by themselves are colored brightwhite, it is superfluous to color also "<=". The same for "%" and "%%", and so on.
"atomicint" is out of alphabetical place. The same for "WHAT" to "BUILD". Keywords and several other regexes do not seem to be ordered alphabetically at all.
When all Exceptions start with "X::", it is nicer to put it outside the first parenthesis.
In the Regex Match, "\$\/", the second backslash is superfluous.
In the second regex of the Variables, a backslash seems to be missing before the "^".
I have no way of knowing whether this syntax properly describes Raku. Do you have a direct URL to the specification of the language? And does anyone use this syntax file to color their Raku files with nano?