! Syntax highlighting patterns for Rexx ! ! Version: 0.2, February 6, 2001 ! Maintainer: Andrew Hood ! Original author: Andrew Hood ! ! INTRODUCTION ! ! These patterns use the new regular expressions as available in NEdit version ! 5.1 and up. They will not work in older versions of NEdit. The patterns are ! based on uni-REXX v2.2 and there is no guarantee that they'll work correctly ! for other versions (there even is no guarantee they'll work correctly for this ! version:). The references for the syntax are: ! ! The REXX Language, A Practical Approach to Programming (Second Edition 1990), ! M. F. Collishaw ! ! uni-REXX Reference Manual, The Workstation Group 1994 ! ! INSTALLATION ! ! Load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. These comments will not appear in your ~/.nedit ! nedit.fileVersion: 5.1 nedit.highlightPatterns: REXX:1:0{\n\ comment:"/\\*":"\\*/"::Comment::\n\ instruction:"<(?i(address|arg|by|call|do|drop|else|end|exit|from|if|interpret|iterate|leave|nop|numeric|options|otherwise|parse|pull|push|queue|return|say|select|signal|then|to|trace|until|upper|when|while))>":::Keyword::\n\ builtins:"<(?i(abbrev|abs|address|arg|bitand|bitor|bitxor|b2x|center|charin|charout|chars|chdir|compare|condition|copies|cuserid|c2d|c2x|datatype|date|delstr|delword|digits|d2c|d2x|errortext|find|form|format|fuzz|getcwd|getenv|index|insert|justify|lastpos|left|length|linein|lineout|lines|lower|max|min|overlay|popen|pos|putenv|queued|random|reverse|right|sign|sourceline|space|stream|strip|substr|subword|symbol|time|trace|translate|trunc|upper|userid|value|verify|word|wordindex|wordlength|wordpos|words|xrange|x2b|x2c|x2c))>\\s*(?=[\\(])":::Keyword::\n\ uniRexx instruction:"<(?i(desbuf|dropbuf|execio|globalv|makebuf))>":::Keyword::\n\ uniRexx builtin:"<_(?i(accept|bind|closedir|closesocket|connect|errno|exit|fork|geteuid|gethostbyname|gethostid|gethostname|getpid|getppid|getservbyname|getuid|kill|listen|opendir|readdir|recv|regex|send|setsid|sleep|socket|stat|sys_errlist|truncate|umask|wait|waitpid))>\\s*(?=[\\(])":::Keyword::\n\ numeric constant:"<(((\\d+\\.?\\d*)|(\\.\\d+))([eE](\\+|-)?\\d+)?)>":::Numeric Const::\n\ binhex constant:"<(([""'][01 ]+[""'][bB])|([""'][\\da-fA-F ]+[""'][xX]))>":::String::\n\ stringsq:"'":"'":"\\n":String::\n\ stringdq:"""":"""":"\\n":String::\n\ operator:"(\\+|-|\\*\\*?|//?|%|&&?|\\|\\|?|[\\\\/^\\<\\>]?[=\\<\\>][=\\<\\>]?)":::Operator::\n\ label:"^\\s*[\\l_]\\w*(?=\\s*[:])":::Flag::\n\ commentstrsq:"'[^']*'":::CommentStr:comment:\n\ commentstrdq:"""[^""]*""":::CommentStr:comment:\n\ } nedit.languageModes: REXX:.rex .rexx:"^[ \\t]*#[ \\t]*!.*(rxx|ncrx)"::None:::" .,/\\`'!|@#%^&*()-=+{}[]"":;<>?~" nedit.styles: CommentStr:darkSeaGreen:Italic\n\ Operator:red3:Bold ! generated with nxlang 1.00