[MacPorts] #53938: nano at 2.8.0_0: regular expressions in the syntax files

MacPorts noreply at macports.org
Fri Apr 7 17:04:18 UTC 2017


#53938: nano at 2.8.0_0: regular expressions in the syntax files
-----------------------+-------------------
 Reporter:  blgantner  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Low        |  Milestone:
Component:  ports      |    Version:  2.4.1
 Keywords:             |       Port:  nano
-----------------------+-------------------
 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.

--
Ticket URL: <https://trac.macports.org/ticket/53938>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list