Advanced

Re: Syntax updated

Syntax updated
March 16, 2018 05:53PM
I have now updated the syntax for all current LUA scripts, via GitLab.

The search and replace from old to new syntax has been removed from the code, so from now on, the new syntax is what's needed. I have updated the Skeleton code to reflect that. Hopefully I didn't miss anything in it, I did it manually.

I was supposed to update the documentation today, but got stuck with other stuff. I will try to do that in the weekend, or on Monday. While doing that, I will look into extending the skeleton code to show what input variables the Sandbox gets. I will try to add a comment that a GetFinds-filter can be provided straight from the JSON-conf as well.

Anyone have thought about anything else that I should add to the Skeleton code?
Re: Syntax updated
March 17, 2018 10:30AM
Using the example filter setup directly from the tag (filter = conf.filter) as the default way could be vice as it makes things easier in the future for any checker.

PGC.HTMLEscape would be nice to introduce. It is too easy to forget.

Correct way to determine available runtime could be very important. (The new function which name I have alread forgot)
Re: Syntax updated
March 19, 2018 11:29AM
Documentation and skeleton code updated. I did look at arisoft's points while doing the later.
Re: Syntax updated
June 12, 2018 03:49PM
magma1447 Wrote:
-------------------------------------------------------
> Documentation and skeleton code updated. I did
> look at arisoft's points while doing the later.

I found a bug in the skeleton

for _,cache in IPairs(finds) do

should be

for _,cache in ipairs(finds) do
Re: Syntax updated
June 12, 2018 03:53PM
Thanks. Though I think the code said
for _,f in IPairs(finds) do

Anyway, updated to
for _,f in ipairs(finds) do

(only in development environment this far)
Sorry, you do not have permission to post/reply in this forum.