Hello all --

I've gotten partway to getting this working, but am completely lost
searching for understandable documentation on how to get the rest of the
way there.

I have a JavaScript "compiler", which analyzes an input file (named
.jss, to differentiate input and output files) for various
inconsistences and warns about what it finds, using an idiosyncratic
format for messages. For example, given flip.jss

    function flip(arg) {
        return arg == false;
    }

    var value = flip('trueString');

the output is

    >jsc /home/howard/tmp/flip.jss;
    Warning [flip.jss:5:18]: type mismatch:
        conflict between boolean [flip.jss:2:16]
        and string [flip.jss:5:18]
    >Exit code: 0

I've figured out how to get this run from within SciTE: my .SciTEUser.properties
file says

    file.patterns.jss=*.jss
    command.compile.$(file.patterns.jss)=jsc $(FilePath);

but that's as far as I've gotten.

1.  Is .SciteUser.properties the correct place for file.patterns and
    command.compile definitions? If I want to deliver this to other
    users, is it OK to put it in SciTEGlobal.properties?

2.  How do I tell SciTE how to parse the error messages so that it
    will move to the correct line (and column?) in the source file?
    I've read something documenting "output.format", but don't know
    how to link that with this command. Can I define a regular expression
    telling SciTE how to parse the message, or is this hard-coded?
    (Clicking on the line "Warning [flip.jss:..." does nothing; but
    clicking on either of the other two messages *does* place the yellow
    bullet on the correct line in the source. Why?)

Thanks for your help.

Howard Jess (hj)
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to