! Syntax highlighting patterns for Rexx, uni-Rexx, ooRexx, ooRexx RexxUtil ! ! Version: 0.2, February 6, 2001 ! Maintainer: Andrew Hood ! Original author: Andrew Hood ! Version: 0.3, May 14, 2007 ! Last modifications: Przemysław Pawełczyk ! ! 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\ ooRexx instruction:"<(?i(abbrev|abs|allat|allindex|append|arrayin|arrayout|at|available|alarm|array|b2x|baseclass|bitand|bitor|bitxor|bag|c2d|c2x|cancel|center|changestr|charin|charout|chars|class|close|command|compare|completed|copies|copy|countstr|current|circularqueue|class|d2c|d2x|datatype|decodebase64|defaultname|define|delete|delstr|delword|description|destination|difference|dimension|directory|encodebase64|enhanced|entry|filespec|first|firstitem|flush|format|getbuffersize|hasentry|hasindex|hasitem|hasmethod|id|index|inherit|init|insert|intersection|item|items|last|lastitem|lastpos|left|length|linein|lineout|lines|list|makearray|makestring|max|metaclass|method|methods|min|mixinclass|message|method|monitor|mutablebuffer|new|newfile|next|notify|objectname|objectname=|of|open|overlay|object|peek|pos|position|previous|pull|push|put|qualify|query|querymixinclass|queue|queue|remove|removeitem|request|resize|result|reverse|right|run|relation|say|section|seek|send|setbuffersize|setentry|setguarded|setmethod|setprivate|setprotected|setsecuritymanager|setunguarded|sign|size|source|space|start|state|string|strip|subclass|subclasses|subset|substr|subword|superclasses|supplier|set|stem|stream|string|supplier|translate|trunc|table|uninherit|union|unknown|unsetmethod|verify|word|wordindex|wordlength|wordpos|words|x2b|x2c|x2d|xor))>":::Keyword::\n\ ooRexxRexxUtil builtin:"<(?i(RxMessageBox|RxWinExec|SysAddFileHandle|SysAddRexxMacro|SysBootDrive|SysClearRexxMacroSpace|SysCloseEventSem|SysCloseMutexSem|SysCls|SysCreateEventSem|SysCreateMutexSem|SysCreatePipe|SysCurPos|SysCurState|SysDriveInfo|SysDriveMap|SysDropFuncs|SysDropLibrary|SysDropRexxMacro|SysDumpVariables|SysFileCopy|SysFileDelete|SysFileMove|SysFileSearch|SysFileSystemType|SysFileTree|SysFork|SysFromUnicode|SysGetCollate|SysGetErrortext|SysGetFileDateTime|SysGetKey|SysGetMessage|SysGetMessageX|SysIni|SysIsFile|SysIsFileCompressed|SysIsFileDirectory|SysIsFileEncrypted|SysIsFileLink|SysIsFileNotContentIndexed|SysIsFileOffline|SysIsFileSparse|SysIsFileTemporary|SysLoadFuncs|SysLoadRexxMacroSpace|SysMapCase|SysMkDir|SysNationalLanguageCompare|SysOpenEventSem|SysOpenMutexSem|SysPostEventSem|SysProcessType|SysPulseEventSem|SysQueryProcess|SysQueryProcessCodePage|SysQueryRexxMacro|SysReleaseMutexSem|SysReorderRexxMacro|SysRequestMutexSem|SysResetEventSem|SysRmDir|SysSaveRexxMacroSpace|SysSearchPath|SysSetFileDateTime|SysSetPriority|SysSetProcessCodePage|SysShutdownSystem|SysSleep|SysStemCopy|SysStemDelete|SysStemInsert|SysStemSort|SysSwitchSession|SysSystemDirectory|SysTempFileName|SysTextScreenRead|SysTextScreenSize|SysToUnicode|SysUtilVersion|SysVersion|SysVolumeLabel|SysWait|SysWaitEventSem|SysWaitNamedPipe|SysWinDecryptFile|SysWinEncryptFile|SysWinGetDefaultPrinter|SysWinGetPrinters|SysWinSetDefaultPrinter|SysWinVer))>":::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