Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Koneki » feature request: highlight globals
feature request: highlight globals [message #835000] Mon, 02 April 2012 13:05 Go to previous message
Jay Carlson is currently offline Jay Carlson
Messages: 2
Registered: April 2012
Junior Member
One of the most common errors in Lua is to misspell an identifier. If you have
local tests
print(test)
test will refer to a global. The AST contains this information. Many code styles, especially for modules, do not use globals much outside of local foo=foo imports. A visual highlight on test in
print(test)
would help people coding this way.

I don't know much about the DLTK, but Smalltalk has a cheap non-typed typo checker for method selectors. Translated to Lua, an occurrence of foo.testt is likely to be a typo unless somewhere else in the program any
bar.testt=...
exists. That seems harder though.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:debugging lua 5.2
Next Topic:"realtime" console update?
Goto Forum:
  


Current Time: Wed May 22 15:03:54 EDT 2013

Powered by FUDForum. Page generated in 0.01733 seconds