[Lxr-commits] CVS: lxr/lib/LXR/Lang ectags.conf,1.1,1.2 generic.conf,1.11,1.12
Brought to you by:
ajlittoz
From: Dave B. <bro...@us...> - 2004-07-07 20:46:51
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25899/lib/LXR/Lang Modified Files: ectags.conf generic.conf Log Message: futher regexp tweaks Index: ectags.conf =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/ectags.conf,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ectags.conf 1 Jul 2004 20:41:36 -0000 1.1 +++ ectags.conf 7 Jul 2004 20:46:42 -0000 1.2 @@ -1,23 +1,27 @@ ---regex-comment= VB regexps modified from http://www.rutherfurd.net/weblog/2003/04/ +--regex-comment= VB regexps modified from http://www.rutherfurd.net/weblog/2003/04/; the two variable lines are a bad hack to match array variables but not match functions/subs --langdef=VB --langmap=VB:.bas.cls.ctl.frm.vbs ---regex-VB=/^(Public|Private|\b)[ \t]*Sub[ \t]+([a-zA-Z0-9_]+)/\2/s,subroutine/i ---regex-VB=/^(Public|Private|\b)[ \t]*Function[ \t]+([a-zA-Z0-9_]+)/\2/f,function/i ---regex-VB=/^(Public|Private|Global|Dim)[ \t]+([a-zA-Z0-9_]+)[ \t]+As[ \t]+/\2/v,variable/i ---regex-VB=/^(Public|Private|Global|Dim|\b)[ \t]*Const[ \t]+([a-zA-Z0-9_]+)[ \t]+(As|=)[ \t]+/\2/c,const/i ---regex-VB=/^(Public|\b)[ \t]*Property[ \t]*(Get|Let|Set)[ \t]+([a-zA-Z0-9_]+)/\3/n,name/i ---regex-VB=/^(Public|Private|\b)[ \t]*Enum[ \t]+([a-zA-Z0-9_]+)/\2/e,enum/i +--regex-VB=/^[ \t]*(Public|Private|\b)[ \t]*Sub[ \t]+([a-zA-Z0-9_]+)/\2/s,subroutine/i +--regex-VB=/^[ \t]*(Public|Private|\b)[ \t]*Function[ \t]+([a-zA-Z0-9_]+)/\2/f,function/i +--regex-VB=/^[ \t]*(Public|Private|\b)[ \t]*Type[ \t]+([a-zA-Z0-9_]+)/\2/t,type/i +--regex-VB=/([a-zA-Z0-9_]+)[ \t]+As[ \t]+/\1/v,variable/ +--regex-VB=/(Public|Private|Global|Dim|ByVal|ByRef|\b)[ \t]*([a-zA-Z0-9_]+)\(.*\)[ \t]+As[ \t]+/\2/v,variable/ +--regex-VB=/^[ \t]*(Public|Private|Global|Dim|\b)[ \t]*Const[ \t]+([a-zA-Z0-9_]+)[ \t]+(As|=)[ \t]+/\2/c,const/i +--regex-VB=/^[ \t]*(Public|\b)[ \t]*Property[ \t]*(Get|Let|Set)[ \t]+([a-zA-Z0-9_]+)/\3/n,name/i +--regex-VB=/^[ \t]*(Public|Private|\b)[ \t]*Enum[ \t]+([a-zA-Z0-9_]+)/\2/e,enum/i --regex-VB=/^([a-zA-Z_]+):/\1/l,label/i --regex-comment= we define SQL2 with regexps because the built-in SQL parsing doesn't work right --langdef=SQL2 --langmap=SQL2:.sql ---regex-SQL2=/[^a-zA-Z0-9_](ALTER|CREATE)[ \t]+TABLE[ \t]+([a-zA-Z0-9_]+)/\2/t,table/i ---regex-SQL2=/([a-zA-Z0-9_]+)[ \t]+(number|varchar|varchar2|bool|boolean|bit|character|char|text|smallint|int|bigint|integer|real|double|float|date|time|timestamp|interval|long|wchar|varwchar|longwvarchar|decimal|numeric|binary|varbinary|guid)[^a-zA-Z0-9_]/\1/f,field/i ---regex-SQL2=/[^a-zA-Z0-9_]CONSTRAINT[ \t]+([a-zA-Z0-9_]+)/\1/c,constraint/i ---regex-SQL2=/[^a-zA-Z0-9_]FUNCTION[ \t]+([a-zA-Z0-9_]+)/\1/F,function/i ---regex-SQL2=/[^a-zA-Z0-9_]PROCEDURE[ \t]+([a-zA-Z0-9_]+)/\1/P,procedure/i ---regex-SQL2=/[^a-zA-Z0-9_]CURSOR[ \t]+([a-zA-Z0-9_]+)/\1/C,cursor/i ---regex-SQL2=/CREATE[ \t+](OR[ \t]+REPLACE[ \t]+)?TRIGGER[ \t]+([a-zA-Z0-9_]+)/\2/T,trigger/i ---regex-SQL2=/CREATE[ \t+](OR[ \t]+REPLACE[ \t]+)?PACKAGE[ \t]+([a-zA-Z0-9_]+)/\2/p,package/i +--regex-SQL2=/CREATE[ \t]+TABLE[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/t,table/i +--regex-SQL2=/([a-zA-Z_][a-zA-Z0-9_]*)[ \t]+(number|varchar|varchar2|bool|boolean|bit|character|char|text|smallint|int|bigint|integer|real|double|float|date|time|timestamp|interval|long|wchar|varwchar|longwvarchar|decimal|numeric|binary|varbinary|guid)[^a-zA-Z0-9_]/\1/f,field/i +--regex-SQL2=/[^a-zA-Z0-9_]CONSTRAINT[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/c,constraint/i +--regex-SQL2=/[^a-zA-Z0-9_]FUNCTION[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/F,function/i +--regex-SQL2=/[^a-zA-Z0-9_]PROCEDURE[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/P,procedure/i +--regex-SQL2=/[^a-zA-Z0-9_]CURSOR[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/C,cursor/i +--regex-SQL2=/CREATE[ \t]+INDEX[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/i,index/i +--regex-SQL2=/CREATE[ \t]+SEQUENCE[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/s,sequence/i +--regex-SQL2=/CREATE[ \t+](OR[ \t]+REPLACE[ \t]+)?TRIGGER[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\2/T,trigger/i +--regex-SQL2=/CREATE[ \t+](OR[ \t]+REPLACE[ \t]+)?PACKAGE[ \t]+(BODY){0}([a-zA-Z_][a-zA-Z0-9_]*)/\3/p,package/i Index: generic.conf =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/generic.conf,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- generic.conf 1 Jul 2004 20:41:26 -0000 1.11 +++ generic.conf 7 Jul 2004 20:46:42 -0000 1.12 @@ -244,6 +244,10 @@ }, 'SQL' => { 'reserved' => [ +# some oracle reserved words +'SYSDATE', +'SEQUENCE', +# sql 89, 92, and 99 reserved words 'ABSOLUTE', 'ACTION', 'ADD', @@ -599,6 +603,8 @@ 'P' => 'procedure', 'C' => 'cursor', 'p' => 'package', + 'i' => 'index', + 's' => 'sequence', }, 'langid' => '11', }, @@ -654,6 +660,7 @@ 'l' => 'label', 'e' => 'enum', 'v' => 'variable', + 't' => 'type', }, 'langid' => '12', }, |