language_sniffer 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1055 @@
1
+ # Defines all Languages known
2
+ #
3
+ # type - Either data, programming, markup, or nil
4
+ # aliases - An Array of additional aliases (implicitly
5
+ # includes name.downcase)
6
+ # extension - An Array of associated extensions
7
+ # primary_extension - A String for the main extension associated with
8
+ # the langauge. (defaults to extensions.first)
9
+ # overrides - An Array of extensions that takes precedence over conflicts
10
+ # searchable - Boolean flag to enable searching (defaults to true)
11
+ # search_term - Deprecated: Some languages maybe indexed under a
12
+ # different alias. Avoid defining new exceptions.
13
+ #
14
+ # Any additions or modifications (even trivial) should have corresponding
15
+ # test change in `test/test_blob.rb`.
16
+ #
17
+ # Please keep this list alphabetized.
18
+
19
+ ASP:
20
+ type: programming
21
+ lexer: aspx-vb
22
+ search_term: aspx-vb
23
+ aliases:
24
+ - aspx
25
+ - aspx-vb
26
+ primary_extension: .asp
27
+ extensions:
28
+ - .asax
29
+ - .ascx
30
+ - .ashx
31
+ - .asmx
32
+ - .asp
33
+ - .aspx
34
+ - .axd
35
+
36
+ ActionScript:
37
+ type: programming
38
+ lexer: ActionScript 3
39
+ search_term: as3
40
+ aliases:
41
+ - as3
42
+ extensions:
43
+ - .as
44
+
45
+ Ada:
46
+ type: programming
47
+ extensions:
48
+ - .adb
49
+ - .ads
50
+
51
+ AppleScript:
52
+ primary_extension: .scpt
53
+ extensions:
54
+ - .applescript
55
+ - .scpt
56
+
57
+ Arc:
58
+ type: programming
59
+ lexer: Text only
60
+ extensions:
61
+ - .arc
62
+
63
+ Assembly:
64
+ type: programming
65
+ lexer: NASM
66
+ search_term: nasm
67
+ aliases:
68
+ - nasm
69
+ extensions:
70
+ - .asm
71
+
72
+ AutoHotkey:
73
+ type: programming
74
+ lexer: autohotkey
75
+ aliases:
76
+ - ahk
77
+ extensions:
78
+ - .ahk
79
+
80
+ Batchfile:
81
+ type: programming
82
+ group: Shell
83
+ search_term: bat
84
+ aliases:
85
+ - bat
86
+ primary_extension: .bat
87
+ extensions:
88
+ - .bat
89
+ - .cmd
90
+
91
+ Befunge:
92
+ extensions:
93
+ - .befunge
94
+
95
+ BlitzMax:
96
+ extensions:
97
+ - .bmx
98
+
99
+ Boo:
100
+ type: programming
101
+ extensions:
102
+ - .boo
103
+
104
+ Brainfuck:
105
+ extensions:
106
+ - .b
107
+ - .bf
108
+
109
+ C:
110
+ type: programming
111
+ overrides:
112
+ - .h
113
+ primary_extension: .c
114
+ extensions:
115
+ - .c
116
+ - .h
117
+
118
+ C#:
119
+ type: programming
120
+ search_term: csharp
121
+ aliases:
122
+ - csharp
123
+ extensions:
124
+ - .cs
125
+
126
+ C++:
127
+ type: programming
128
+ search_term: cpp
129
+ aliases:
130
+ - cpp
131
+ primary_extension: .cpp
132
+ extensions:
133
+ - .c++
134
+ - .cc
135
+ - .cpp
136
+ - .cu
137
+ - .cxx
138
+ - .h
139
+ - .h++
140
+ - .hh
141
+ - .hpp
142
+ - .hxx
143
+ - .tcc
144
+
145
+ C-ObjDump:
146
+ type: data
147
+ lexer: c-objdump
148
+ extensions:
149
+ - .c-objdump
150
+
151
+ CMake:
152
+ extensions:
153
+ - .cmake
154
+ - .cmake.in
155
+ filenames:
156
+ - CMakeLists.txt
157
+
158
+ CSS:
159
+ extensions:
160
+ - .css
161
+
162
+ ChucK:
163
+ lexer: Java
164
+ extensions:
165
+ - .ck
166
+
167
+ Clojure:
168
+ type: programming
169
+ primary_extension: .clj
170
+ extensions:
171
+ - .clj
172
+ - .cljs
173
+
174
+ CoffeeScript:
175
+ type: programming
176
+ aliases:
177
+ - coffee
178
+ extensions:
179
+ - .coffee
180
+ filenames:
181
+ - Cakefile
182
+
183
+ ColdFusion:
184
+ type: programming
185
+ lexer: Coldfusion HTML
186
+ search_term: cfm
187
+ aliases:
188
+ - cfm
189
+ primary_extension: .cfm
190
+ extensions:
191
+ - .cfc
192
+ - .cfm
193
+
194
+ Common Lisp:
195
+ type: programming
196
+ aliases:
197
+ - lisp
198
+ primary_extension: .lisp
199
+ extensions:
200
+ - .lisp
201
+ - .ny
202
+
203
+ Cpp-ObjDump:
204
+ type: data
205
+ lexer: cpp-objdump
206
+ extensions:
207
+ - .cppobjdump
208
+ - .c++objdump
209
+ - .cxx-objdump
210
+
211
+ Cucumber:
212
+ lexer: Gherkin
213
+ extensions:
214
+ - .feature
215
+
216
+ Cython:
217
+ type: programming
218
+ group: Python
219
+ primary_extension: .pyx
220
+ extensions:
221
+ - .pxd
222
+ - .pxi
223
+ - .pyx
224
+
225
+ D:
226
+ type: programming
227
+ extensions:
228
+ - .d
229
+ - .di
230
+
231
+ D-ObjDump:
232
+ type: data
233
+ lexer: d-objdump
234
+ extensions:
235
+ - .d-objdump
236
+
237
+ Darcs Patch:
238
+ search_term: dpatch
239
+ aliases:
240
+ - dpatch
241
+ extensions:
242
+ - .darcspatch
243
+ - .dpatch
244
+
245
+ Delphi:
246
+ type: programming
247
+ primary_extension: .pas
248
+ extensions:
249
+ - .dpr
250
+ - .pas
251
+
252
+ Diff:
253
+ extensions:
254
+ - .diff
255
+ - .patch
256
+
257
+ Dylan:
258
+ type: programming
259
+ extensions:
260
+ - .dylan
261
+
262
+ Eiffel:
263
+ type: programming
264
+ lexer: Text only
265
+ extensions:
266
+ - .e
267
+
268
+ Emacs Lisp:
269
+ type: programming
270
+ lexer: Scheme
271
+ aliases:
272
+ - elisp
273
+ primary_extension: .el
274
+ extensions:
275
+ - .el
276
+ - .emacs
277
+
278
+ Erlang:
279
+ type: programming
280
+ primary_extension: .erl
281
+ extensions:
282
+ - .erl
283
+ - .hrl
284
+
285
+ F#:
286
+ type: programming
287
+ lexer: OCaml
288
+ search_term: ocaml
289
+ extensions:
290
+ - .fs
291
+ - .fsi
292
+ - .fsx
293
+
294
+ FORTRAN:
295
+ type: programming
296
+ lexer: Fortran
297
+ primary_extension: .f90
298
+ extensions:
299
+ - .F
300
+ - .F90
301
+ - .f
302
+ - .f90
303
+
304
+ Factor:
305
+ type: programming
306
+ extensions:
307
+ - .factor
308
+
309
+ Fancy:
310
+ type: programming
311
+ primary_extension: .fy
312
+ extensions:
313
+ - .fancypack
314
+ - .fy
315
+
316
+ GAS:
317
+ type: programming
318
+ group: Assembly
319
+ primary_extension: .s
320
+ extensions:
321
+ - .S
322
+ - .s
323
+
324
+ Genshi:
325
+ extensions:
326
+ - .kid
327
+
328
+ Gentoo Ebuild:
329
+ group: Shell
330
+ lexer: Bash
331
+ extensions:
332
+ - .ebuild
333
+
334
+ Gentoo Eclass:
335
+ group: Shell
336
+ lexer: Bash
337
+ extensions:
338
+ - .eclass
339
+
340
+ Gettext Catalog:
341
+ search_term: pot
342
+ searchable: false
343
+ aliases:
344
+ - pot
345
+ extensions:
346
+ - .po
347
+ - .pot
348
+
349
+ Go:
350
+ type: programming
351
+ extensions:
352
+ - .go
353
+
354
+ Gosu:
355
+ type: programming
356
+ primary_extension: .gs
357
+ extensions:
358
+ - .gs
359
+ - .gsp
360
+ - .gst
361
+ - .gsx
362
+ - .vark
363
+
364
+ Groff:
365
+ primary_extension: .man
366
+ extensions:
367
+ - '.1'
368
+ - '.2'
369
+ - '.3'
370
+ - '.4'
371
+ - '.5'
372
+ - '.6'
373
+ - '.7'
374
+ - .man
375
+
376
+ Groovy:
377
+ type: programming
378
+ lexer: Java
379
+ primary_extension: .groovy
380
+ extensions:
381
+ - .gradle
382
+ - .groovy
383
+
384
+ Groovy Server Pages:
385
+ group: Groovy
386
+ lexer: Java Server Page
387
+ overrides:
388
+ - .gsp
389
+ aliases:
390
+ - gsp
391
+ extensions:
392
+ - .gsp
393
+
394
+ HTML:
395
+ type: markup
396
+ primary_extension: .html
397
+ extensions:
398
+ - .htm
399
+ - .html
400
+ - .xhtml
401
+ - .xslt
402
+
403
+ HTML+Django:
404
+ type: markup
405
+ group: HTML
406
+ lexer: HTML+Django/Jinja
407
+ extensions:
408
+ - .mustache
409
+
410
+ HTML+ERB:
411
+ type: markup
412
+ group: HTML
413
+ lexer: RHTML
414
+ primary_extension: .erb
415
+ extensions:
416
+ - .erb
417
+ - .html.erb
418
+
419
+ HTML+PHP:
420
+ type: markup
421
+ group: HTML
422
+ extensions:
423
+ - .phtml
424
+
425
+ HaXe:
426
+ type: programming
427
+ lexer: haXe
428
+ extensions:
429
+ - .hx
430
+ - .hxml
431
+ - .mtt
432
+
433
+ Haml:
434
+ group: HTML
435
+ type: markup
436
+ extensions:
437
+ - .haml
438
+
439
+ Haskell:
440
+ type: programming
441
+ extensions:
442
+ - .hs
443
+ - .hsc
444
+
445
+ INI:
446
+ type: data
447
+ extensions:
448
+ - .cfg
449
+ - .ini
450
+ - .prefs
451
+ - .properties
452
+ filenames:
453
+ - .gitconfig
454
+
455
+ IRC log:
456
+ lexer: IRC logs
457
+ search_term: irc
458
+ aliases:
459
+ - irc
460
+ extensions:
461
+ - .weechatlog
462
+
463
+ Io:
464
+ type: programming
465
+ extensions:
466
+ - .io
467
+
468
+ Ioke:
469
+ type: programming
470
+ extensions:
471
+ - .ik
472
+
473
+ JSON:
474
+ type: data
475
+ group: JavaScript
476
+ lexer: JavaScript
477
+ searchable: false
478
+ extensions:
479
+ - .json
480
+
481
+ Java:
482
+ type: programming
483
+ extensions:
484
+ - .java
485
+ - .pde
486
+
487
+ Java Server Pages:
488
+ group: Java
489
+ lexer: Java Server Page
490
+ search_term: jsp
491
+ aliases:
492
+ - jsp
493
+ extensions:
494
+ - .jsp
495
+
496
+ JavaScript:
497
+ type: programming
498
+ aliases:
499
+ - js
500
+ - node
501
+ primary_extension: .js
502
+ extensions:
503
+ - .jake
504
+ - .js
505
+ - .jsm
506
+ - .jss
507
+ - .jsx
508
+ - .sjs
509
+ - .ssjs
510
+ filenames:
511
+ - Jakefile
512
+
513
+ LLVM:
514
+ extensions:
515
+ - .ll
516
+
517
+ LilyPond:
518
+ lexer: Text only
519
+ primary_extension: .ly
520
+ extensions:
521
+ - .ily
522
+ - .ly
523
+
524
+ Literate Haskell:
525
+ type: programming
526
+ group: Haskell
527
+ search_term: lhs
528
+ aliases:
529
+ - lhs
530
+ extensions:
531
+ - .lhs
532
+
533
+ Lua:
534
+ type: programming
535
+ primary_extension: .lua
536
+ extensions:
537
+ - .lua
538
+ - .nse
539
+
540
+ Makefile:
541
+ extensions:
542
+ - .mak
543
+ filenames:
544
+ - Makefile
545
+
546
+ Mako:
547
+ extensions:
548
+ - .mao
549
+
550
+ Markdown:
551
+ type: markup
552
+ lexer: Text only
553
+ primary_extension: .md
554
+ extensions:
555
+ - .markdown
556
+ - .md
557
+ - .mkd
558
+ - .mkdown
559
+ - .ron
560
+
561
+ Matlab:
562
+ type: programming
563
+ primary_extension: .matlab
564
+ extensions:
565
+ - .m
566
+ - .matlab
567
+
568
+ Max/MSP:
569
+ type: programming
570
+ lexer: Text only
571
+ extensions:
572
+ - .mxt
573
+
574
+ MiniD: # Legacy
575
+ searchable: false
576
+ primary_extension: .minid # Dummy extension
577
+
578
+ Mirah:
579
+ type: programming
580
+ lexer: Ruby
581
+ search_term: ruby
582
+ extensions:
583
+ - .duby
584
+ - .mir
585
+ - .mirah
586
+
587
+ Moocode:
588
+ lexer: MOOCode
589
+ extensions:
590
+ - .moo
591
+
592
+ Myghty:
593
+ extensions:
594
+ - .myt
595
+
596
+ Nemerle:
597
+ type: programming
598
+ extensions:
599
+ - .n
600
+
601
+ Nimrod:
602
+ extensions:
603
+ - .nim
604
+
605
+ Nu:
606
+ type: programming
607
+ lexer: Scheme
608
+ aliases:
609
+ - nush
610
+ extensions:
611
+ - .nu
612
+ filenames:
613
+ - Nukefile
614
+
615
+ NumPy:
616
+ group: Python
617
+ primary_extension: .numpy
618
+ extensions:
619
+ - .numpy
620
+ - .numpyw
621
+ - .numsc
622
+
623
+ OCaml:
624
+ type: programming
625
+ primary_extension: .ml
626
+ extensions:
627
+ - .ml
628
+ - .mli
629
+ - .mll
630
+ - .mly
631
+
632
+ ObjDump:
633
+ type: data
634
+ lexer: objdump
635
+ extensions:
636
+ - .objdump
637
+
638
+ Objective-C:
639
+ type: programming
640
+ overrides:
641
+ - .m
642
+ primary_extension: .m
643
+ extensions:
644
+ - .h
645
+ - .m
646
+ - .mm
647
+
648
+ Objective-J:
649
+ type: programming
650
+ extensions:
651
+ - .j
652
+ - .sj
653
+
654
+ OpenCL:
655
+ type: programming
656
+ group: C
657
+ lexer: C
658
+ extensions:
659
+ - .cl
660
+
661
+ PHP:
662
+ type: programming
663
+ extensions:
664
+ - .aw
665
+ - .ctp
666
+ - .php
667
+ - .php3
668
+ - .php4
669
+ - .php5
670
+ - .phpt
671
+
672
+ Parrot:
673
+ type: programming
674
+ lexer: Text only
675
+ primary_extension: .parrot # Dummy extension
676
+
677
+ Parrot Internal Representation:
678
+ group: Parrot
679
+ type: programming
680
+ lexer: Text only
681
+ aliases:
682
+ - pir
683
+ extensions:
684
+ - .pir
685
+
686
+ Parrot Assembly:
687
+ group: Parrot
688
+ type: programming
689
+ lexer: Text only
690
+ aliases:
691
+ - pasm
692
+ extensions:
693
+ - .pasm
694
+
695
+ Perl:
696
+ type: programming
697
+ overrides:
698
+ - .pl
699
+ primary_extension: .pl
700
+ extensions:
701
+ - .PL
702
+ - .perl
703
+ - .ph
704
+ - .pl
705
+ - .pm
706
+ - .pod
707
+ - .psgi
708
+ - .t
709
+
710
+ Prolog:
711
+ type: programming
712
+ extensions:
713
+ - .pl
714
+ - .pro
715
+ - .prolog
716
+
717
+ Pure Data:
718
+ type: programming
719
+ lexer: Text only
720
+ extensions:
721
+ - .pd
722
+
723
+ Python:
724
+ type: programming
725
+ primary_extension: .py
726
+ extensions:
727
+ - .py
728
+ - .pyw
729
+ - .wsgi
730
+
731
+ Python traceback:
732
+ type: data
733
+ group: Python
734
+ lexer: Python Traceback
735
+ searchable: false
736
+ extensions:
737
+ - .pytb
738
+
739
+ R:
740
+ type: programming
741
+ lexer: S
742
+ overrides:
743
+ - .r
744
+ primary_extension: .r
745
+ extensions:
746
+ - .R
747
+ - .r
748
+
749
+ RHTML:
750
+ type: markup
751
+ group: HTML
752
+ extensions:
753
+ - .rhtml
754
+
755
+ Racket:
756
+ type: programming
757
+ lexer: Scheme
758
+ primary_extension: .rkt
759
+ extensions:
760
+ - .rkt
761
+ - .rktd
762
+ - .rktl
763
+ - .scrbl
764
+
765
+ Raw token data:
766
+ search_term: raw
767
+ aliases:
768
+ - raw
769
+ extensions:
770
+ - .raw
771
+
772
+ Rebol:
773
+ type: programming
774
+ lexer: REBOL
775
+ extensions:
776
+ - .r
777
+ - .r2
778
+ - .r3
779
+ - .rebol
780
+
781
+ Redcode:
782
+ extensions:
783
+ - .cw
784
+
785
+ Ruby:
786
+ type: programming
787
+ aliases:
788
+ - jruby
789
+ - macruby
790
+ - rake
791
+ - rb
792
+ - rbx
793
+ primary_extension: .rb
794
+ extensions:
795
+ - .builder
796
+ - .gemspec
797
+ - .god
798
+ - .irbrc
799
+ - .rake
800
+ - .rb
801
+ - .rbuild
802
+ - .rbw
803
+ - .rbx
804
+ - .ru
805
+ - .thor
806
+ - .watchr
807
+ filenames:
808
+ - Capfile
809
+ - Rakefile
810
+ - Thorfile
811
+ - Gemfile
812
+ - Guardfile
813
+ - Vagrantfile
814
+
815
+ Rust:
816
+ type: programming
817
+ lexer: Text only
818
+ primary_extension: .rs
819
+ extensions:
820
+ - .rc
821
+ - .rs
822
+
823
+ SCSS:
824
+ type: markup
825
+ group: CSS
826
+ extensions:
827
+ - .scss
828
+
829
+ SQL:
830
+ type: data
831
+ searchable: false
832
+ extensions:
833
+ - .sql
834
+
835
+ Sass:
836
+ type: markup
837
+ group: CSS
838
+ extensions:
839
+ - .sass
840
+
841
+ Scala:
842
+ type: programming
843
+ primary_extension: .scala
844
+ extensions:
845
+ - .sbt
846
+ - .scala
847
+
848
+ Scheme:
849
+ type: programming
850
+ primary_extension: .scm
851
+ extensions:
852
+ - .scm
853
+ - .sls
854
+ - .sps
855
+ - .ss
856
+
857
+ Self:
858
+ type: programming
859
+ lexer: Text only
860
+ extensions:
861
+ - .self
862
+
863
+ Shell:
864
+ type: programming
865
+ lexer: Bash
866
+ search_term: bash
867
+ aliases:
868
+ - sh
869
+ - bash
870
+ - zsh
871
+ primary_extension: .sh
872
+ extensions:
873
+ - .bash
874
+ - .sh
875
+ - .zsh
876
+ filenames:
877
+ - .bash_profile
878
+ - .bashrc
879
+ - .profile
880
+ - .zlogin
881
+ - .zsh
882
+ - .zshrc
883
+
884
+ Smalltalk:
885
+ type: programming
886
+ extensions:
887
+ - .st
888
+
889
+ Smarty:
890
+ extensions:
891
+ - .tpl
892
+
893
+ Standard ML:
894
+ lexer: OCaml
895
+ aliases:
896
+ - sml
897
+ primary_extension: .sml
898
+ extensions:
899
+ - .sig
900
+ - .sml
901
+
902
+ SuperCollider:
903
+ type: programming
904
+ lexer: Text only
905
+ extensions:
906
+ - .sc
907
+
908
+ Tcl:
909
+ type: programming
910
+ extensions:
911
+ - .tcl
912
+
913
+ Tcsh:
914
+ type: programming
915
+ group: Shell
916
+ primary_extension: .tcsh
917
+ extensions:
918
+ - .csh
919
+ - .tcsh
920
+
921
+ TeX:
922
+ type: markup
923
+ primary_extension: .tex
924
+ extensions:
925
+ - .aux
926
+ - .cls
927
+ - .sty
928
+ - .tex
929
+ - .toc
930
+
931
+ Text:
932
+ type: data
933
+ lexer: Text only
934
+ extensions:
935
+ - .txt
936
+
937
+ Textile:
938
+ type: markup
939
+ lexer: Text only
940
+ extensions:
941
+ - .textile
942
+
943
+ Twig:
944
+ type: markup
945
+ group: PHP
946
+ lexer: HTML+Django/Jinja
947
+ extensions:
948
+ - .twig
949
+
950
+ VHDL:
951
+ type: programming
952
+ lexer: Text only
953
+ primary_extension: .vhd
954
+ extensions:
955
+ - .vhd
956
+ - .vhdl
957
+
958
+ Vala:
959
+ type: programming
960
+ extensions:
961
+ - .vala
962
+
963
+ Verilog:
964
+ type: programming
965
+ lexer: Text only
966
+ extensions:
967
+ - .v
968
+
969
+ VimL:
970
+ type: programming
971
+ search_term: vim
972
+ aliases:
973
+ - vim
974
+ extensions:
975
+ - .vim
976
+ filenames:
977
+ - .gvimrc
978
+ - .vimrc
979
+
980
+ Visual Basic:
981
+ type: programming
982
+ lexer: VB.net
983
+ primary_extension: .vb
984
+ extensions:
985
+ - .bas
986
+ - .frx
987
+ - .vb
988
+ - .vba
989
+ - .vbs
990
+
991
+ XML:
992
+ type: markup
993
+ primary_extension: .xml
994
+ extensions:
995
+ - .glade
996
+ - .kml
997
+ - .mxml
998
+ - .plist
999
+ - .rdf
1000
+ - .rss
1001
+ - .svg
1002
+ - .wsdl
1003
+ - .wxi
1004
+ - .wxl
1005
+ - .wxs
1006
+ - .xaml
1007
+ - .xml
1008
+ - .xsd
1009
+ - .xsl
1010
+ - .xul
1011
+ filenames:
1012
+ - .classpath
1013
+ - .project
1014
+
1015
+ XQuery:
1016
+ type: programming
1017
+ extensions:
1018
+ - .xq
1019
+ - .xqm
1020
+ - .xquery
1021
+ - .xqy
1022
+
1023
+ XS:
1024
+ lexer: C
1025
+ extensions:
1026
+ - .xs
1027
+
1028
+ YAML:
1029
+ type: markup
1030
+ primary_extension: .yml
1031
+ extensions:
1032
+ - .yaml
1033
+ - .yml
1034
+ filenames:
1035
+ - .gemrc
1036
+
1037
+ mupad:
1038
+ lexer: MuPAD
1039
+ extensions:
1040
+ - .mu
1041
+
1042
+ ooc:
1043
+ type: programming
1044
+ lexer: Ooc
1045
+ extensions:
1046
+ - .ooc
1047
+
1048
+ reStructuredText:
1049
+ type: markup
1050
+ search_term: rst
1051
+ aliases:
1052
+ - rst
1053
+ extensions:
1054
+ - .rst
1055
+ - .rest