From: SourceForge.net <no...@so...> - 2010-11-22 18:59:54
|
Bugs item #3115780, was opened at 2010-11-22 13:59 Message generated for change (Tracker Item Submitted) made by andrearpin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3115780&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface (example) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Andre Arpin (andrearpin) Assigned to: Nobody/Anonymous (nobody) Summary: minor fix to editor.lua Initial Comment: A file with the first line starting with the character # will not compile (it will compile with luac and run with lua) The following code added to the CompileFunction solves the problem local firstLine = editor:GetTextRange(0, editor:PositionFromLine(1)) if string.sub(firstLine, 1,1) == '#' then editorText = '--' .. string.sub(editorText, #firstLine) end ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3115780&group_id=140042 |