[Laszlo-dev] [Laszlo-checkins] r10008 - openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/js2doc

P T Withington ptw at pobox.com
Thu Jun 26 05:08:08 PDT 2008


On 2008-06-25, at 21:18 EDT, dda at openlaszlo.org wrote:

> -        static private final Pattern paramPattern  =  
> Pattern.compile("^\\s*(?:(\\w+)\\s+)?(\\w*)(?::(.*))?$",  
> Pattern.DOTALL);
> -        static private final Pattern returnPattern =  
> Pattern.compile("^\\s*(\\w+)(?::(.*))?$", Pattern.DOTALL);
> +        static private final Pattern paramPattern  =  
> Pattern.compile("^\\s*(?:([\\w\\[\\]\\|\\*]+)\\s+)?([.\\w]*)(?:: 
> (.*))?$", Pattern.DOTALL);
> +        static private final Pattern returnPattern =  
> Pattern.compile("^\\s*([\\w\\[\\]\\|\\*]+)(?::(.*))?$",  
> Pattern.DOTALL);

Boy, one thing python got right is raw strings that would let you type  
regexps without having to double all your escapes.  The 'line noise'  
above makes my eyes hurt.


More information about the Laszlo-dev mailing list