persist_add in library lua

Let Sim Innovations know about your Air Manager experience and let us know about your dream feature addition

Moderators: russ, Ralph

Post Reply
Message
Author
aparsons671
Posts: 27
Joined: Wed Feb 26, 2020 12:48 am

persist_add in library lua

#1 Post by aparsons671 »

AM4.0b8

I have a library lua that uses persist_get, persist_put and persist_add in it and the text in the editor is white...it functions as expected, but the formatting in the library code isn't highlighted as it is in the logic.lua

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: persist_add in library lua

#2 Post by Corjan »

Hi,

Could you post the content of the lua file here?

Corjan

aparsons671
Posts: 27
Joined: Wed Feb 26, 2020 12:48 am

Re: persist_add in library lua

#3 Post by aparsons671 »

i suppose I could, but all you have to do is create a file in the library folder and call persist_add inside it instead of logic.lua and you'll see what I mean...it's not pink formatted like usually

In logic.lua, special functions like var_cap, var_round, persist_put, parsist_add, persist_get and many more get the MAGENTA treatment
image.png
When not in the logic.lua, they appear as any other function call and not special
image.png

Post Reply