Nanorc on Apple

View: New views
1 Messages — Rating Filter:   Alert me  

Nanorc on Apple

by Scott Santos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

Hope this finds you well.  I was wondering if anyone has some insight into nano and its .nanorc file.

I recently compiled nano 2.0.7 on a Mac Pro running 10.5.4.  Everything went as expected and I transferred over my .nanorc file from my Linux box.  The .nanorc file solely contains info for syntax highlighting.

What I noticed is that the manner in which the regular expressions are interpreted by nano 2.0.7. from Fink on Apple is different than nano 2.0.7 on Debian.  The main issue is that much of the highlighting functions are lost.  Both versions have used the same compilation flags (--enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8), so I'm not sure why they are behaving differently.

To see what I mean, insert the below into a .nanorc file on an Apple and than on a Linux box, open a perl script and notice the difference in syntax highlighting:

## For perl scripts
syntax "perl" "\.p[lm]$"
icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)"
color yellow "".*"|qq\|.*\|"
color white "[sm]/.*/"
color white start="(^use| = new)" end=";"
color green "#.*"
color yellow start="<< 'STOP'" end="STOP"
color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>"

Does anyone know if regexps are handled a little differently by OS X than Linux?  If so, how can it be modified to be more similar between the two platforms?

Cheers and thanks in advance,

Scott


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
Fink-users@...
https://lists.sourceforge.net/lists/listinfo/fink-users
LightInTheBox - Buy quality products at wholesale price