-
Notifications
You must be signed in to change notification settings - Fork 4
/
language.py
52 lines (51 loc) · 934 Bytes
/
language.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
:copyright: (c) 2014 by Shyam Sundar Choudhary.
:license: The MIT License , see LICENSE for more details.
"""
DetectedLanguage = {
#.c,.h: C
'c':'C',
'h':'C',
#.cc .cpp .cxx .c++ .h .hh : CPP
'cc':'CPP' ,
'cpp':'CPP' ,
'cxx':'CPP' ,
'c++':'CPP' ,
'h' :'CPP' ,
'hh' :'CPP' ,
#.py .pyw, .pyc, .pyo, .pyd : PYTHON
'py':'PYTHON' ,
'pyw':'PYTHON' ,
'pyc':'PYTHON' ,
'pyo':'PYTHON' ,
'pyd':'PYTHON' ,
#.clj .edn : CLOJURE
'clj':'CLOJURE' ,
'edn':'CLOJURE' ,
#.js : JAVASCRIPT
'js':'JAVASCRIPT',
#.java .class .jar :JAVA
'java' :'JAVA',
'class' :'JAVA',
'jar' :'JAVA',
#.rb .rbw:RUBY
'rb':'RUBY',
'rbw':'RUBY',
#.hs .hls:HASKELL
'hs':'HASKELL',
'hls':'HASKELL',
#.pl .pm .t .pod:PERL
'pl':'PERL',
'pm':'PERL',
't':'PERL',
'pod':'PERL',
#php, .phtml, .php4, .php3, .php5, .phps
'php':"PHP",
'phtml':"PHP",
'php4':"PHP",
'php3':"PHP",
'php5':"PHP",
'phps':"PHP",
#.cs : CSHARP
'cs':'CSHARP'
}