Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Syn (Lister plugin) 
Author Message
Lev



PostPosted: Thu Jul 27, 2006 19:26    Post subject: Reply with quote

Quote:
Регекспы для детектирования функций и переменных в подсветках прописал на скорую руку для тех языков что знал, так что кто доработает выкладывайте тут.
Выкусил из ини файла mystix (http://sf.net/projects/mystix)

C#, C++
DocumentTypeFunctionRegExp3=^[A-Za-z]+([\x20\t]*)[A-Za-z]+[A-Za-z0-9_:]*\([^)]*\)

INI
DocumentTypeFunctionRegExp7=\[[A-Za-z0-9_]+\]

Pascal
DocumentTypeFunctionRegExp12=^(function|procedure)([\x20\t]*)[A-Za-z]+[A-Za-z0-9_.]*\([^)]*\)

Perl
DocumentTypeFunctionRegExp13=sub([\x20\t]*)[A-Za-z]+[A-Za-z0-9_]*\([^)]*\)

PHP
DocumentTypeFunctionRegExp14=function([\x20\t]*)[A-Za-z]+[A-Za-z0-9_]*\([^)]*\)

VBScript, Visual Basic
DocumentTypeFunctionRegExp16=^(private|public)?([\x20\t]*)(function|sub)([\x20\t]*)[A-Za-z]+[A-Za-z0-9_.]*\([^)]*\)
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group