From owner-freebsd-ports@FreeBSD.ORG Sat Jun 26 15:10:23 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BD6316A4CE; Sat, 26 Jun 2004 15:10:23 +0000 (GMT) Received: from dd1626.kasserver.com (dd1626.kasserver.com [81.209.148.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE25743D41; Sat, 26 Jun 2004 15:10:22 +0000 (GMT) (envelope-from cn@team-fatal.com) Received: from [217.81.62.6] (pD9513E06.dip.t-dialin.net [217.81.62.6]) by dd1626.kasserver.com (Postfix) with ESMTP id 8450C14AEC7; Sat, 26 Jun 2004 17:09:32 +0200 (CEST) From: Jacek Wotka To: ports@freebsd.org Content-Type: text/plain Message-Id: <1088262580.10392.20.camel@fission> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 26 Jun 2004 17:09:40 +0200 Content-Transfer-Encoding: 7bit cc: naddy@FreeBSD.org Subject: editors/nano problem with nanorc regexps X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 15:10:23 -0000 hi, after some time i discovered that nano could do syntax highlighting, so i tried to do my own nanorc-file, but when i wanted to match c++ keywords (the pattern was: "(int|short|do|class|...)") i came across the problem that they they were matched inside other words aswell, example: someclass dosomething(); would highlight class and do by looking into the sample-file i noticed \< and \> around the actual pattern: "\<(int|short|do|class|...)\>". this was supposed to tell nano only to highlight these words, if they are not followed or preceded by word- characters. however it did not work on my system so i tested the same nanorc on a linux system, and it worked. to make the story short ;): i don't now much about nanos design, never looked into the code, but i think the root of this "bug" could be a different implementation of regexps on (free)bsd in contrast to gnu/linux. i don't know if there's an alternative way to express what "\<" and "\>" should do, if there is (i didn't find one), then how does it look like. if there isn't, i am asking you (maintainer or someone else), if it can be fixed. (maybe by importing the gnu implementation as a port, or something? if this seems a crazy suggestion, then i'm sorry ;)) thanks in advance (i'm not subscribed to ports@)