patchGNU 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: 

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?

Benno Schulenberg <bens>
Group administrator
Sun 16 Jun 2019 09:30:35 AM UTC, comment #1: 

Hi,

Any feedback?

Thanks,
Naoum.

Naoum Hankache <hankache>
Sat 12 Jan 2019 07:07:00 PM UTC, original submission:  

Hello,

I made a nanorc file that handles Perl 6 syntax highlighting.

We hope that it can be included in nano.

Thanks,
Naoum.

Naoum Hankache <hankache>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #45947:  perl6.nanorc added by hankache (13KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by hankache (Submitted the item)
  •  

    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 Summarysyntax highlighting for Perl 6 syntax highlighting for Raku
    2020-06-21 bens StatusNone Need Info
    2020-05-31 bens Priority5 - Normal 3 - Low
        SummarySyntax highlighting for Perl 6 syntax highlighting for Perl 6
    2019-01-12 hankache Attached File- Added perl6.nanorc, #45947

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code