Skip to content

Repository language(s) detection not working #22788

Discussion options

You must be logged in to vote

The only way github linguitst detects a matlab/octave file (besides the extensions .matlab/.m) is if the file includes comments that starts with % (my files use the recommended # for octave). Check this file for more information:

github.com

github/linguist/blob/3d39c1c1a0d34c1af890ecfd18cf9ed595c68132/lib/linguist/heuristics.yml#L271

  1. pattern: ':- module'
  2. - language: MUF
  3. pattern: '^: '
  4. - language: M
  5. pattern: '^\s*;'
  6. - language: Mathematica
  7. and:
  8. - pattern: '\(\*'
  9. - pattern: '\*\)$'
  10. - language: MATLAB
  11. pattern: '^\s*%'
  12. - language: Limbo
  13. pattern: '^\w+\s*:\s*module\s*{'
  14. - extensions: ['.mask']
  15. rules:
  16. - language: Unity3d Asset
  17. pattern: 'tag…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants