File size: 5,713 Bytes
55ba4a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
ace.define('ace/ext/modelist', ['require', 'exports', 'module'], function (e, t, n) {
	'use strict'
	function i(e) {
		var t = a.text,
			n = e.split(/[\/\\]/).pop()
		for (var i = 0; i < r.length; i++)
			if (r[i].supportsFile(n)) {
				t = r[i]
				break
			}
		return t
	}
	var r = [],
		s = function (e, t, n) {
			;(this.name = e), (this.caption = t), (this.mode = 'ace/mode/' + e), (this.extensions = n)
			var r
			;/\^/.test(n)
				? (r =
						n.replace(/\|(\^)?/g, function (e, t) {
							return '$|' + (t ? '^' : '^.*\\.')
						}) + '$')
				: (r = '^.*\\.(' + n + ')$'),
				(this.extRe = new RegExp(r, 'gi'))
		}
	s.prototype.supportsFile = function (e) {
		return e.match(this.extRe)
	}
	var o = {
			ABAP: ['abap'],
			ABC: ['abc'],
			ActionScript: ['as'],
			ADA: ['ada|adb'],
			Alda: ['alda'],
			Apache_Conf: ['^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd'],
			Apex: ['apex|cls|trigger|tgr'],
			AQL: ['aql'],
			AsciiDoc: ['asciidoc|adoc'],
			ASL: ['dsl|asl'],
			Assembly_x86: ['asm|a'],
			AutoHotKey: ['ahk'],
			BatchFile: ['bat|cmd'],
			C_Cpp: ['cpp|c|cc|cxx|h|hh|hpp|ino'],
			C9Search: ['c9search_results'],
			Cirru: ['cirru|cr'],
			Clojure: ['clj|cljs'],
			Cobol: ['CBL|COB'],
			coffee: ['coffee|cf|cson|^Cakefile'],
			ColdFusion: ['cfm'],
			Crystal: ['cr'],
			CSharp: ['cs'],
			Csound_Document: ['csd'],
			Csound_Orchestra: ['orc'],
			Csound_Score: ['sco'],
			CSS: ['css'],
			Curly: ['curly'],
			D: ['d|di'],
			Dart: ['dart'],
			Diff: ['diff|patch'],
			Dockerfile: ['^Dockerfile'],
			Dot: ['dot'],
			Drools: ['drl'],
			Edifact: ['edi'],
			Eiffel: ['e|ge'],
			EJS: ['ejs'],
			Elixir: ['ex|exs'],
			Elm: ['elm'],
			Erlang: ['erl|hrl'],
			Forth: ['frt|fs|ldr|fth|4th'],
			Fortran: ['f|f90'],
			FSharp: ['fsi|fs|ml|mli|fsx|fsscript'],
			FSL: ['fsl'],
			FTL: ['ftl'],
			Gcode: ['gcode'],
			Gherkin: ['feature'],
			Gitignore: ['^.gitignore'],
			Glsl: ['glsl|frag|vert'],
			Gobstones: ['gbs'],
			golang: ['go'],
			GraphQLSchema: ['gql'],
			Groovy: ['groovy'],
			HAML: ['haml'],
			Handlebars: ['hbs|handlebars|tpl|mustache'],
			Haskell: ['hs'],
			Haskell_Cabal: ['cabal'],
			haXe: ['hx'],
			Hjson: ['hjson'],
			HTML: ['html|htm|xhtml|vue|we|wpy'],
			HTML_Elixir: ['eex|html.eex'],
			HTML_Ruby: ['erb|rhtml|html.erb'],
			INI: ['ini|conf|cfg|prefs'],
			Io: ['io'],
			Jack: ['jack'],
			Jade: ['jade|pug'],
			Java: ['java'],
			JavaScript: ['js|jsm|jsx'],
			JSON: ['json'],
			JSON5: ['json5'],
			JSONiq: ['jq'],
			JSP: ['jsp'],
			JSSM: ['jssm|jssm_state'],
			JSX: ['jsx'],
			Julia: ['jl'],
			Kotlin: ['kt|kts'],
			LaTeX: ['tex|latex|ltx|bib'],
			LESS: ['less'],
			Liquid: ['liquid'],
			Lisp: ['lisp'],
			LiveScript: ['ls'],
			LogiQL: ['logic|lql'],
			LSL: ['lsl'],
			Lua: ['lua'],
			LuaPage: ['lp'],
			Lucene: ['lucene'],
			Makefile: ['^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make'],
			Markdown: ['md|markdown'],
			Mask: ['mask'],
			MATLAB: ['matlab'],
			Maze: ['mz'],
			MediaWiki: ['wiki|mediawiki'],
			MEL: ['mel'],
			MIXAL: ['mixal'],
			MUSHCode: ['mc|mush'],
			MySQL: ['mysql'],
			Nginx: ['nginx|conf'],
			Nim: ['nim'],
			Nix: ['nix'],
			NSIS: ['nsi|nsh'],
			Nunjucks: ['nunjucks|nunjs|nj|njk'],
			ObjectiveC: ['m|mm'],
			OCaml: ['ml|mli'],
			Pascal: ['pas|p'],
			Perl: ['pl|pm'],
			Perl6: ['p6|pl6|pm6'],
			pgSQL: ['pgsql'],
			PHP: ['php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module'],
			PHP_Laravel_blade: ['blade.php'],
			Pig: ['pig'],
			Powershell: ['ps1'],
			Praat: ['praat|praatscript|psc|proc'],
			Prisma: ['prisma'],
			Prolog: ['plg|prolog'],
			Properties: ['properties'],
			Protobuf: ['proto'],
			Puppet: ['epp|pp'],
			Python: ['py'],
			QML: ['qml'],
			R: ['r'],
			Razor: ['cshtml|asp'],
			RDoc: ['Rd'],
			Red: ['red|reds'],
			RHTML: ['Rhtml'],
			RST: ['rst'],
			Ruby: ['rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile'],
			Rust: ['rs'],
			SASS: ['sass'],
			SCAD: ['scad'],
			Scala: ['scala|sbt'],
			Scheme: ['scm|sm|rkt|oak|scheme'],
			SCSS: ['scss'],
			SH: ['sh|bash|^.bashrc'],
			SJS: ['sjs'],
			Slim: ['slim|skim'],
			Smarty: ['smarty|tpl'],
			snippets: ['snippets'],
			Soy_Template: ['soy'],
			Space: ['space'],
			SQL: ['sql'],
			SQLServer: ['sqlserver'],
			Stylus: ['styl|stylus'],
			SVG: ['svg'],
			Swift: ['swift'],
			Tcl: ['tcl'],
			Terraform: ['tf', 'tfvars', 'terragrunt'],
			Tex: ['tex'],
			Text: ['txt'],
			Textile: ['textile'],
			Toml: ['toml'],
			TSX: ['tsx'],
			Twig: ['latte|twig|swig'],
			Typescript: ['ts|typescript|str'],
			Vala: ['vala'],
			VBScript: ['vbs|vb'],
			Velocity: ['vm'],
			Verilog: ['v|vh|sv|svh'],
			VHDL: ['vhd|vhdl'],
			Visualforce: ['vfp|component|page'],
			Wollok: ['wlk|wpgm|wtest'],
			XML: ['xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml'],
			XQuery: ['xq'],
			YAML: ['yaml|yml'],
			Zeek: ['zeek|bro'],
			Django: ['html'],
		},
		u = {
			ObjectiveC: 'Objective-C',
			CSharp: 'C#',
			golang: 'Go',
			C_Cpp: 'C and C++',
			Csound_Document: 'Csound Document',
			Csound_Orchestra: 'Csound',
			Csound_Score: 'Csound Score',
			coffee: 'CoffeeScript',
			HTML_Ruby: 'HTML (Ruby)',
			HTML_Elixir: 'HTML (Elixir)',
			FTL: 'FreeMarker',
			PHP_Laravel_blade: 'PHP (Blade Template)',
			Perl6: 'Perl 6',
			AutoHotKey: 'AutoHotkey / AutoIt',
		},
		a = {}
	for (var f in o) {
		var l = o[f],
			c = (u[f] || f).replace(/_/g, ' '),
			h = f.toLowerCase(),
			p = new s(h, c, l[0])
		;(a[h] = p), r.push(p)
	}
	n.exports = { getModeForPath: i, modes: r, modesByName: a }
})
;(function () {
	ace.require(['ace/ext/modelist'], function (m) {
		if (typeof module == 'object' && typeof exports == 'object' && module) {
			module.exports = m
		}
	})
})()