Skip to content

Tcl and TCC-interpreted C misclassified as JavaScript #2127

@ghost

Description

linguist seems to be a bit too happy to mark code as JavaScript.

This is a normal C file, only without an extension. The first line states /usr/bin/tcc -run as the interpreter, which is a very unmistakable identifier for regular C code. I suggest adding this "interpreter" to languages.yml for C.
https://github.com/pjanouch/ZyklonB/blob/master/plugins/script

Similarly, while this Tcl file doesn't have an extension either, the interpreter line of /usr/bin/env tclsh should make it pretty clear that this is supposed to be Tcl code. tclsh seems to be already present in languages.yml, so I'm not sure if this is a problem of JavaScript overriding this, or of not being able to detect interpreters correctly after /usr/bin/env.
https://github.com/pjanouch/ZyklonB/blob/master/plugins/coin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions