-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.go
5686 lines (5579 loc) · 92.8 KB
/
static.go
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// DO NOT EDIT ** This file was generated with the bake tool ** DO NOT EDIT //
package linguist
var files = map[string]string{
"data/languages.yml": `# Defines all Languages known to GitHub.
#
# type - Either data, programming, markup, prose, or nil
# aliases - An Array of additional aliases (implicitly
# includes name.downcase)
# ace_mode - A String name of the Ace Mode used for highlighting whenever
# a file is edited. This must match one of the filenames in http://git.io/3XO_Cg.
# Use "text" if a mode does not exist.
# codemirror_mode - A String name of the CodeMirror Mode used for highlighting whenever a file is edited.
# This must match a mode from https://git.io/vi9Fx
# wrap - Boolean wrap to enable line wrapping (default: false)
# extensions - An Array of associated extensions (the first one is
# considered the primary extension, the others should be
# listed alphabetically)
# interpreters - An Array of associated interpreters
# searchable - Boolean flag to enable searching (defaults to true)
# language_id - Integer used as a language-name-independent indexed field so that we can rename
# languages in Linguist without reindexing all the code on GitHub. Must not be
# changed for existing languages without the explicit permission of GitHub staff.
# color - CSS hex color to represent the language. Only used if type is "programming" or "prose".
# tm_scope - The TextMate scope that represents this programming
# language. This should match one of the scopes listed in
# the grammars.yml file. Use "none" if there is no grammar
# for this language.
# group - Name of the parent language. Languages in a group are counted
# in the statistics as the parent language.
#
# Any additions or modifications (even trivial) should have corresponding
# test changes in ` + "`" + `test/test_blob.rb` + "`" + `.
#
# Please keep this list alphabetized. Capitalization comes before lowercase.
---
1C Enterprise:
type: programming
color: "#814CCC"
extensions:
- ".bsl"
- ".os"
tm_scope: source.bsl
ace_mode: text
language_id: 0
ABAP:
type: programming
color: "#E8274B"
extensions:
- ".abap"
ace_mode: abap
language_id: 1
ABNF:
type: data
ace_mode: text
extensions:
- ".abnf"
tm_scope: source.abnf
language_id: 429
AGS Script:
type: programming
color: "#B9D9FF"
aliases:
- ags
extensions:
- ".asc"
- ".ash"
tm_scope: source.c++
ace_mode: c_cpp
codemirror_mode: clike
codemirror_mime_type: text/x-c++src
language_id: 2
AMPL:
type: programming
color: "#E6EFBB"
extensions:
- ".ampl"
- ".mod"
tm_scope: source.ampl
ace_mode: text
language_id: 3
ANTLR:
type: programming
color: "#9DC3FF"
extensions:
- ".g4"
ace_mode: text
language_id: 4
API Blueprint:
type: markup
color: "#2ACCA8"
ace_mode: markdown
extensions:
- ".apib"
tm_scope: text.html.markdown.source.gfm.apib
language_id: 5
APL:
type: programming
color: "#5A8164"
extensions:
- ".apl"
- ".dyalog"
interpreters:
- apl
- aplx
- dyalog
tm_scope: source.apl
ace_mode: text
codemirror_mode: apl
codemirror_mime_type: text/apl
language_id: 6
ASN.1:
type: data
extensions:
- ".asn"
- ".asn1"
tm_scope: source.asn
ace_mode: text
codemirror_mode: asn.1
codemirror_mime_type: text/x-ttcn-asn
language_id: 7
ASP:
type: programming
color: "#6a40fd"
tm_scope: text.html.asp
aliases:
- aspx
- aspx-vb
extensions:
- ".asp"
- ".asax"
- ".ascx"
- ".ashx"
- ".asmx"
- ".aspx"
- ".axd"
ace_mode: text
codemirror_mode: htmlembedded
codemirror_mime_type: application/x-aspx
language_id: 8
ATS:
type: programming
color: "#1ac620"
aliases:
- ats2
extensions:
- ".dats"
- ".hats"
- ".sats"
tm_scope: source.ats
ace_mode: ocaml
language_id: 9
ActionScript:
type: programming
tm_scope: source.actionscript.3
color: "#882B0F"
aliases:
- actionscript 3
- actionscript3
- as3
extensions:
- ".as"
ace_mode: actionscript
language_id: 10
Ada:
type: programming
color: "#02f88c"
extensions:
- ".adb"
- ".ada"
- ".ads"
aliases:
- ada95
- ada2005
ace_mode: ada
language_id: 11
Adobe Font Metrics:
type: data
tm_scope: source.afm
extensions:
- ".afm"
aliases:
- acfm
- adobe composite font metrics
- adobe multiple font metrics
- amfm
ace_mode: text
language_id: 147198098
Agda:
type: programming
color: "#315665"
extensions:
- ".agda"
ace_mode: text
language_id: 12
Alloy:
type: programming
color: "#64C800"
extensions:
- ".als"
ace_mode: text
language_id: 13
Alpine Abuild:
type: programming
group: Shell
aliases:
- abuild
- apkbuild
filenames:
- APKBUILD
tm_scope: source.shell
ace_mode: sh
codemirror_mode: shell
codemirror_mime_type: text/x-sh
language_id: 14
AngelScript:
type: programming
color: "#C7D7DC"
extensions:
- ".as"
- ".angelscript"
tm_scope: source.angelscript
ace_mode: text
codemirror_mode: clike
codemirror_mime_type: text/x-c++src
language_id: 389477596
Ant Build System:
type: data
tm_scope: text.xml.ant
filenames:
- ant.xml
- build.xml
ace_mode: xml
codemirror_mode: xml
codemirror_mime_type: application/xml
language_id: 15
ApacheConf:
type: data
aliases:
- aconf
- apache
extensions:
- ".apacheconf"
- ".vhost"
tm_scope: source.apache-config
ace_mode: apache_conf
language_id: 16
Apex:
type: programming
extensions:
- ".cls"
tm_scope: source.java
ace_mode: java
codemirror_mode: clike
codemirror_mime_type: text/x-java
language_id: 17
Apollo Guidance Computer:
type: programming
group: Assembly
extensions:
- ".agc"
tm_scope: source.agc
ace_mode: assembly_x86
language_id: 18
AppleScript:
type: programming
aliases:
- osascript
extensions:
- ".applescript"
- ".scpt"
interpreters:
- osascript
ace_mode: applescript
color: "#101F1F"
language_id: 19
Arc:
type: programming
color: "#aa2afe"
extensions:
- ".arc"
tm_scope: none
ace_mode: text
language_id: 20
Arduino:
type: programming
color: "#bd79d1"
extensions:
- ".ino"
tm_scope: source.c++
ace_mode: c_cpp
codemirror_mode: clike
codemirror_mime_type: text/x-c++src
language_id: 21
AsciiDoc:
type: prose
ace_mode: asciidoc
wrap: true
extensions:
- ".asciidoc"
- ".adoc"
- ".asc"
tm_scope: text.html.asciidoc
language_id: 22
AspectJ:
type: programming
color: "#a957b0"
extensions:
- ".aj"
tm_scope: source.aspectj
ace_mode: text
language_id: 23
Assembly:
type: programming
color: "#6E4C13"
aliases:
- nasm
extensions:
- ".asm"
- ".a51"
- ".inc"
- ".nasm"
tm_scope: source.assembly
ace_mode: assembly_x86
language_id: 24
Augeas:
type: programming
extensions:
- ".aug"
tm_scope: none
ace_mode: text
language_id: 25
AutoHotkey:
type: programming
color: "#6594b9"
aliases:
- ahk
extensions:
- ".ahk"
- ".ahkl"
tm_scope: source.ahk
ace_mode: autohotkey
language_id: 26
AutoIt:
type: programming
color: "#1C3552"
aliases:
- au3
- AutoIt3
- AutoItScript
extensions:
- ".au3"
tm_scope: source.autoit
ace_mode: autohotkey
language_id: 27
Awk:
type: programming
extensions:
- ".awk"
- ".auk"
- ".gawk"
- ".mawk"
- ".nawk"
interpreters:
- awk
- gawk
- mawk
- nawk
ace_mode: text
language_id: 28
Ballerina:
type: programming
extensions:
- ".bal"
tm_scope: source.ballerina
ace_mode: text
color: "#FF5000"
language_id: 720859680
Batchfile:
type: programming
aliases:
- bat
- batch
- dosbatch
- winbatch
extensions:
- ".bat"
- ".cmd"
tm_scope: source.batchfile
ace_mode: batchfile
color: "#C1F12E"
language_id: 29
Befunge:
type: programming
extensions:
- ".befunge"
ace_mode: text
language_id: 30
Bison:
type: programming
group: Yacc
tm_scope: source.bison
extensions:
- ".bison"
ace_mode: text
language_id: 31
BitBake:
type: programming
tm_scope: none
extensions:
- ".bb"
ace_mode: text
language_id: 32
Blade:
type: markup
group: HTML
extensions:
- ".blade"
- ".blade.php"
tm_scope: text.html.php.blade
ace_mode: text
language_id: 33
BlitzBasic:
type: programming
aliases:
- b3d
- blitz3d
- blitzplus
- bplus
extensions:
- ".bb"
- ".decls"
tm_scope: source.blitzmax
ace_mode: text
language_id: 34
BlitzMax:
type: programming
color: "#cd6400"
extensions:
- ".bmx"
aliases:
- bmax
ace_mode: text
language_id: 35
Bluespec:
type: programming
extensions:
- ".bsv"
tm_scope: source.bsv
ace_mode: verilog
language_id: 36
Boo:
type: programming
color: "#d4bec1"
extensions:
- ".boo"
ace_mode: text
tm_scope: source.boo
language_id: 37
Brainfuck:
type: programming
color: "#2F2530"
extensions:
- ".b"
- ".bf"
tm_scope: source.bf
ace_mode: text
codemirror_mode: brainfuck
codemirror_mime_type: text/x-brainfuck
language_id: 38
Brightscript:
type: programming
extensions:
- ".brs"
tm_scope: source.brightscript
ace_mode: text
language_id: 39
Bro:
type: programming
extensions:
- ".bro"
ace_mode: text
language_id: 40
C:
type: programming
color: "#555555"
extensions:
- ".c"
- ".cats"
- ".h"
- ".idc"
interpreters:
- tcc
ace_mode: c_cpp
codemirror_mode: clike
codemirror_mime_type: text/x-csrc
language_id: 41
C#:
type: programming
ace_mode: csharp
codemirror_mode: clike
codemirror_mime_type: text/x-csharp
tm_scope: source.cs
color: "#178600"
aliases:
- csharp
extensions:
- ".cs"
- ".cake"
- ".cshtml"
- ".csx"
language_id: 42
C++:
type: programming
ace_mode: c_cpp
codemirror_mode: clike
codemirror_mime_type: text/x-c++src
color: "#f34b7d"
aliases:
- cpp
extensions:
- ".cpp"
- ".c++"
- ".cc"
- ".cp"
- ".cxx"
- ".h"
- ".h++"
- ".hh"
- ".hpp"
- ".hxx"
- ".inc"
- ".inl"
- ".ipp"
- ".re"
- ".tcc"
- ".tpp"
language_id: 43
C-ObjDump:
type: data
extensions:
- ".c-objdump"
tm_scope: objdump.x86asm
ace_mode: assembly_x86
language_id: 44
C2hs Haskell:
type: programming
group: Haskell
aliases:
- c2hs
extensions:
- ".chs"
tm_scope: source.haskell
ace_mode: haskell
codemirror_mode: haskell
codemirror_mime_type: text/x-haskell
language_id: 45
CLIPS:
type: programming
extensions:
- ".clp"
tm_scope: source.clips
ace_mode: text
language_id: 46
CMake:
type: programming
extensions:
- ".cmake"
- ".cmake.in"
filenames:
- CMakeLists.txt
ace_mode: text
codemirror_mode: cmake
codemirror_mime_type: text/x-cmake
language_id: 47
COBOL:
type: programming
extensions:
- ".cob"
- ".cbl"
- ".ccp"
- ".cobol"
- ".cpy"
ace_mode: cobol
codemirror_mode: cobol
codemirror_mime_type: text/x-cobol
language_id: 48
COLLADA:
type: data
extensions:
- ".dae"
tm_scope: text.xml
ace_mode: xml
codemirror_mode: xml
codemirror_mime_type: text/xml
language_id: 49
CSON:
type: data
group: CoffeeScript
tm_scope: source.coffee
ace_mode: coffee
codemirror_mode: coffeescript
codemirror_mime_type: text/x-coffeescript
searchable: false
extensions:
- ".cson"
language_id: 424
CSS:
type: markup
tm_scope: source.css
ace_mode: css
codemirror_mode: css
codemirror_mime_type: text/css
color: "#563d7c"
extensions:
- ".css"
language_id: 50
CSV:
type: data
ace_mode: text
tm_scope: none
extensions:
- ".csv"
language_id: 51
CWeb:
type: programming
extensions:
- ".w"
tm_scope: none
ace_mode: text
language_id: 657332628
Cap'n Proto:
type: programming
tm_scope: source.capnp
extensions:
- ".capnp"
ace_mode: text
language_id: 52
CartoCSS:
type: programming
aliases:
- Carto
extensions:
- ".mss"
ace_mode: text
tm_scope: source.css.mss
language_id: 53
Ceylon:
type: programming
color: "#dfa535"
extensions:
- ".ceylon"
tm_scope: source.ceylon
ace_mode: text
language_id: 54
Chapel:
type: programming
color: "#8dc63f"
aliases:
- chpl
extensions:
- ".chpl"
ace_mode: text
language_id: 55
Charity:
type: programming
extensions:
- ".ch"
tm_scope: none
ace_mode: text
language_id: 56
ChucK:
type: programming
extensions:
- ".ck"
tm_scope: source.java
ace_mode: java
codemirror_mode: clike
codemirror_mime_type: text/x-java
language_id: 57
Cirru:
type: programming
color: "#ccccff"
ace_mode: cirru
extensions:
- ".cirru"
language_id: 58
Clarion:
type: programming
color: "#db901e"
ace_mode: text
extensions:
- ".clw"
tm_scope: source.clarion
language_id: 59
Clean:
type: programming
color: "#3F85AF"
extensions:
- ".icl"
- ".dcl"
tm_scope: source.clean
ace_mode: text
language_id: 60
Click:
type: programming
color: "#E4E6F3"
extensions:
- ".click"
tm_scope: source.click
ace_mode: text
language_id: 61
Clojure:
type: programming
ace_mode: clojure
codemirror_mode: clojure
codemirror_mime_type: text/x-clojure
color: "#db5855"
extensions:
- ".clj"
- ".boot"
- ".cl2"
- ".cljc"
- ".cljs"
- ".cljs.hl"
- ".cljscm"
- ".cljx"
- ".hic"
filenames:
- riemann.config
language_id: 62
Closure Templates:
type: markup
group: HTML
ace_mode: soy_template
codemirror_mode: soy
codemirror_mime_type: text/x-soy
alias:
- soy
extensions:
- ".soy"
tm_scope: text.html.soy
language_id: 357046146
CoffeeScript:
type: programming
tm_scope: source.coffee
ace_mode: coffee
codemirror_mode: coffeescript
codemirror_mime_type: text/x-coffeescript
color: "#244776"
aliases:
- coffee
- coffee-script
extensions:
- ".coffee"
- "._coffee"
- ".cake"
- ".cjsx"
- ".iced"
filenames:
- Cakefile
interpreters:
- coffee
language_id: 63
ColdFusion:
type: programming
ace_mode: coldfusion
color: "#ed2cd6"
aliases:
- cfm
- cfml
- coldfusion html
extensions:
- ".cfm"
- ".cfml"
tm_scope: text.html.cfm
language_id: 64
ColdFusion CFC:
type: programming
group: ColdFusion
ace_mode: coldfusion
aliases:
- cfc
extensions:
- ".cfc"
tm_scope: source.cfscript
language_id: 65
Common Lisp:
type: programming
tm_scope: source.lisp
color: "#3fb68b"
aliases:
- lisp
extensions:
- ".lisp"
- ".asd"
- ".cl"
- ".l"
- ".lsp"
- ".ny"
- ".podsl"
- ".sexp"
interpreters:
- lisp
- sbcl
- ccl
- clisp
- ecl
ace_mode: lisp
codemirror_mode: commonlisp
codemirror_mime_type: text/x-common-lisp
language_id: 66
Common Workflow Language:
alias: cwl
type: programming
ace_mode: yaml
codemirror_mode: yaml
codemirror_mime_type: text/x-yaml
extensions:
- ".cwl"
interpreters:
- cwl-runner
color: "#B5314C"
tm_scope: source.cwl
language_id: 988547172
Component Pascal:
type: programming
color: "#B0CE4E"
extensions:
- ".cp"
- ".cps"
tm_scope: source.pascal
aliases:
- delphi
- objectpascal
ace_mode: pascal
codemirror_mode: pascal
codemirror_mime_type: text/x-pascal
language_id: 67
Cool:
type: programming
extensions:
- ".cl"
tm_scope: source.cool
ace_mode: text
language_id: 68
Coq:
type: programming
extensions:
- ".coq"
- ".v"
ace_mode: text
language_id: 69
Cpp-ObjDump:
type: data
extensions:
- ".cppobjdump"
- ".c++-objdump"
- ".c++objdump"
- ".cpp-objdump"
- ".cxx-objdump"
tm_scope: objdump.x86asm
aliases:
- c++-objdump
ace_mode: assembly_x86
language_id: 70
Creole:
type: prose
wrap: true
extensions:
- ".creole"
tm_scope: text.html.creole
ace_mode: text
language_id: 71
Crystal:
type: programming
color: "#776791"
extensions:
- ".cr"
ace_mode: ruby
codemirror_mode: crystal
codemirror_mime_type: text/x-crystal
tm_scope: source.crystal
interpreters:
- crystal
language_id: 72
Csound:
type: programming
aliases:
- csound-orc
extensions:
- ".orc"
- ".udo"
tm_scope: source.csound
ace_mode: csound_orchestra
language_id: 73
Csound Document:
type: programming
aliases:
- csound-csd
extensions:
- ".csd"
tm_scope: source.csound-document
ace_mode: csound_document
language_id: 74
Csound Score:
type: programming
aliases:
- csound-sco
extensions:
- ".sco"
tm_scope: source.csound-score
ace_mode: csound_score
language_id: 75
Cuda:
type: programming
extensions:
- ".cu"
- ".cuh"
tm_scope: source.cuda-c++
ace_mode: c_cpp
codemirror_mode: clike
codemirror_mime_type: text/x-c++src
color: "#3A4E3A"
language_id: 77
Cycript:
type: programming
extensions:
- ".cy"
tm_scope: source.js
ace_mode: javascript
codemirror_mode: javascript
codemirror_mime_type: text/javascript
language_id: 78
Cython:
type: programming
group: Python
extensions:
- ".pyx"
- ".pxd"
- ".pxi"
aliases:
- pyrex
ace_mode: text
codemirror_mode: python
codemirror_mime_type: text/x-cython
language_id: 79
D:
type: programming
color: "#ba595e"
extensions:
- ".d"
- ".di"
ace_mode: d
codemirror_mode: d
codemirror_mime_type: text/x-d
language_id: 80
D-ObjDump:
type: data
extensions:
- ".d-objdump"
tm_scope: objdump.x86asm
ace_mode: assembly_x86
language_id: 81
DIGITAL Command Language:
type: programming
aliases:
- dcl
extensions:
- ".com"
tm_scope: none
ace_mode: text
language_id: 82
DM:
type: programming
color: "#447265"
extensions:
- ".dm"
aliases:
- byond
tm_scope: source.dm
ace_mode: c_cpp
language_id: 83
DNS Zone:
type: data
extensions:
- ".zone"
- ".arpa"
tm_scope: text.zone_file
ace_mode: text
language_id: 84
DTrace:
type: programming
aliases:
- dtrace-script
extensions:
- ".d"
interpreters: