Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#53938 closed defect (fixed)

nano@2.8.0_0: regular expressions in the syntax files

Reported by: blgantner (Brennan Gantner) Owned by: grimreaper (Eitan Adler)
Priority: Low Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: someuser12
Port: nano

Description

It appears with the upgrade of 2.7.X to 2.8 of nano, the regular expressions evaluation of the syntax files was changed away from gnu style (word boundaries of \< and \>). Both the previous working syntax files (from 2.7) and the newly installed syntax files for 2.8 list multiple errors during nano start. (There are about 50, all consistent, only one provided for example).

Error in /opt/local/share/nano/sh.nanorc on line 13: Bad regex "-[Ldefgruwx][[:>:]]": Invalid character class name

Changing the \< and \> instances to \b fixes the issue. Easy solution of quick change of the syntax files included with 2.8 installation or recompiling 2.8 to recognize gnu format.

Change History (5)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: lists@… removed
Owner: set to grimreaper
Status: newassigned

comment:2 Changed 7 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In a3fe18167fa0087a4fcb2ab7a8aed7a26446abdf/macports-ports:

nano: fix regular expressions in the syntax files

Closes: #53938

comment:3 Changed 7 years ago by someuser12

This bug has been reported and fixed upstream: https://savannah.gnu.org/bugs/index.php?50705 but no new version of nano has been published yet.

The corrected version of nano would allow one to keep using one's own syntax files without regular expression fix (the changeset https://trac.macports.org/changeset/a3fe18167fa0087a4fcb2ab7a8aed7a26446abdf/macports-ports only fixes syntax files provided as samples).

comment:4 Changed 7 years ago by someuser12

Cc: someuser12 added

comment:5 in reply to:  3 Changed 7 years ago by someuser12

Replying to someuser12:

This bug has been reported and fixed upstream: https://savannah.gnu.org/bugs/index.php?50705 but no new version of nano has been published yet.

Release 2.8.1 of nano includes the fix.

Note: See TracTickets for help on using tickets.