Ok, well I just checked and Python also allows use before "declare" (assignment)

Yeah, makes sense with dynamic language like Python.

Well, we could have one more callback function in tm_parser.c like

gboolean tm_parser_var_valid_after_declare(TMParserType lang)
{
    if (lang == TM_PARSER_PYTHON)
        return FALSE;
    return TRUE;
}

and make the check based on the return value of this function.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3175/c1112766196@github.com>