! Syntax highlighting patterns for Perl ! ! 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.highlightPatterns: Perl:2:0{\n\ dq here doc:"(\\<\\<(""?))EOF(\\2.*)$":"^EOF>"::Label::\n\ dq here doc delims:"\\1\\3":""::Plain:dq here doc:C\n\ dq here doc esc chars:"\\\\([nrtfbaeulULQE@%\\$\\\\]|0[0-7]+|x[0-9a-fA-F]+|cC)":::String2:dq here doc:\n\ dq here doc variables:"\\$([-_./,""\\\\#*?\\][;!@:$<>()%=~^|&`'+]|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)[\\l_](\\w|::)*":::Identifier1:dq here doc:\n\ dq here doc content:".":::String:dq here doc:\n\ dq string:"""":"""":"\\n\\s*\\n":String::\n\ dq string delims:"&":"&"::Keyword:dq string:C\n\ dq string esc chars:"\\\\([nrtfbaeulULQE""@%\\$\\\\]|0[0-7]+|x[0-9a-fA-F]+|cC)":::String2:dq string:\n\ dq string variables:"\\$([-_./,""\\\\#*?\\][;!@:$<>()%=~^|&`'+]|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)[\\l_](\\w|::)*":::Identifier1:dq string:\n\ gen dq string:"()%=~^|&`'+]|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)[\\l_](\\w|::)*":::Identifier1:gen dq string:\n\ sq here doc:"(\\<\\<')EOF('.*)$":"^EOF>"::Label::\n\ sq here doc delims:"\\1\\2":""::Plain:sq here doc:C\n\ sq here doc esc chars:"\\\\\\\\":::String2:sq here doc:\n\ sq here doc content:".":::String:sq here doc:\n\ sq string:"'":"'":"\\n\\s*\\n":String::\n\ sq string delims:"&":"&"::Keyword:sq string:C\n\ sq string esc chars:"\\\\(\\\\|')":::String2:sq string:\n\ gen sq string:""::Label::\n\ bq here doc delims:"\\1\\2":""::Plain:bq here doc:C\n\ bq here doc comment:"#":"$"::Comment:bq here doc:\n\ bq here doc variables:"\\$([-_./,""\\\\#*?\\][;!@:$<>()%=~^|&`'+]|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)[\\l_](\\w|::)*":::Identifier1:bq here doc:\n\ bq here doc content:".":::String1:bq here doc:\n\ bq string:"`":"`":"\\n\\s*\\n":String1::\n\ bq string delims:"&":"&"::Keyword:bq string:C\n\ bq string variables:"\\$([-_./,""\\\\#*?\\][;!@:$<>()%=~^|&`'+]|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)[\\l_](\\w|::)*":::Identifier1:bq string:\n\ gen bq string:"()%=~^|&`'+]|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)[\\l_](\\w|::)*":::Identifier1:gen bq string:\n\ gen bq string esc chars:"\\\\/":::String2:gen bq string:\n\ re matching:"<(m?/)(\\\\/|[^/])*(/[cgimsox]*)>":::String::\n\ re match coloring:"\\1\\3":""::Keyword:re matching:C\n\ re substitution:"<((s|y|tr)/)(\\\\/|[^/])*(/)(\\\\/|[^/])*(/[egimsox]*)":::String::\n\ re subs coloring:"\\1\\4\\6":""::Keyword:re substitution:C\n\ comment:"(?:[^$]|^)#":"$"::Comment::\n\ label:"((?:^|;)\\s*<([A-Z_]+)>\\s*:(?=(?:[^:]|\\n)))|(goto|last|next|redo)\\s+(<((if|unless)|[A-Z_]+)>|)":::Plain::\n\ label identifier:"\\2\\5":""::Label:label:C\n\ label keyword:"\\3\\6":""::Keyword:label:C\n\ filehandle:"(\\<)[A-Z_]+(\\>)|(binmode|close|eof|fcntl|fileno|flock|getc|ioctl|open|read|seek|sysopen|sysread|sysseek|syswrite|tell|write)\\s*(\\(?)\\s*[A-Z_]+>|<(pipe)\\s*(\\(?)\\s*[A-Z_]+\\s*(,)\\s*[A-Z_]+>|(print|printf|select)\\s*(\\(?)\\s*[A-Z_]+>(?!\\s*,)":::Label::\n\ filehandle delims:"\\1\\2\\4\\6\\7\\9":""::Keyword:filehandle:C\n\ filehandle functions:"\\3\\5\\8":""::Subroutine:filehandle:C\n\ statements:"<(if|until|while|elsif|else|unless|for(each)?|continue|last|goto|next|redo|do(?=\\s*\\{)|BEGIN|END)>":::Keyword::D\n\ packages and modules:"<(bless|caller|import|no|package|prototype|require|return|INIT|BEGIN|END|use)>":::Keyword::D\n\ pragm modules:"<(attrs|autouse|base|blib|constant|diagnostics|fields|integer|less|lib|locale|ops|overload|re|sigtrap|strict|subs|vars|vmsish)>":::Subroutine::D\n\ standard methods:"<(can|isa|VERSION)>":::Keyword::D\n\ file tests:"-[rwxRWXoOezsfdlSpbcugktTBMAC]>":::Subroutine::D\n\ subr header:"sub\\s+([\\l_]\\w*)":"\\{"::Keyword::D\n\ subr header coloring:"\\1":""::Subroutine1:subr header:DC\n\ subr prototype:"\\(":"\\)"::Flag:subr header:D\n\ subr prototype delims:"&":"&"::Keyword:subr prototype:DC\n\ subr prototype chars:"\\\\?[@$%&*]|;":::Identifier1:subr prototype:D\n\ variables:"\\$([-_./,""\\\\#*?\\][;!@$<>(%=~^|&`'+]|:(?!:)|\\^[ADEFHILMOPSTWX]|ARGV|\\d{1,2})>|(@|\\$#)(ARGV|EXPORT|EXPORT_OK|F|INC|ISA|_)>|%(ENV|EXPORT_TAGS|INC|SIG)>|(\\$|@|%)(?=\\{)|(\\$#?|@|%)(::)?[\\l_](\\w|::(?=\\w))*":::Identifier1::D\n\ named operators:"<(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|sub)>":::Keyword::D\n\ library functions:"<((?# arithmetic functions)abs|atan2|cos|exp|int|log|rand|sin|sqrt|srand|time|(?# conversion functions)chr|gmtime|hex|localtime|oct|ord|vec|(?# structure conversion)pack|unpack|(?# string functions)chomp|chop|crypt|eval(?=\\s*[^{])|index|lc|lcfirst|length|quotemeta|rindex|substr|uc|ucfirst|(?# array and hash functions)delete|each|exists|grep|join|keys|map|pop|push|reverse|scalar|shift|sort|splice|split|unshift|values|(?# search and replace functions)pos|study|(?# file operations)chmod|chown|link|lstat|mkdir|readlink|rename|rmdir|stat|symlink|truncate|unlink|utime|(?# input/output)binmode|close|eof|fcntl|fileno|flock|getc|ioctl|open|pipe|print|printf|read|readline|readpipe|seek|select|sprintf|sysopen|sysread|sysseek|syswrite|tell|(?# formats)formline|write|(?# tying variables)tie|tied|untie|(?# directory reading routines)closedir|opendir|readdir|rewinddir|seekdir|telldir|(?# system interaction)alarm|chdir|chroot|die|exec|exit|fork|getlogin|getpgrp|getppid|getpriority|glob|kill|setpgrp|setpriority|sleep|syscall|system|times|umask|wait|waitpid|warn|(?# networking)accept|bind|connect|getpeername|getsockname|getsockopt|listen|recv|send|setsockopt|shutdown|socket|socketpair|(?# system V ipc)msgctl|msgget|msgrcv|msgsnd|semctl|semget|semop|shmctl|shmget|shmread|shmwrite|(?# miscellaneous)defined|do|dump|eval(?=\\s*\\{)|local|my|ref|reset|undef|(?# informations from system databases)endpwent|getpwent|getpwnam|getpwuid|setpwent|endgrent|getgrent|getgrgid|getgrnam|setgrent|endnetent|getnetbyaddr|getnetbyname|getnetent|setnetent|endhostend|gethostbyaddr|gethostbyname|gethostent|sethostent|endservent|getservbyname|getservbyport|getservent|setservent|endprotoent|getprotobyname|getprotobynumber|getprotoent|setprotoent)>":::Subroutine::\n\ subroutine call:"&\\w(\\w|::)*>|<\\w(\\w|::)*(?=\\s*\\()":::Subroutine1::D\n\ symbolic operators:">[-<>+.*/\\\\?!~=%^&x:]<":::Keyword::D\n\ braces and parens:"[\\[\\]{}\\(\\)\\<\\>]":::Keyword::D\n\ numerics:"((?i0x[\\da-f]+)|0[0-7]+|(\\d+\\.?\\d*|\\.\\d+)([eE][-+]?\\d+)?)":::Numeric Const::D\n\ tokens:"__(FILE|PACKAGE|LINE|DIE|WARN)__":::Preprocessor::D\n\ end token:"__(END|DATA)__":"never_match_this_pattern"::Plain::\n\ end token delim:"&":""::Preprocessor:end token:C\n\ pod:"(?=^=)":"^\\n=cut"::Text Key::\n\ pod verbatim:"^\\n\\s":"^$"::Plain:pod:\n\ pod markup:"[IBSCLFXZE]\\<":"\\>"::Text Key:pod:\n\ pod markup content:".":::Text Arg1:pod markup:\n\ pod command:"=(pod|head[12]|item|over|back|for|begin|end)":"^$"::Text Key:pod:\n\ pod command markup:"([IBSCLFXZE])\\<":"\\>"::Text Key:pod command:\n\ pod command markup content:".":::Text Arg1:pod command markup:\n\ pod command content:".":::Text Arg:pod command:\n\ pod content:".":::Text Arg2:pod:\n\ } nedit.languageModes: Perl:.pl .pm .p5:"^[ \\t]*#[ \\t]*!.*perl":Auto:None:::".,/\\\\`'!@#%^&*()-=+{}[]"":;<>?~" ! generated with extract_lang.pl version 0.1