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

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to