Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Why are function arguments sometimes orange and sometimes not?
Started by kyle_delaney Nov 27 2016 06:11 PM

2 replies to this topic
lua color function argument

Best Answer Perry Clarke , 28 November 2016 - 11:01 AM

The only thing that springs to mind is that some of your files are not set to the "Corona SDK Lua" file type.  You can see the file type Sublime Text has remembered for a file by looking on the status bar in the bottom right:

 

 

You can set the file type in Sublime Text using View > Syntax > Corona SDK Lua

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

kyle_delaney

[GLOBAL: userInfoPane.html]
kyle_delaney
  • Observer

  • 19 posts
  • Corona SDK

I can't for the life of me figure this out. When I type for example 

function foo(bar)

in some files, the argument "bar" turns orange and italic, while in some files it remains plain white. The only pattern I can see is that it stays white in main.lua files that are attached to an actual project.

 

I keep second-guessing myself. Does this mean something I'm not aware of?



[TOPIC: post.html]
#2

Perry Clarke

[GLOBAL: userInfoPane.html]
Perry Clarke
  • Moderator

  • 850 posts
  • Corona Staff

  Best Answer

The only thing that springs to mind is that some of your files are not set to the "Corona SDK Lua" file type.  You can see the file type Sublime Text has remembered for a file by looking on the status bar in the bottom right:

 

Attached File  Screen Shot 2016-11-28 at 10.40.38.png   8.31KB   0 downloads

 

You can set the file type in Sublime Text using View > Syntax > Corona SDK Lua



[TOPIC: post.html]
#3

kyle_delaney

[GLOBAL: userInfoPane.html]
kyle_delaney
  • Observer

  • 19 posts
  • Corona SDK

That was it. Some were Corona SDK Lua while some were just Lua. I should've known. Thanks!




[topic_controls]
[/topic_controls]