! Syntax highlighting patterns for Renderman Shader language ! Contributed by: ! James Robinson (jwrobinson@lycosmail.com) ! http://www.soc.staffs.ac.uk/~cmrjr ! 06-06-2000 ! ! In NEdit 5.1, load the pattern using: ! ! nedit -import ! ! Check the highlight patterns have loaded correctly and ! then select "save defaults" from the preference menu. ! You can use NEdit as normal now without using the -import ! option. nedit.highlightPatterns: \ Renderman Shader:1:0{\n\ comment:"/\\*":"\\*/"::Comment::\n\ string:"""":"""":"\\n":String::\n\ keyword:"<(break|return|continue|if|else|while|for|illuminance|illuminate|solar|sizeof)>":::Keyword::D\n\ character constant:"'":"'":"[^\\\\][^']":Character Const::\n\ braces:"[{}]":::Keyword::D\n\ data types:"<(float|point|color|string|vector|normal|matrix|void)>":::Storage Type::D\n\ storage classes:"<(varying|uniform|extern|light|surface|volume|displacement|transformation|imager)>":::Storage Type1::D\n\ special variables:"<(Cs|Os|P|dPdu|dPdv|N|Ng|u|v|du|dv|s|t|L|Cl|Ol|E|I|ncomps|time|Ci|Oi|Ps|alpha|dtime|dPdtime)>":::Identifier1::D\n\ numeric constant:"<(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))>":::Numeric Const::D\n\ } nedit.languageModes: \ Renderman Shader:.sl:::None:::".,/\\`'!|@#%^&*()-=+{}[]"":;<>?~"\n\