[R-gui] NEdit Highligth patterns for R

Ernesto Jardim ernesto@ipimar.pt
10 Oct 2002 12:19:10 +0100


--=-yevhV/QZg6n7BWzMpjqK
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi

I've just submitted to the NEdit development team a R highligth patterns
for NEdit (www.nedit.org).

NEdit is a text editor for LINUX which I use to write small R functions.
In my opinion is a very good tool for small scripts, maybe for huge
projects is not the best.

I'm attaching the R-5.1.pats file so you can try it. 

As usual contributions and comments are welcome.

Regards

EJ 



--=-yevhV/QZg6n7BWzMpjqK
Content-Disposition: attachment; filename=R-5.1.pats
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=R-5.1.pats; charset=ISO-8859-1

!=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
!
! Syntax Highlighting Patterns for R
! by Ernesto Jardim, ernesto@ipimar.pt
! version: 1.0
!
! Configuring NEdit to use a new pattern set:=20
!=20
! * Close your NEdit sessions=20
! * Start an NEdit session using the import command line option with the pa=
ttern you downloaded:=20
!=20
!   # nedit -import R-5.1.pats
!=20
! * Go into the recognition patterns dialog (Preferences>Default Settings>S=
yntax Highlighting>Recognition Patterns...) and verify that the patterns ar=
e imported=20
! * Use Preferences>Save Defaults... to store the modifications.=20
!=20
! * This version has been verified with the following versions on NEdit
!  - 5.1
!
!=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

nedit.highlightPatterns: \n\
R:1:0{\n\
Note:"#!":"$"::Note::\n\
Comment:"#":"$"::TextComment::\n\
Keyword:",|<(return|if|then|else|in|switch|while|for|function|do|done)>":::=
Keyword::D\n\
Loop and Equation:"\\[|\\]|\\(|\\)|\\{|\\}|\\<-|,":::Loop and Equation::\n\
Operators:"!|~|:|\\^|\\*|%|\\<|\\>|=3D=3D|\\>=3D|\\<=3D|&|\\$|-|=3D|\\+|""|=
/":::Operators::\n\
}
nedit.languageModes: 	R:.q .r .R::::::
nedit.styles: Note:darkRed:Italic\n\
TextComment:darkBlue:Italic\n\
Loop and Equation:darkRed:Bold\n\
Operators:darkGreen:Bold\n\

--=-yevhV/QZg6n7BWzMpjqK--