Skip to content

Commit

Permalink
Merge pull request #36 from JoelNiemela/update-language-guess
Browse files Browse the repository at this point in the history
Update _LANGUAGE_GUESS to include new languages
  • Loading branch information
gkreitz authored Sep 15, 2023
2 parents f5c31f3 + 57f7513 commit be7fee7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@
'.sh': 'Bash',
'.apl': 'APL',
'.ss': 'Gerbil',
'.jl': 'Julia',
'.vb': 'Visual Basic',
'.dart': 'Dart',
'.zig': 'Zig',
'.swift': 'Swift',
'.nim': 'Nim',
}

_GUESS_MAINCLASS = {'Java', 'Scala', 'Kotlin'}
_GUESS_MAINFILE = {'Python 2', 'Python 3', 'PHP', 'JavaScript', 'Rust', 'Pascal'}
_GUESS_MAINCLASS = {'Java', 'Kotlin', 'Scala'}
_GUESS_MAINFILE = {'APL', 'Bash', 'Dart', 'Gerbil', 'JavaScript (Node.js)', 'Julia', 'Common Lisp', 'Pascal', 'PHP', 'Python 2', 'Python 3', 'Ruby', 'Rust', 'TypeScript', 'Zig'}

_HEADERS = {'User-Agent': 'kattis-cli-submit'}

Expand Down

0 comments on commit be7fee7

Please sign in to comment.