All,<div><br></div><div>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).</div>
<div><br></div><div><div>{<span class="Apple-tab-span" style="white-space:pre"> </span>name = 'function';</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>contentName = 'entity.name.function';</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>begin = 'cffunction(\s)*name=("|'')';</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>end = '("|'')';</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>},</div><div><br></div><div><br></div><div>I am trying to capture the value (validate) assigned below:</div><div><br></div><div><br></div><div>code sample:</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span><cffunction name="validate" returnType="array" access="private" hint="returns error array"></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><cfargument name="inputXML" type="xml" required="true" hint="the input xml"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><cfset var local = {retArray=ArrayNew(1), input=arguments.inputXML}/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><cfset local.xml = local.input.carlineCatalogRequest.carlineCatalogQueryParameters /></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><cfif isEmpty(local.xml.year.XMLText)></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><cfset ArrayAppend(local.retArray, util.createErrorStruct('year', 'is Empty', '0010', i-1))/></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></cfif></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><cfif isEmpty(local.xml.model.XMLText)></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><cfset ArrayAppend(local.retArray, util.createErrorStruct('model', 'is Empty', '0010', i-1))/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></cfif></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><cfreturn local.retArray/></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></cffunction></div>
</div><div><br></div><div>thanks,</div><div><br></div><div>Steven</div><div><br></div><div><br></div><br>-- <br>Steven Ross<br>web application & interface developer<br><a href="http://blog.stevensross.com">http://blog.stevensross.com</a><br>
[mobile] 404-488-4364 [fax] (404) 592-6885<br>[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
</div>