Binary *.n files are Neko (haXe) applications, not Nemerle code #106

Closed
jgranick opened this Issue Jan 22, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@jgranick

Linguist is flagging any file with a *.n extension as Nemerle, but the extension is used by Neko binary code.

Since this is compiled code, I don't think it should be counted towards any source code total -- but it should not be flagged as Nemerle!

For example, I have a project which includes haXe source code, that compiles to a Neko application for processing Javascript, building JS projects, etc. 68% of the file total is the compiled *.n application, while the rest is the haXe source code.

@jgranick

This comment has been minimized.

Show comment Hide comment
@jgranick

jgranick Jan 22, 2012

Clues that a file is Neko, and not Nemerle:

  • It is binary, not ASCII
  • The file begins with the string "NEKO"

Clues that a file is Neko, and not Nemerle:

  • It is binary, not ASCII
  • The file begins with the string "NEKO"
@josh

This comment has been minimized.

Show comment Hide comment
@josh

josh Feb 3, 2012

Member

Yeah, its kind of tricky. But for the most part we try to exclude any binary files.

See https://github.com/github/linguist/blob/master/lib/linguist/blob_helper.rb#L381

Member

josh commented Feb 3, 2012

Yeah, its kind of tricky. But for the most part we try to exclude any binary files.

See https://github.com/github/linguist/blob/master/lib/linguist/blob_helper.rb#L381

@josh josh closed this Feb 3, 2012

@jgranick

This comment has been minimized.

Show comment Hide comment
@jgranick

jgranick Feb 3, 2012

Currently, any file that uses an *.n extension will be flagged as Nemerle.

It should only be considered Nemerle if it is an ASCII file, and not binary

jgranick commented Feb 3, 2012

Currently, any file that uses an *.n extension will be flagged as Nemerle.

It should only be considered Nemerle if it is an ASCII file, and not binary

@andyli

This comment has been minimized.

Show comment Hide comment
@andyli

andyli Nov 26, 2012

Contributor

Neko binary is still considered as Nemerle at the moment... https://github.com/andyli/TestNekoBin

Contributor

andyli commented Nov 26, 2012

Neko binary is still considered as Nemerle at the moment... https://github.com/andyli/TestNekoBin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment