| feature request: highlight globals [message #835000] |
Mon, 02 April 2012 13:05  |
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
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 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 exists. That seems harder though.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02011 seconds