Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 02-13-2018, 10:01 PM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default ReaScript IDE: funcname{table} and funcname[[string]] not colored correctly (FIXED)

In Lua, functions that take only a table or only a string as argument, can be called like this:
Code:
funcname{table}
funcname[[string]]
funcname"string"
The IDE does not seem to recognize these function calls, and doesn't color them correctly.

Last edited by juliansader; 02-20-2018 at 12:59 PM.
juliansader is offline   Reply With Quote
Old 02-14-2018, 05:08 AM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,749
Default

?

schwa is offline   Reply With Quote
Old 02-14-2018, 05:22 AM   #3
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Native Lua and API functions are recognized, but not user-defined functions.

EDIT: By "recognize", I meant "color" in the IDE UI. They are executed properly.
juliansader is offline   Reply With Quote
Old 02-14-2018, 05:28 AM   #4
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,749
Default

User-defined functions don't get syntax highlighting at all, do they?
schwa is offline   Reply With Quote
Old 02-14-2018, 06:17 AM   #5
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by schwa View Post
User-defined functions don't get syntax highlighting at all, do they?
Any text that ends with "(", such as "funcname(" (and that is not a Lua keyword or API function) is recognized by the IDE as an "implied function", and colored with the corresponding colors in the theme tweaker:

Attached Images
File Type: png REAPER IDE function colors 2.PNG (1.4 KB, 397 views)

Last edited by juliansader; 02-14-2018 at 06:33 AM.
juliansader is offline   Reply With Quote
Old 02-20-2018, 12:58 PM   #6
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Fixed in v5.75!
juliansader is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.