TacoXDD / nanosyntax

Automatically exported from code.google.com/p/nanosyntax
0 stars 0 forks source link

Regex Errors, tons of Regex Errors #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Snow Leopard 10.6.7
$ nano --version
 GNU nano version 2.0.6 (compiled 11:42:28, May 18 2009)

errors:
------------
Error in /usr/share/nano/syntax-nanorc/aptsrclist.nanorc on line 5: Bad regex 
"^deb(-src)? ((http|file|ftp):/[^ 
]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+ .+$": invalid 
character range

Error in /usr/share/nano/syntax-nanorc/aptsrclist.nanorc on line 7: Bad regex 
"^deb(-src)? ((http|file|ftp):/[^ 
]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+": invalid 
character range

Error in /usr/share/nano/syntax-nanorc/aptsrclist.nanorc on line 12: Bad regex 
"cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/": invalid character range

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/bash.nanorc on line 25: Bad regex 
"\<(aclocal|aconnect|aplay|apm|apmsleep|apropos|ar|arecord|as|as86|autoconf|auto
header|automake|awk|basename|bc|bison|c++|cal|cat|cc|cdda2wav|cdparanoia|cdrdao|
cd-read|cdrecord|chfn|chgrp|chmod|chown|chroot|chsh|clear|cmp|co|col|comm|cp|cpi
o|cpp|cut|dc|dd|df|diff|diff3|dir|dircolors|directomatic|dirname|du|env|expr|fbs
et|file|find|flex|flex++|fmt|free|ftp|funzip|fuser|g++|gawk|gc|gcc|gdb|getent|ge
topt|gettext|gettextize|gimp|gimp-remote|gimptool|gmake|gs|head|hexdump|id|insta
ll|join|kill|killall|ld|ld86|ldd|less|lex|ln|locate|lockfile|logname|lp|lpr|ls|l
ynx|m4|make|man|mkdir|mknod|msgfmt|mv|namei|nasm|nawk|nice|nl|nm|nm86|nmap|nohup
|nop|od|passwd|patch|pcregrep|pcretest|perl|perror|pidof|pr|printf|procmail|prun
e|ps2ascii|ps2epsi|ps2frag|ps2pdf|ps2ps|psbook|psmerge|psnup|psresize|psselect|p
stops|rcs|rev|rm|scp|sed|seq|setterm|shred|size|size86|skill|slogin|snice|sort|s
ox|split|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|stat|strings|strip|sudo|su
idperl|sum|tac|tail|tee|test|tr|uniq|unlink|unzip|updatedb|updmap|uptime|users|v
mstat|w|wc|wget|whatis|whereis|which|who|whoami|write|xargs|yacc|yes|zip|zsoelim
)\>": repetition-operator operand invalid

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/changelogs.nanorc on line 11: Bad regex 
"\<(CEST|CET|CST||CDT|EDT)\>": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/config.nanorc on line 2: Bad regex 
"(\.|/|)config$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/config.nanorc on line 2: Bad regex 
"(\.|/|)logout$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/config.nanorc on line 2: Bad regex 
"(\.|/|)COLORS$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/config.nanorc on line 2: Bad regex 
"(\.|/|)colors$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/config2.nanorc on line 2: Bad regex 
"(\.|/|)env$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/config2.nanorc on line 2: Bad regex 
"(\.|/|)server.$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/configfiles.nanorc on line 2: Bad regex 
"(\.|/|)conf$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/configfiles.nanorc on line 2: Bad regex 
"(\.|/|)ample$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/configfiles.nanorc on line 2: Bad regex 
"(\.|/|)globals$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/desc.nanorc on line 2: Bad regex 
"(\.|/|)desc$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/ebuild.nanorc on line 19: Bad regex 
"\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe)\>": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/ebuild.nanorc on line 21: Bad regex 
"prepall(|docs|info|man|strip)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/ebuild.nanorc on line 22: Bad regex 
"\<(|doc|ins|exe)into\>": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/ekghistory.nanorc on line 1: Bad regex 
"(\.|/|).gg/history": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/etc-stuff.nanorc on line 12: Bad regex 
"modules.d/(\.|/|)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/etc-stuff.nanorc on line 165: Bad regex 
"/etc/ppp/peers/(\.|/|)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/etc-stuff.nanorc on line 201: Bad regex 
"sane.d/(\.|/|)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/etc-stuff.nanorc on line 223: Bad regex 
"(cdrom|cdrw|dvd|dvdrw|isdn|pty|vcs|vcsa|ippp|dcbri|ircomm|capi|card|nvidia|rtc|
agpgart|psaux|ptmx|sd|dasd|)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/etc-stuff.nanorc on line 276: Bad regex 
"xinetd.d/(\.|/|)": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/etcportage.nanorc on line 1: Command 
"Code:" not understood

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/etcxml.nanorc on line 12: Bad regex 
"/etc/fonts/(\.|/|)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/etcxml.nanorc on line 12: Bad regex 
"/etc/xdg/(\.|/|)": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/gentoo.nanorc on line 19: Bad regex 
"\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|
icon)\>": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/gentoo.nanorc on line 21: Bad regex 
"prepall(|docs|info|man|strip)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/gentoo.nanorc on line 22: Bad regex 
"\<(|doc|ins|exe)into\>": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/initscript.nanorc on line 3: Bad regex 
"/etc/init.d/(\.|/|)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/initscript.nanorc on line 19: Bad regex 
"\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|
icon)\>": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/initscript.nanorc on line 21: Bad regex 
"prepall(|docs|info|man|strip)": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/initscript.nanorc on line 22: Bad regex 
"\<(|doc|ins|exe)into\>": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/maincf.nanorc on line 2: Bad regex 
"(\.|/|)cf$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/mcchangelog.nanorc on line 11: Bad regex 
"\<(CEST|CET|CST||CDT|EDT)\>": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/others.nanorc on line 109: Bad regex 
"/usr/bin(/|)|/usr/sbin|/bin|/sbin|/etc/init.d/": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/passwd.nanorc on line 2: Bad regex 
"(\.|/|)passwd$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/passwd.nanorc on line 2: Bad regex 
"(\.|/|)shadow$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/postgresql.nanorc on line 2: Bad regex 
"\<(A(LL|NALY(S|Z)E|ND|NY|RRAY|S|SC|SYMMETRIC|UTHORIZATION)|B(ETWEEN|INARY|OTH|Y
)|C(ASE|AST|HECK|OLLATE|OLUMN|ONSTRAINT|REATE|ROSS|URRENT_(DATE|ROLE|TIME|TIMEST
AMP|USER))|D(EFAULT|EFERRABLE|ESC|ISTINCT|O|ROP)|E(LSE|ND|XCEPT)|F(ALSE|OR(EIGN)
?|REEZE|ROM|ULL)|GRANT|GROUP|HAVING|I(LIKE|N(ITIALLY|NER|TERSECT|TO)?|S|SNULL)|J
OIN|L(EADING|EFT|IKE|IMIT|OCALTIME(STAMP)?)|N(ATURAL|EW|OT(NULL)?|ULL)|O(FF(SET)
?|LD|N|NLY|R|RDER|UTER|VERLAPS)|PLACING|PRIMARY|REFERENCES|RIGHT|S(ELECT|ESSION_
USER|IMILAR|OME|YMMETRIC)|T(ABLE|HEN|O|RAILING|RUE)|UNION|UNIQUE|USER|USING|VE(I
W|RBOSE)|WHEN|WHERE|)\>": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/privoxy.nanorc on line 1: Bad regex 
"(\.|/|)privoxy/config$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/privoxy.nanorc on line 17: Bad regex 
"(\.|/|).action$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/profile.nanorc on line 2: Bad regex 
"(\.|/|)profile$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/rcfiles.nanorc on line 2: Bad regex 
"(\.|/|)control$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/sources_list.nanorc on line 6: Bad regex 
"^deb(-src)? ((http|file|ftp):/[^ 
]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+ .+$": invalid 
character range

Error in /usr/share/nano/syntax-nanorc/sources_list.nanorc on line 8: Bad regex 
"^deb(-src)? ((http|file|ftp):/[^ 
]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+": invalid 
character range

Error in /usr/share/nano/syntax-nanorc/sources_list.nanorc on line 13: Bad 
regex "cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/": invalid character range

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/tab.nanorc on line 2: Bad regex 
"(\.|/|)tab$": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/tcl.nanorc on line 16: Bad regex 
"^([[:space:]]+|)#.*": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/vhost.nanorc on line 4: Bad regex 
"(\.|/|)vhost\.conf": empty (sub)expression

Press Enter to continue starting nano.

Error in /usr/share/nano/syntax-nanorc/xdefaults.nanorc on line 2: Bad regex 
"(\.|/|)default.$": empty (sub)expression

Error in /usr/share/nano/syntax-nanorc/xdefaults.nanorc on line 2: Bad regex 
"(\.|/|)resource.$": empty (sub)expression

Press Enter to continue starting nano.

---------------

Original issue reported on code.google.com by orte...@gmail.com on 5 Apr 2011 at 10:04

GoogleCodeExporter commented 8 years ago
the invalid character range is easy fixed with a \- instead of just -

Original comment by orte...@gmail.com on 5 Apr 2011 at 10:19

GoogleCodeExporter commented 8 years ago
I'm not seeing where to add the "-" character. 

Could you describe it to me please?

Original comment by GrantWSa...@gmail.com on 19 Apr 2011 at 12:09

GoogleCodeExporter commented 8 years ago
"cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/"
is the original one
"cdrom:\[[a-zA-Z0-9\._\-\(\) ]+\]/"
escaping the dash fixes the invalid "range" error.

Original comment by orte...@gmail.com on 19 Apr 2011 at 4:54