[SVN] language help
Steven Ross
nowhiding at gmail.com
Wed Apr 16 16:48:44 UTC 2008
All,
I'm having trouble with a language definition... for some reason I can't get
this regex to work: (it does work in textmate's finder but, I'm guessing its
something with the ruby parser or the way that TM handles regex in a
language file that is screwing it up).
{ name = 'function';
contentName = 'entity.name.function';
begin = 'cffunction(\s)*name=("|'')';
end = '("|'')';
},
I am trying to capture the value (validate) assigned below:
code sample:
<cffunction name="validate" returnType="array" access="private"
hint="returns error array">
<cfargument name="inputXML" type="xml" required="true" hint="the input
xml">
<cfset var local = {retArray=ArrayNew(1), input=arguments.inputXML}/>
<cfset local.xml =
local.input.carlineCatalogRequest.carlineCatalogQueryParameters />
<cfif isEmpty(local.xml.year.XMLText)>
<cfset ArrayAppend(local.retArray, util.createErrorStruct('year', 'is
Empty', '0010', i-1))/>
</cfif>
<cfif isEmpty(local.xml.model.XMLText)>
<cfset ArrayAppend(local.retArray, util.createErrorStruct('model', 'is
Empty', '0010', i-1))/>
</cfif>
<cfreturn local.retArray/>
</cffunction>
thanks,
Steven
--
Steven Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate-dev/attachments/20080416/5539771b/attachment.html>
More information about the textmate-dev
mailing list