@@ -10,113 +10,42 @@ export interface Mode {
1010
1111const modes : Mode [ ] = [
1212 { name : 'C' , mime : 'text/x-csrc' , mode : 'clike' , ext : [ 'c' , 'h' , 'ino' ] } ,
13- {
14- name : 'C++' ,
15- mime : 'text/x-c++src' ,
16- mode : 'clike' ,
17- ext : [ 'cpp' , 'c++' , 'cc' , 'cxx' , 'hpp' , 'h++' , 'hh' , 'hxx' ] ,
18- alias : [ 'cpp' ] ,
19- } ,
13+ { name : 'C++' , mime : 'text/x-c++src' , mode : 'clike' , ext : [ 'cpp' , 'c++' , 'cc' , 'cxx' , 'hpp' , 'h++' , 'hh' , 'hxx' ] , alias : [ 'cpp' ] } ,
2014 { name : 'C#' , mime : 'text/x-csharp' , mode : 'clike' , ext : [ 'cs' ] , alias : [ 'csharp' , 'cs' ] } ,
2115 { name : 'CSS' , mime : 'text/css' , mode : 'css' , ext : [ 'css' ] } ,
2216 { name : 'CQL' , mime : 'text/x-cassandra' , mode : 'sql' , ext : [ 'cql' ] } ,
2317 { name : 'Diff' , mime : 'text/x-diff' , mode : 'diff' , ext : [ 'diff' , 'patch' ] } ,
2418 { name : 'Dockerfile' , mime : 'text/x-dockerfile' , mode : 'dockerfile' , file : / ^ D o c k e r f i l e $ / } ,
2519 { name : 'Git Markdown' , mime : 'text/x-gfm' , mode : 'gfm' , file : / ^ ( r e a d m e | c o n t r i b u t i n g | h i s t o r y | l i c e n s e ) .m d $ / i } ,
2620 { name : 'Golang' , mime : 'text/x-go' , mode : 'go' , ext : [ 'go' ] } ,
27- {
28- name : 'HTML' ,
29- mime : 'text/html' ,
30- mode : 'htmlmixed' ,
31- ext : [ 'html' , 'htm' , 'handlebars' , 'hbs' ] ,
32- alias : [ 'xhtml' ] ,
33- } ,
21+ { name : 'HTML' , mime : 'text/html' , mode : 'htmlmixed' , ext : [ 'html' , 'htm' , 'handlebars' , 'hbs' ] , alias : [ 'xhtml' ] } ,
3422 { name : 'HTTP' , mime : 'message/http' , mode : 'http' } ,
35- {
36- name : 'JavaScript' ,
37- mime : 'text/javascript' ,
38- mimes : [ 'text/javascript' , 'text/ecmascript' , 'application/javascript' , 'application/x-javascript' , 'application/ecmascript' ] ,
39- mode : 'javascript' ,
40- ext : [ 'js' ] ,
41- alias : [ 'ecmascript' , 'js' , 'node' ] ,
42- } ,
43- {
44- name : 'JSON' ,
45- mime : 'application/json' ,
46- mimes : [ 'application/json' , 'application/x-json' ] ,
47- mode : 'javascript' ,
48- ext : [ 'json' , 'map' ] ,
49- alias : [ 'json5' ] ,
50- } ,
23+ { name : 'JavaScript' , mime : 'text/javascript' , mimes : [ 'text/javascript' , 'text/ecmascript' , 'application/javascript' , 'application/x-javascript' , 'application/ecmascript' ] , mode : 'javascript' , ext : [ 'js' ] , alias : [ 'ecmascript' , 'js' , 'node' ] } ,
24+ { name : 'JSON' , mime : 'application/json' , mimes : [ 'application/json' , 'application/x-json' ] , mode : 'javascript' , ext : [ 'json' , 'map' ] , alias : [ 'json5' ] } ,
5125 { name : 'Lua' , mime : 'text/x-lua' , mode : 'lua' , ext : [ 'lua' ] } ,
5226 { name : 'Markdown' , mime : 'text/x-markdown' , mode : 'markdown' , ext : [ 'markdown' , 'md' , 'mkd' ] } ,
5327 { name : 'MariaDB' , mime : 'text/x-mariadb' , mode : 'sql' } ,
5428 { name : 'MS SQL' , mime : 'text/x-mssql' , mode : 'sql' } ,
5529 { name : 'MySQL' , mime : 'text/x-mysql' , mode : 'sql' } ,
5630 { name : 'Nginx' , mime : 'text/x-nginx-conf' , mode : 'nginx' , file : / n g i n x .* \. c o n f $ / i } ,
57- {
58- name : 'PHP' ,
59- mime : 'text/x-php' ,
60- mimes : [ 'text/x-php' , 'application/x-httpd-php' , 'application/x-httpd-php-open' ] ,
61- mode : 'php' ,
62- ext : [ 'php' , 'php3' , 'php4' , 'php5' , 'php7' , 'phtml' ] ,
63- } ,
31+ { name : 'PHP' , mime : 'text/x-php' , mimes : [ 'text/x-php' , 'application/x-httpd-php' , 'application/x-httpd-php-open' ] , mode : 'php' , ext : [ 'php' , 'php3' , 'php4' , 'php5' , 'php7' , 'phtml' ] } ,
6432 { name : 'Plain Text' , mime : 'text/plain' , mode : 'null' , ext : [ 'txt' , 'text' , 'conf' , 'def' , 'list' , 'log' ] } ,
6533 { name : 'PostgreSQL' , mime : 'text/x-pgsql' , mode : 'sql' } ,
66- {
67- name : 'Properties' ,
68- mime : 'text/x-properties' ,
69- mode : 'properties' ,
70- ext : [ 'properties' , 'ini' , 'in' ] ,
71- alias : [ 'ini' , 'properties' ] ,
72- } ,
73- {
74- name : 'Python' ,
75- mime : 'text/x-python' ,
76- mode : 'python' ,
77- ext : [ 'BUILD' , 'bzl' , 'py' , 'pyw' ] ,
78- file : / ^ ( B U C K | B U I L D ) $ / ,
79- } ,
80- {
81- name : 'Ruby' ,
82- mime : 'text/x-ruby' ,
83- mode : 'ruby' ,
84- ext : [ 'rb' ] ,
85- alias : [ 'jruby' , 'macruby' , 'rake' , 'rb' , 'rbx' ] ,
86- } ,
34+ { name : 'Properties' , mime : 'text/x-properties' , mode : 'properties' , ext : [ 'properties' , 'ini' , 'in' ] , alias : [ 'ini' , 'properties' ] } ,
35+ { name : 'Pug' , mime : 'text/x-pug' , mimes : [ 'text/x-pug' , 'text/x-jade' ] , mode : 'null' , ext : [ 'pug' ] } ,
36+ { name : 'Python' , mime : 'text/x-python' , mode : 'python' , ext : [ 'BUILD' , 'bzl' , 'py' , 'pyw' ] , file : / ^ ( B U C K | B U I L D ) $ / } ,
37+ { name : 'Ruby' , mime : 'text/x-ruby' , mode : 'ruby' , ext : [ 'rb' ] , alias : [ 'jruby' , 'macruby' , 'rake' , 'rb' , 'rbx' ] } ,
8738 { name : 'Rust' , mime : 'text/x-rustsrc' , mode : 'rust' , ext : [ 'rs' ] } ,
8839 { name : 'Sass' , mime : 'text/x-sass' , mode : 'sass' , ext : [ 'sass' ] } ,
8940 { name : 'SCSS' , mime : 'text/x-scss' , mode : 'css' , ext : [ 'scss' ] } ,
90- {
91- name : 'Shell' ,
92- mime : 'text/x-sh' ,
93- mimes : [ 'text/x-sh' , 'application/x-sh' ] ,
94- mode : 'shell' ,
95- ext : [ 'sh' , 'ksh' , 'bash' ] ,
96- alias : [ 'bash' , 'sh' , 'zsh' ] ,
97- file : / ^ P K G B U I L D $ / ,
98- } ,
41+ { name : 'Shell' , mime : 'text/x-sh' , mimes : [ 'text/x-sh' , 'application/x-sh' ] , mode : 'shell' , ext : [ 'sh' , 'ksh' , 'bash' ] , alias : [ 'bash' , 'sh' , 'zsh' ] , file : / ^ P K G B U I L D $ / } ,
9942 { name : 'SQL' , mime : 'text/x-sql' , mode : 'sql' , ext : [ 'sql' ] } ,
10043 { name : 'SQLite' , mime : 'text/x-sqlite' , mode : 'sql' } ,
10144 { name : 'TOML' , mime : 'text/x-toml' , mode : 'toml' , ext : [ 'toml' ] } ,
10245 { name : 'TypeScript' , mime : 'application/typescript' , mode : 'javascript' , ext : [ 'ts' ] , alias : [ 'ts' ] } ,
10346 { name : 'Vue' , mime : 'script/x-vue' , mimes : [ 'script/x-vue' , 'text/x-vue' ] , mode : 'vue' , ext : [ 'vue' ] } ,
104- {
105- name : 'XML' ,
106- mime : 'application/xml' ,
107- mimes : [ 'application/xml' , 'text/xml' ] ,
108- mode : 'xml' ,
109- ext : [ 'xml' , 'xsl' , 'xsd' , 'svg' ] ,
110- alias : [ 'rss' , 'wsdl' , 'xsd' ] ,
111- } ,
112- {
113- name : 'YAML' ,
114- mime : 'text/x-yaml' ,
115- mimes : [ 'text/x-yaml' , 'text/yaml' ] ,
116- mode : 'yaml' ,
117- ext : [ 'yaml' , 'yml' ] ,
118- alias : [ 'yml' ] ,
119- } ,
47+ { name : 'XML' , mime : 'application/xml' , mimes : [ 'application/xml' , 'text/xml' ] , mode : 'xml' , ext : [ 'xml' , 'xsl' , 'xsd' , 'svg' ] , alias : [ 'rss' , 'wsdl' , 'xsd' ] } ,
48+ { name : 'YAML' , mime : 'text/x-yaml' , mimes : [ 'text/x-yaml' , 'text/yaml' ] , mode : 'yaml' , ext : [ 'yaml' , 'yml' ] , alias : [ 'yml' ] } ,
12049] ;
12150
12251export default modes ;
0 commit comments