[Github-comments] [geany/geany] Enable local variable and function parameter tag reporting for C/C++ (PR #3175)

Jiří Techet notifications at github.com
Fri Apr 29 00:11:41 UTC 2022


> 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 or view it on GitHub:
https://github.com/geany/geany/pull/3175#issuecomment-1112766196
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3175/c1112766196 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220428/69248519/attachment.htm>


More information about the Github-comments mailing list