#941 ScriptLexer, API, Line(), Doc mismatch.

closed-invalid
SciTE (626)
2
2010-04-17
2010-04-16
MvGulik
No

line() code needs 2 parameters wile doc only specifies on.
v2.11

(worked around it by using Line(0,iPosition), assuming Doc is intended behavior)

Discussion

  • MvGulik

    MvGulik - 2010-04-16
    • labels: --> SciTE
     
  • MvGulik

    MvGulik - 2010-04-16

    Ps: A additional example note in ScriptLexer page about the needed(?) use of "extension*.ext=script.lua" to active/linkup the lua part might be useful.

     
  • Neil Hodgson

    Neil Hodgson - 2010-04-16
    • priority: 5 --> 2
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-invalid
     
  • Neil Hodgson

    Neil Hodgson - 2010-04-16

    Line is a method on the styler object: print(styler:Line(styler.startPos))

    You shouldn't need to use "extension*.ext=script.lua" to use a script lexer. It works for me when setting the normal Lua script property ext.lua.startup.script.

     
  • MvGulik

    MvGulik - 2010-04-16

    styler:Line(*) ... My mistake, was using styler.Line(*).
    ---
    Aha. I did not try "ext.lua.startup.script". The function name in the example seemed so deliberate general, I kinda dismissed "ext.lua.startup.script" as being the intended linkup for the script part. And started looking for something with a less global scope. which I found in "extension*.ext" (not sure if its scope limited, assuming it is)

    Will try "ext.lua.startup.script" to, although "extension.*.ext" seems more appropriate. (lowering the number of adjustments needed in other properties files to get the lexer working/active on the user side.)

     
  • MvGulik

    MvGulik - 2010-04-17
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks