#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 8 years ago by mf2k (Frank Schima)
Cc: | lists@… removed |
---|---|
Owner: | set to grimreaper |
Status: | new → assigned |
comment:2 Changed 8 years ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 follow-up: 5 Changed 8 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 8 years ago by someuser12
Cc: | someuser12 added |
---|
comment:5 Changed 8 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.
In a3fe18167fa0087a4fcb2ab7a8aed7a26446abdf/macports-ports: