dansanderson / picotool

Tools and Python libraries for manipulating Pico-8 game files. http://www.lexaloffle.com/pico-8.php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support foo"bar" and foo{bar} function calling syntaxes

dansanderson opened this issue · comments

Lua supports a special syntax for one-argument function calls whose values are strings or tables where you can omit the parentheses. Pico-8 counts this syntax as one token less than the equivalent with parens.

print"hi"    -- 2 tokens
print("hi")  -- 3 tokens

This is actually working, including matching token count. Not sure why I filed this. If I find the example I think was breaking I'll reopen.