benanders / LuaIDE

An in-game IDE for ComputerCraft
MIT License
43 stars 9 forks source link

Highlighting suggestion #16

Closed theoriginalbit closed 11 years ago

theoriginalbit commented 11 years ago

I suggest changing

["pairs"] = "conditional",
["ipairs"] = "conditional",

to

["pairs"] = "function",
["ipairs"] = "function",

Also adding these would be nice... I haven't tested if they work, but they should, I based them off your other ones.

benanders commented 11 years ago

Adding every single one seems a bit unnecessary... I'm not even sure I want function highlighting, because if I highlight just the necessary ones it will make all the other ones look funny.

theoriginalbit commented 11 years ago

ok then, without highlighting them all, how about just making pairs and ipairs 'function' instead of 'conditional'?

theoriginalbit commented 11 years ago

also I think you should uncomment print write and sleep.

benanders commented 11 years ago

The problem with write was it would highlight if I did term.write or fileHandle:write/.write, etc...

What would be the regex to avoid this? I'm not good with the not operator in regex :P

benanders commented 11 years ago

I'll change the ipairs and pairs :P