Thierry wrote:
> 
> Replace the key 'Function Pattern' with the one below
> and you might have a surprise with code folding..

Well I did and it works in BBEdit. Not sure what the surprise is though, unless 
you have something in mind with the two unused named patterns.

I also used it in a modified LiveCode Builder CLM and it works a treat there (I 
couldn't get my mod to work correctly)


                <key>Function Pattern</key>
                <string><![CDATA[
                        (?x: 
                        ^(?P<f>(?P<function_name>
                        ((private\s+)|(public\s+)|(foreign\s+))?(handler)\s+)
                        (?P<ff>[a-zA-Z0-9_]+))
                        (?ms:.+?)
                        ^end\s+handler
                        )
                ]]></string>

So thank you very much!

I have now updated the livescript CLM with Thierry's mod and a fix for controls 
not appearing in the text color prefs.

I have also added my modified LiveCode Builder CLM which includes many more 
keywords (thanks Ali) broken into their "Types" as specified in the docs.
As with the livescript version due to the need to break keywords into single 
word entities some of my choices in eliminating duplicates may not be truly 
correct, but its a minor glitch.

The files can be obtained...

https://dl.dropboxusercontent.com/u/8212901/LiveCodeBuilder.plist 
<https://dl.dropboxusercontent.com/u/8212901/LiveCodeBuilder.plist>

https://dl.dropboxusercontent.com/u/8212901/Livescript.plist 
<https://dl.dropboxusercontent.com/u/8212901/Livescript.plist>



James

(looking forward to Thierry's next post)



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to