ace-oqc 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -0
- package/src-noconflict/ace.js +21402 -0
- package/src-noconflict/ext-beautify.js +331 -0
- package/src-noconflict/ext-elastic_tabstops_lite.js +277 -0
- package/src-noconflict/ext-emmet.js +1331 -0
- package/src-noconflict/ext-error_marker.js +9 -0
- package/src-noconflict/ext-keybinding_menu.js +193 -0
- package/src-noconflict/ext-language_tools.js +2166 -0
- package/src-noconflict/ext-linking.js +64 -0
- package/src-noconflict/ext-modelist.js +248 -0
- package/src-noconflict/ext-options.js +799 -0
- package/src-noconflict/ext-prompt.js +2806 -0
- package/src-noconflict/ext-rtl.js +122 -0
- package/src-noconflict/ext-searchbox.js +514 -0
- package/src-noconflict/ext-settings_menu.js +820 -0
- package/src-noconflict/ext-spellcheck.js +73 -0
- package/src-noconflict/ext-split.js +207 -0
- package/src-noconflict/ext-static_highlight.js +229 -0
- package/src-noconflict/ext-statusbar.js +56 -0
- package/src-noconflict/ext-textarea.js +430 -0
- package/src-noconflict/ext-themelist.js +67 -0
- package/src-noconflict/ext-whitespace.js +213 -0
- package/src-noconflict/keybinding-emacs.js +1169 -0
- package/src-noconflict/keybinding-sublime.js +422 -0
- package/src-noconflict/keybinding-vim.js +6198 -0
- package/src-noconflict/mode-abap.js +221 -0
- package/src-noconflict/mode-abc.js +271 -0
- package/src-noconflict/mode-actionscript.js +275 -0
- package/src-noconflict/mode-ada.js +137 -0
- package/src-noconflict/mode-apache_conf.js +363 -0
- package/src-noconflict/mode-apex.js +457 -0
- package/src-noconflict/mode-applescript.js +278 -0
- package/src-noconflict/mode-aql.js +102 -0
- package/src-noconflict/mode-asciidoc.js +349 -0
- package/src-noconflict/mode-asl.js +422 -0
- package/src-noconflict/mode-assembly_x86.js +193 -0
- package/src-noconflict/mode-autohotkey.js +244 -0
- package/src-noconflict/mode-batchfile.js +230 -0
- package/src-noconflict/mode-c9search.js +293 -0
- package/src-noconflict/mode-c_cpp.js +503 -0
- package/src-noconflict/mode-cirru.js +210 -0
- package/src-noconflict/mode-clojure.js +315 -0
- package/src-noconflict/mode-cobol.js +101 -0
- package/src-noconflict/mode-coffee.js +400 -0
- package/src-noconflict/mode-coldfusion.js +2596 -0
- package/src-noconflict/mode-crystal.js +642 -0
- package/src-noconflict/mode-csharp.js +502 -0
- package/src-noconflict/mode-csound_document.js +4105 -0
- package/src-noconflict/mode-csound_orchestra.js +3035 -0
- package/src-noconflict/mode-csound_score.js +462 -0
- package/src-noconflict/mode-csp.js +59 -0
- package/src-noconflict/mode-css.js +720 -0
- package/src-noconflict/mode-curly.js +2564 -0
- package/src-noconflict/mode-d.js +520 -0
- package/src-noconflict/mode-dart.js +715 -0
- package/src-noconflict/mode-diff.js +147 -0
- package/src-noconflict/mode-django.js +2595 -0
- package/src-noconflict/mode-dockerfile.js +500 -0
- package/src-noconflict/mode-dot.js +417 -0
- package/src-noconflict/mode-drools.js +498 -0
- package/src-noconflict/mode-edifact.js +166 -0
- package/src-noconflict/mode-eiffel.js +135 -0
- package/src-noconflict/mode-ejs.js +3533 -0
- package/src-noconflict/mode-elixir.js +501 -0
- package/src-noconflict/mode-elm.js +306 -0
- package/src-noconflict/mode-erlang.js +1010 -0
- package/src-noconflict/mode-forth.js +297 -0
- package/src-noconflict/mode-fortran.js +430 -0
- package/src-noconflict/mode-fsharp.js +316 -0
- package/src-noconflict/mode-fsl.js +259 -0
- package/src-noconflict/mode-ftl.js +1193 -0
- package/src-noconflict/mode-gcode.js +93 -0
- package/src-noconflict/mode-gherkin.js +168 -0
- package/src-noconflict/mode-gitignore.js +59 -0
- package/src-noconflict/mode-glsl.js +580 -0
- package/src-noconflict/mode-gobstones.js +1090 -0
- package/src-noconflict/mode-golang.js +413 -0
- package/src-noconflict/mode-graphqlschema.js +214 -0
- package/src-noconflict/mode-groovy.js +989 -0
- package/src-noconflict/mode-haml.js +1873 -0
- package/src-noconflict/mode-handlebars.js +2622 -0
- package/src-noconflict/mode-haskell.js +380 -0
- package/src-noconflict/mode-haskell_cabal.js +141 -0
- package/src-noconflict/mode-haxe.js +386 -0
- package/src-noconflict/mode-hjson.js +353 -0
- package/src-noconflict/mode-html.js +2509 -0
- package/src-noconflict/mode-html_elixir.js +3088 -0
- package/src-noconflict/mode-html_ruby.js +3550 -0
- package/src-noconflict/mode-ini.js +162 -0
- package/src-noconflict/mode-io.js +248 -0
- package/src-noconflict/mode-jack.js +346 -0
- package/src-noconflict/mode-jade.js +2025 -0
- package/src-noconflict/mode-java.js +1038 -0
- package/src-noconflict/mode-javascript.js +798 -0
- package/src-noconflict/mode-json.js +329 -0
- package/src-noconflict/mode-jsoniq.js +2632 -0
- package/src-noconflict/mode-jsp.js +1433 -0
- package/src-noconflict/mode-jssm.js +325 -0
- package/src-noconflict/mode-jsx.js +411 -0
- package/src-noconflict/mode-julia.js +303 -0
- package/src-noconflict/mode-kotlin.js +797 -0
- package/src-noconflict/mode-latex.js +296 -0
- package/src-noconflict/mode-less.js +839 -0
- package/src-noconflict/mode-liquid.js +2742 -0
- package/src-noconflict/mode-lisp.js +112 -0
- package/src-noconflict/mode-livescript.js +279 -0
- package/src-noconflict/mode-logiql.js +317 -0
- package/src-noconflict/mode-logtalk.js +352 -0
- package/src-noconflict/mode-lsl.js +343 -0
- package/src-noconflict/mode-lua.js +452 -0
- package/src-noconflict/mode-luapage.js +3028 -0
- package/src-noconflict/mode-lucene.js +154 -0
- package/src-noconflict/mode-makefile.js +412 -0
- package/src-noconflict/mode-markdown.js +3194 -0
- package/src-noconflict/mode-mask.js +1803 -0
- package/src-noconflict/mode-matlab.js +263 -0
- package/src-noconflict/mode-maze.js +292 -0
- package/src-noconflict/mode-mel.js +263 -0
- package/src-noconflict/mode-mixal.js +122 -0
- package/src-noconflict/mode-mushcode.js +681 -0
- package/src-noconflict/mode-mysql.js +167 -0
- package/src-noconflict/mode-nginx.js +298 -0
- package/src-noconflict/mode-nim.js +363 -0
- package/src-noconflict/mode-nix.js +647 -0
- package/src-noconflict/mode-nsis.js +312 -0
- package/src-noconflict/mode-objectivec.js +740 -0
- package/src-noconflict/mode-ocaml.js +421 -0
- package/src-noconflict/mode-pascal.js +223 -0
- package/src-noconflict/mode-perl.js +381 -0
- package/src-noconflict/mode-pgsql.js +1743 -0
- package/src-noconflict/mode-php.js +13110 -0
- package/src-noconflict/mode-php_laravel_blade.js +13311 -0
- package/src-noconflict/mode-pig.js +310 -0
- package/src-noconflict/mode-plain_text.js +32 -0
- package/src-noconflict/mode-powershell.js +418 -0
- package/src-noconflict/mode-praat.js +478 -0
- package/src-noconflict/mode-prolog.js +371 -0
- package/src-noconflict/mode-properties.js +80 -0
- package/src-noconflict/mode-protobuf.js +593 -0
- package/src-noconflict/mode-puppet.js +368 -0
- package/src-noconflict/mode-python.js +508 -0
- package/src-noconflict/mode-r.js +312 -0
- package/src-noconflict/mode-razor.js +2875 -0
- package/src-noconflict/mode-rdoc.js +243 -0
- package/src-noconflict/mode-red.js +450 -0
- package/src-noconflict/mode-redshift.js +360 -0
- package/src-noconflict/mode-rhtml.js +2808 -0
- package/src-noconflict/mode-rst.js +257 -0
- package/src-noconflict/mode-ruby.js +1003 -0
- package/src-noconflict/mode-rust.js +282 -0
- package/src-noconflict/mode-sass.js +529 -0
- package/src-noconflict/mode-scad.js +414 -0
- package/src-noconflict/mode-scala.js +984 -0
- package/src-noconflict/mode-scheme.js +232 -0
- package/src-noconflict/mode-scss.js +873 -0
- package/src-noconflict/mode-sh.js +449 -0
- package/src-noconflict/mode-sjs.js +1015 -0
- package/src-noconflict/mode-slim.js +5240 -0
- package/src-noconflict/mode-smarty.js +2635 -0
- package/src-noconflict/mode-snippets.js +207 -0
- package/src-noconflict/mode-soy_template.js +2848 -0
- package/src-noconflict/mode-space.js +167 -0
- package/src-noconflict/mode-sparql.js +320 -0
- package/src-noconflict/mode-sql.js +271 -0
- package/src-noconflict/mode-sqlserver.js +445 -0
- package/src-noconflict/mode-stylus.js +472 -0
- package/src-noconflict/mode-svg.js +1582 -0
- package/src-noconflict/mode-swift.js +395 -0
- package/src-noconflict/mode-tcl.js +387 -0
- package/src-noconflict/mode-terraform.js +400 -0
- package/src-noconflict/mode-tex.js +160 -0
- package/src-noconflict/mode-text.js +9 -0
- package/src-noconflict/mode-textile.js +150 -0
- package/src-noconflict/mode-toml.js +153 -0
- package/src-noconflict/mode-tsx.js +888 -0
- package/src-noconflict/mode-turtle.js +296 -0
- package/src-noconflict/mode-twig.js +2693 -0
- package/src-noconflict/mode-typescript.js +869 -0
- package/src-noconflict/mode-vala.js +677 -0
- package/src-noconflict/mode-vbscript.js +635 -0
- package/src-noconflict/mode-velocity.js +2792 -0
- package/src-noconflict/mode-verilog.js +118 -0
- package/src-noconflict/mode-vhdl.js +116 -0
- package/src-noconflict/mode-visualforce.js +2640 -0
- package/src-noconflict/mode-wollok.js +914 -0
- package/src-noconflict/mode-xml.js +676 -0
- package/src-noconflict/mode-xquery.js +2644 -0
- package/src-noconflict/mode-yaml.js +330 -0
- package/src-noconflict/mode-zeek.js +539 -0
- package/src-noconflict/qurator-mode.js +120 -0
- package/src-noconflict/qurator-worker.js +91 -0
- package/src-noconflict/snippets/abap.js +9 -0
- package/src-noconflict/snippets/abc.js +45 -0
- package/src-noconflict/snippets/actionscript.js +171 -0
- package/src-noconflict/snippets/ada.js +9 -0
- package/src-noconflict/snippets/apache_conf.js +9 -0
- package/src-noconflict/snippets/apex.js +9 -0
- package/src-noconflict/snippets/applescript.js +9 -0
- package/src-noconflict/snippets/aql.js +9 -0
- package/src-noconflict/snippets/asciidoc.js +9 -0
- package/src-noconflict/snippets/asl.js +9 -0
- package/src-noconflict/snippets/assembly_x86.js +9 -0
- package/src-noconflict/snippets/autohotkey.js +9 -0
- package/src-noconflict/snippets/batchfile.js +9 -0
- package/src-noconflict/snippets/c9search.js +9 -0
- package/src-noconflict/snippets/c_cpp.js +145 -0
- package/src-noconflict/snippets/cirru.js +9 -0
- package/src-noconflict/snippets/clojure.js +104 -0
- package/src-noconflict/snippets/cobol.js +9 -0
- package/src-noconflict/snippets/coffee.js +109 -0
- package/src-noconflict/snippets/coldfusion.js +9 -0
- package/src-noconflict/snippets/crystal.js +9 -0
- package/src-noconflict/snippets/csharp.js +9 -0
- package/src-noconflict/snippets/csound_document.js +24 -0
- package/src-noconflict/snippets/csound_orchestra.js +61 -0
- package/src-noconflict/snippets/csound_score.js +9 -0
- package/src-noconflict/snippets/csp.js +9 -0
- package/src-noconflict/snippets/css.js +981 -0
- package/src-noconflict/snippets/curly.js +9 -0
- package/src-noconflict/snippets/d.js +9 -0
- package/src-noconflict/snippets/dart.js +97 -0
- package/src-noconflict/snippets/diff.js +25 -0
- package/src-noconflict/snippets/django.js +122 -0
- package/src-noconflict/snippets/dockerfile.js +9 -0
- package/src-noconflict/snippets/dot.js +9 -0
- package/src-noconflict/snippets/drools.js +33 -0
- package/src-noconflict/snippets/edifact.js +254 -0
- package/src-noconflict/snippets/eiffel.js +9 -0
- package/src-noconflict/snippets/ejs.js +9 -0
- package/src-noconflict/snippets/elixir.js +9 -0
- package/src-noconflict/snippets/elm.js +9 -0
- package/src-noconflict/snippets/erlang.js +174 -0
- package/src-noconflict/snippets/forth.js +9 -0
- package/src-noconflict/snippets/fortran.js +9 -0
- package/src-noconflict/snippets/fsharp.js +9 -0
- package/src-noconflict/snippets/fsl.js +14 -0
- package/src-noconflict/snippets/ftl.js +9 -0
- package/src-noconflict/snippets/gcode.js +9 -0
- package/src-noconflict/snippets/gherkin.js +9 -0
- package/src-noconflict/snippets/gitignore.js +9 -0
- package/src-noconflict/snippets/glsl.js +9 -0
- package/src-noconflict/snippets/gobstones.js +1718 -0
- package/src-noconflict/snippets/golang.js +9 -0
- package/src-noconflict/snippets/graphqlschema.js +46 -0
- package/src-noconflict/snippets/groovy.js +9 -0
- package/src-noconflict/snippets/haml.js +34 -0
- package/src-noconflict/snippets/handlebars.js +9 -0
- package/src-noconflict/snippets/haskell.js +96 -0
- package/src-noconflict/snippets/haskell_cabal.js +9 -0
- package/src-noconflict/snippets/haxe.js +9 -0
- package/src-noconflict/snippets/hjson.js +9 -0
- package/src-noconflict/snippets/html.js +867 -0
- package/src-noconflict/snippets/html_elixir.js +9 -0
- package/src-noconflict/snippets/html_ruby.js +9 -0
- package/src-noconflict/snippets/ini.js +9 -0
- package/src-noconflict/snippets/io.js +76 -0
- package/src-noconflict/snippets/jack.js +9 -0
- package/src-noconflict/snippets/jade.js +9 -0
- package/src-noconflict/snippets/java.js +254 -0
- package/src-noconflict/snippets/javascript.js +209 -0
- package/src-noconflict/snippets/json.js +9 -0
- package/src-noconflict/snippets/jsoniq.js +75 -0
- package/src-noconflict/snippets/jsp.js +113 -0
- package/src-noconflict/snippets/jssm.js +9 -0
- package/src-noconflict/snippets/jsx.js +9 -0
- package/src-noconflict/snippets/julia.js +9 -0
- package/src-noconflict/snippets/kotlin.js +9 -0
- package/src-noconflict/snippets/latex.js +9 -0
- package/src-noconflict/snippets/less.js +9 -0
- package/src-noconflict/snippets/liquid.js +895 -0
- package/src-noconflict/snippets/lisp.js +9 -0
- package/src-noconflict/snippets/livescript.js +9 -0
- package/src-noconflict/snippets/logiql.js +9 -0
- package/src-noconflict/snippets/logtalk.js +9 -0
- package/src-noconflict/snippets/lsl.js +1246 -0
- package/src-noconflict/snippets/lua.js +35 -0
- package/src-noconflict/snippets/luapage.js +9 -0
- package/src-noconflict/snippets/lucene.js +9 -0
- package/src-noconflict/snippets/makefile.js +18 -0
- package/src-noconflict/snippets/markdown.js +102 -0
- package/src-noconflict/snippets/mask.js +9 -0
- package/src-noconflict/snippets/matlab.js +9 -0
- package/src-noconflict/snippets/maze.js +23 -0
- package/src-noconflict/snippets/mel.js +9 -0
- package/src-noconflict/snippets/mixal.js +9 -0
- package/src-noconflict/snippets/mushcode.js +9 -0
- package/src-noconflict/snippets/mysql.js +9 -0
- package/src-noconflict/snippets/nginx.js +9 -0
- package/src-noconflict/snippets/nim.js +9 -0
- package/src-noconflict/snippets/nix.js +9 -0
- package/src-noconflict/snippets/nsis.js +9 -0
- package/src-noconflict/snippets/objectivec.js +9 -0
- package/src-noconflict/snippets/ocaml.js +9 -0
- package/src-noconflict/snippets/pascal.js +9 -0
- package/src-noconflict/snippets/perl.js +361 -0
- package/src-noconflict/snippets/pgsql.js +9 -0
- package/src-noconflict/snippets/php.js +397 -0
- package/src-noconflict/snippets/php_laravel_blade.js +9 -0
- package/src-noconflict/snippets/pig.js +9 -0
- package/src-noconflict/snippets/plain_text.js +9 -0
- package/src-noconflict/snippets/powershell.js +9 -0
- package/src-noconflict/snippets/praat.js +9 -0
- package/src-noconflict/snippets/prolog.js +9 -0
- package/src-noconflict/snippets/properties.js +9 -0
- package/src-noconflict/snippets/protobuf.js +9 -0
- package/src-noconflict/snippets/puppet.js +9 -0
- package/src-noconflict/snippets/python.js +172 -0
- package/src-noconflict/snippets/r.js +135 -0
- package/src-noconflict/snippets/razor.js +17 -0
- package/src-noconflict/snippets/rdoc.js +9 -0
- package/src-noconflict/snippets/red.js +9 -0
- package/src-noconflict/snippets/redshift.js +9 -0
- package/src-noconflict/snippets/rhtml.js +9 -0
- package/src-noconflict/snippets/rst.js +36 -0
- package/src-noconflict/snippets/ruby.js +942 -0
- package/src-noconflict/snippets/rust.js +9 -0
- package/src-noconflict/snippets/sass.js +9 -0
- package/src-noconflict/snippets/scad.js +9 -0
- package/src-noconflict/snippets/scala.js +9 -0
- package/src-noconflict/snippets/scheme.js +9 -0
- package/src-noconflict/snippets/scss.js +9 -0
- package/src-noconflict/snippets/sh.js +97 -0
- package/src-noconflict/snippets/sjs.js +9 -0
- package/src-noconflict/snippets/slim.js +9 -0
- package/src-noconflict/snippets/smarty.js +9 -0
- package/src-noconflict/snippets/snippets.js +23 -0
- package/src-noconflict/snippets/soy_template.js +9 -0
- package/src-noconflict/snippets/space.js +9 -0
- package/src-noconflict/snippets/sparql.js +9 -0
- package/src-noconflict/snippets/sql.js +40 -0
- package/src-noconflict/snippets/sqlserver.js +83 -0
- package/src-noconflict/snippets/stylus.js +9 -0
- package/src-noconflict/snippets/svg.js +9 -0
- package/src-noconflict/snippets/swift.js +9 -0
- package/src-noconflict/snippets/tcl.js +106 -0
- package/src-noconflict/snippets/terraform.js +9 -0
- package/src-noconflict/snippets/tex.js +204 -0
- package/src-noconflict/snippets/text.js +9 -0
- package/src-noconflict/snippets/textile.js +44 -0
- package/src-noconflict/snippets/toml.js +9 -0
- package/src-noconflict/snippets/tsx.js +9 -0
- package/src-noconflict/snippets/turtle.js +9 -0
- package/src-noconflict/snippets/twig.js +9 -0
- package/src-noconflict/snippets/typescript.js +9 -0
- package/src-noconflict/snippets/vala.js +200 -0
- package/src-noconflict/snippets/vbscript.js +9 -0
- package/src-noconflict/snippets/velocity.js +43 -0
- package/src-noconflict/snippets/verilog.js +9 -0
- package/src-noconflict/snippets/vhdl.js +9 -0
- package/src-noconflict/snippets/visualforce.js +9 -0
- package/src-noconflict/snippets/wollok.js +98 -0
- package/src-noconflict/snippets/xml.js +9 -0
- package/src-noconflict/snippets/xquery.js +75 -0
- package/src-noconflict/snippets/yaml.js +9 -0
- package/src-noconflict/snippets/zeek.js +9 -0
- package/src-noconflict/theme-ambiance.js +185 -0
- package/src-noconflict/theme-chaos.js +163 -0
- package/src-noconflict/theme-chrome.js +135 -0
- package/src-noconflict/theme-clouds.js +102 -0
- package/src-noconflict/theme-clouds_midnight.js +103 -0
- package/src-noconflict/theme-cobalt.js +120 -0
- package/src-noconflict/theme-crimson_editor.js +125 -0
- package/src-noconflict/theme-dawn.js +115 -0
- package/src-noconflict/theme-dracula.js +135 -0
- package/src-noconflict/theme-dreamweaver.js +148 -0
- package/src-noconflict/theme-eclipse.js +105 -0
- package/src-noconflict/theme-github.js +110 -0
- package/src-noconflict/theme-gob.js +119 -0
- package/src-noconflict/theme-gruvbox.js +89 -0
- package/src-noconflict/theme-idle_fingers.js +103 -0
- package/src-noconflict/theme-iplastic.js +128 -0
- package/src-noconflict/theme-katzenmilch.js +128 -0
- package/src-noconflict/theme-kr_theme.js +111 -0
- package/src-noconflict/theme-kuroir.js +68 -0
- package/src-noconflict/theme-merbivore.js +102 -0
- package/src-noconflict/theme-merbivore_soft.js +103 -0
- package/src-noconflict/theme-mono_industrial.js +114 -0
- package/src-noconflict/theme-monokai.js +112 -0
- package/src-noconflict/theme-pastel_on_dark.js +115 -0
- package/src-noconflict/theme-solarized_dark.js +95 -0
- package/src-noconflict/theme-solarized_light.js +98 -0
- package/src-noconflict/theme-sqlserver.js +145 -0
- package/src-noconflict/theme-terminal.js +121 -0
- package/src-noconflict/theme-textmate.js +137 -0
- package/src-noconflict/theme-tomorrow.js +115 -0
- package/src-noconflict/theme-tomorrow_night.js +115 -0
- package/src-noconflict/theme-tomorrow_night_blue.js +113 -0
- package/src-noconflict/theme-tomorrow_night_bright.js +128 -0
- package/src-noconflict/theme-tomorrow_night_eighties.js +115 -0
- package/src-noconflict/theme-twilight.js +116 -0
- package/src-noconflict/theme-vibrant_ink.js +101 -0
- package/src-noconflict/theme-xcode.js +95 -0
- package/src-noconflict/worker-coffee.js +1470 -0
- package/src-noconflict/worker-css.js +9000 -0
- package/src-noconflict/worker-html.js +10922 -0
- package/src-noconflict/worker-javascript.js +15001 -0
- package/src-noconflict/worker-json.js +1715 -0
- package/src-noconflict/worker-lua.js +3608 -0
- package/src-noconflict/worker-php.js +3687 -0
- package/src-noconflict/worker-xml.js +3208 -0
- package/src-noconflict/worker-xquery.js +57668 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var oop = require("../lib/oop");
|
|
5
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
6
|
+
|
|
7
|
+
var DocCommentHighlightRules = function() {
|
|
8
|
+
this.$rules = {
|
|
9
|
+
"start" : [ {
|
|
10
|
+
token : "comment.doc.tag",
|
|
11
|
+
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
|
12
|
+
},
|
|
13
|
+
DocCommentHighlightRules.getTagRule(),
|
|
14
|
+
{
|
|
15
|
+
defaultToken : "comment.doc",
|
|
16
|
+
caseInsensitive: true
|
|
17
|
+
}]
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
|
22
|
+
|
|
23
|
+
DocCommentHighlightRules.getTagRule = function(start) {
|
|
24
|
+
return {
|
|
25
|
+
token : "comment.doc.tag.storage.type",
|
|
26
|
+
regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
|
31
|
+
return {
|
|
32
|
+
token : "comment.doc", // doc comment
|
|
33
|
+
regex : "\\/\\*(?=\\*)",
|
|
34
|
+
next : start
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
DocCommentHighlightRules.getEndRule = function (start) {
|
|
39
|
+
return {
|
|
40
|
+
token : "comment.doc", // closing comment
|
|
41
|
+
regex : "\\*\\/",
|
|
42
|
+
next : start
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
|
48
|
+
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
ace.define("ace/mode/asl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
|
52
|
+
"use strict";
|
|
53
|
+
|
|
54
|
+
var oop = require("../lib/oop");
|
|
55
|
+
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
|
56
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
57
|
+
|
|
58
|
+
var ASLHighlightRules = function() {
|
|
59
|
+
var keywords = (
|
|
60
|
+
"Default|DefinitionBlock|Device|Method|Else|ElseIf|For|Function|If|Include|Method|Return|" +
|
|
61
|
+
"Scope|Switch|Case|While|Break|BreakPoint|Continue|NoOp|Wait|True|False|" +
|
|
62
|
+
"AccessAs|Acquire|Alias|BankField|Buffer|Concatenate|ConcatenateResTemplate|" +
|
|
63
|
+
"CondRefOf|Connection|CopyObject|CreateBitField|CreateByteField|CreateDWordField|" +
|
|
64
|
+
"CreateField|CreateQWordField|CreateWordField|DataTableRegion|Debug|" +
|
|
65
|
+
"DMA|DWordIO|DWordMemory|DWordSpace|EisaId|EISAID|EndDependentFn|Event|ExtendedIO|" +
|
|
66
|
+
"ExtendedMemory|ExtendedSpace|External|Fatal|Field|FindSetLeftBit|FindSetRightBit|" +
|
|
67
|
+
"FixedDMA|FixedIO|Fprintf|FromBCD|GpioInt|GpioIo|I2CSerialBusV2|IndexField|" +
|
|
68
|
+
"Interrupt|IO|IRQ|IRQNoFlags|Load|LoadTable|Match|Memory32|Memory32Fixed|" +
|
|
69
|
+
"Mid|Mutex|Name|Notify|Offset|ObjectType|OperationRegion|Package|PowerResource|Printf|" +
|
|
70
|
+
"QWordIO|QWordMemory|QWordSpace|RawDataBuffer|Register|Release|Reset|ResourceTemplate|" +
|
|
71
|
+
"Signal|SizeOf|Sleep|SPISerialBusV2|Stall|StartDependentFn|StartDependentFnNoPri|" +
|
|
72
|
+
"Store|ThermalZone|Timer|ToBCD|ToBuffer|ToDecimalString|ToInteger|ToPLD|ToString|" +
|
|
73
|
+
"ToUUID|UARTSerialBusV2|Unicode|Unload|VendorLong|VendorShort|WordBusNumber|WordIO|" +
|
|
74
|
+
"WordSpace"
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
var keywordOperators = (
|
|
78
|
+
"Add|And|Decrement|Divide|Increment|Index|LAnd|LEqual|LGreater|LGreaterEqual|" +
|
|
79
|
+
"LLess|LLessEqual|LNot|LNotEqual|LOr|Mod|Multiply|NAnd|NOr|Not|Or|RefOf|Revision|" +
|
|
80
|
+
"ShiftLeft|ShiftRight|Subtract|XOr|DerefOf"
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
var flags = (
|
|
84
|
+
"AttribQuick|AttribSendReceive|AttribByte|AttribBytes|AttribRawBytes|" +
|
|
85
|
+
"AttribRawProcessBytes|AttribWord|AttribBlock|AttribProcessCall|AttribBlockProcessCall|" +
|
|
86
|
+
"AnyAcc|ByteAcc|WordAcc|DWordAcc|QWordAcc|BufferAcc|" +
|
|
87
|
+
"AddressRangeMemory|AddressRangeReserved|AddressRangeNVS|AddressRangeACPI|" +
|
|
88
|
+
"RegionSpaceKeyword|FFixedHW|PCC|" +
|
|
89
|
+
"AddressingMode7Bit|AddressingMode10Bit|" +
|
|
90
|
+
"DataBitsFive|DataBitsSix|DataBitsSeven|DataBitsEight|DataBitsNine|" +
|
|
91
|
+
"BusMaster|NotBusMaster|" +
|
|
92
|
+
"ClockPhaseFirst|ClockPhaseSecond|ClockPolarityLow|ClockPolarityHigh|" +
|
|
93
|
+
"SubDecode|PosDecode|" +
|
|
94
|
+
"BigEndianing|LittleEndian|" +
|
|
95
|
+
"FlowControlNone|FlowControlXon|FlowControlHardware|" +
|
|
96
|
+
"Edge|Level|ActiveHigh|ActiveLow|ActiveBoth|Decode16|Decode10|" +
|
|
97
|
+
"IoRestrictionNone|IoRestrictionInputOnly|IoRestrictionOutputOnly|" +
|
|
98
|
+
"IoRestrictionNoneAndPreserve|Lock|NoLock|MTR|MEQ|MLE|MLT|MGE|MGT|" +
|
|
99
|
+
"MaxFixed|MaxNotFixed|Cacheable|WriteCombining|Prefetchable|NonCacheable|" +
|
|
100
|
+
"MinFixed|MinNotFixed|" +
|
|
101
|
+
"ParityTypeNone|ParityTypeSpace|ParityTypeMark|ParityTypeOdd|ParityTypeEven|" +
|
|
102
|
+
"PullDefault|PullUp|PullDown|PullNone|PolarityHigh|PolarityLow|" +
|
|
103
|
+
"ISAOnlyRanges|NonISAOnlyRanges|EntireRange|ReadWrite|ReadOnly|" +
|
|
104
|
+
"UserDefRegionSpace|SystemIO|SystemMemory|PCI_Config|EmbeddedControl|" +
|
|
105
|
+
"SMBus|SystemCMOS|PciBarTarget|IPMI|GeneralPurposeIO|GenericSerialBus|" +
|
|
106
|
+
"ResourceConsumer|ResourceProducer|Serialized|NotSerialized|" +
|
|
107
|
+
"Shared|Exclusive|SharedAndWake|ExclusiveAndWake|ControllerInitiated|DeviceInitiated|" +
|
|
108
|
+
"StopBitsZero|StopBitsOne|StopBitsOnePlusHalf|StopBitsTwo|" +
|
|
109
|
+
"Width8Bit|Width16Bit|Width32Bit|Width64Bit|Width128Bit|Width256Bit|" +
|
|
110
|
+
"SparseTranslation|DenseTranslation|TypeTranslation|TypeStatic|" +
|
|
111
|
+
"Preserve|WriteAsOnes|WriteAsZeros|Transfer8|Transfer16|Transfer8_16|" +
|
|
112
|
+
"ThreeWireMode|FourWireMode"
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
var storageTypes = (
|
|
116
|
+
"UnknownObj|IntObj|StrObj|BuffObj|PkgObj|FieldUnitObj|DeviceObj|" +
|
|
117
|
+
"EventObj|MethodObj|MutexObj|OpRegionObj|PowerResObj|ProcessorObj|" +
|
|
118
|
+
"ThermalZoneObj|BuffFieldObj|DDBHandleObj"
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
var builtinConstants = (
|
|
122
|
+
"__FILE__|__PATH__|__LINE__|__DATE__|__IASL__"
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
var strNumbers = (
|
|
126
|
+
"One|Ones|Zero"
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
var deprecated = (
|
|
130
|
+
"Memory24|Processor"
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
var keywordMapper = this.createKeywordMapper({
|
|
134
|
+
"keyword": keywords,
|
|
135
|
+
"constant.numeric": strNumbers,
|
|
136
|
+
"keyword.operator": keywordOperators,
|
|
137
|
+
"constant.language": builtinConstants,
|
|
138
|
+
"storage.type": storageTypes,
|
|
139
|
+
"constant.library": flags,
|
|
140
|
+
"invalid.deprecated": deprecated
|
|
141
|
+
}, "identifier");
|
|
142
|
+
|
|
143
|
+
this.$rules = {
|
|
144
|
+
"start" : [
|
|
145
|
+
{
|
|
146
|
+
token : "comment",
|
|
147
|
+
regex : "\\/\\/.*$"
|
|
148
|
+
},
|
|
149
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
|
150
|
+
{
|
|
151
|
+
token : "comment", // multi line comment
|
|
152
|
+
regex : "\\/\\*",
|
|
153
|
+
next : "comment"
|
|
154
|
+
},
|
|
155
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
|
156
|
+
{
|
|
157
|
+
token : "comment", // ignored fields / comments
|
|
158
|
+
regex : "\\\[",
|
|
159
|
+
next : "ignoredfield"
|
|
160
|
+
}, {
|
|
161
|
+
token : "variable",
|
|
162
|
+
regex : "\\Local[0-7]|\\Arg[0-6]"
|
|
163
|
+
}, {
|
|
164
|
+
token : "keyword", // pre-compiler directives
|
|
165
|
+
regex : "#\\s*(?:define|elif|else|endif|error|if|ifdef|ifndef|include|includebuffer|line|pragma|undef|warning)\\b",
|
|
166
|
+
next : "directive"
|
|
167
|
+
}, {
|
|
168
|
+
token : "string", // single line
|
|
169
|
+
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
|
170
|
+
}, {
|
|
171
|
+
token : "constant.character", // single line
|
|
172
|
+
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
|
173
|
+
}, {
|
|
174
|
+
token : "constant.numeric", // hex
|
|
175
|
+
regex : /0[xX][0-9a-fA-F]+\b/
|
|
176
|
+
}, {
|
|
177
|
+
token : "constant.numeric",
|
|
178
|
+
regex : /[0-9]+\b/
|
|
179
|
+
}, {
|
|
180
|
+
token : keywordMapper,
|
|
181
|
+
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
|
182
|
+
}, {
|
|
183
|
+
token : "keyword.operator",
|
|
184
|
+
regex : /[!\~\*\/%+-<>\^|=&]/
|
|
185
|
+
}, {
|
|
186
|
+
token : "lparen",
|
|
187
|
+
regex : "[[({]"
|
|
188
|
+
}, {
|
|
189
|
+
token : "rparen",
|
|
190
|
+
regex : "[\\])}]"
|
|
191
|
+
}, {
|
|
192
|
+
token : "text",
|
|
193
|
+
regex : "\\s+"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"comment" : [
|
|
197
|
+
{
|
|
198
|
+
token : "comment", // closing comment
|
|
199
|
+
regex : "\\*\\/",
|
|
200
|
+
next : "start"
|
|
201
|
+
}, {
|
|
202
|
+
defaultToken : "comment"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"ignoredfield" : [
|
|
206
|
+
{
|
|
207
|
+
token : "comment", // closing ignored fields / comments
|
|
208
|
+
regex : "\\\]",
|
|
209
|
+
next : "start"
|
|
210
|
+
}, {
|
|
211
|
+
defaultToken : "comment"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"directive" : [
|
|
215
|
+
{
|
|
216
|
+
token : "constant.other.multiline",
|
|
217
|
+
regex : /\\/
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
token : "constant.other.multiline",
|
|
221
|
+
regex : /.*\\/
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
token : "constant.other",
|
|
225
|
+
regex : "\\s*<.+?>*s",
|
|
226
|
+
next : "start"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
token : "constant.other", // single line
|
|
230
|
+
regex : '\\s*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]*s',
|
|
231
|
+
next : "start"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
token : "constant.other", // single line
|
|
235
|
+
regex : "\\s*['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']",
|
|
236
|
+
next : "start"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
token : "constant.other",
|
|
240
|
+
regex : /[^\\\/]+/,
|
|
241
|
+
next : "start"
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
this.embedRules(DocCommentHighlightRules, "doc-",
|
|
247
|
+
[ DocCommentHighlightRules.getEndRule("start") ]);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
oop.inherits(ASLHighlightRules, TextHighlightRules);
|
|
251
|
+
|
|
252
|
+
exports.ASLHighlightRules = ASLHighlightRules;
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
|
256
|
+
"use strict";
|
|
257
|
+
|
|
258
|
+
var oop = require("../../lib/oop");
|
|
259
|
+
var Range = require("../../range").Range;
|
|
260
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
|
261
|
+
|
|
262
|
+
var FoldMode = exports.FoldMode = function(commentRegex) {
|
|
263
|
+
if (commentRegex) {
|
|
264
|
+
this.foldingStartMarker = new RegExp(
|
|
265
|
+
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
|
266
|
+
);
|
|
267
|
+
this.foldingStopMarker = new RegExp(
|
|
268
|
+
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
|
273
|
+
|
|
274
|
+
(function() {
|
|
275
|
+
|
|
276
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
|
277
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
|
278
|
+
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
|
279
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
|
280
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
|
281
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
|
282
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
|
283
|
+
var line = session.getLine(row);
|
|
284
|
+
|
|
285
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
|
286
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
|
287
|
+
return "";
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
|
291
|
+
|
|
292
|
+
if (!fw && this.startRegionRe.test(line))
|
|
293
|
+
return "start"; // lineCommentRegionStart
|
|
294
|
+
|
|
295
|
+
return fw;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
|
299
|
+
var line = session.getLine(row);
|
|
300
|
+
|
|
301
|
+
if (this.startRegionRe.test(line))
|
|
302
|
+
return this.getCommentRegionBlock(session, line, row);
|
|
303
|
+
|
|
304
|
+
var match = line.match(this.foldingStartMarker);
|
|
305
|
+
if (match) {
|
|
306
|
+
var i = match.index;
|
|
307
|
+
|
|
308
|
+
if (match[1])
|
|
309
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
|
310
|
+
|
|
311
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
|
312
|
+
|
|
313
|
+
if (range && !range.isMultiLine()) {
|
|
314
|
+
if (forceMultiline) {
|
|
315
|
+
range = this.getSectionRange(session, row);
|
|
316
|
+
} else if (foldStyle != "all")
|
|
317
|
+
range = null;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
return range;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (foldStyle === "markbegin")
|
|
324
|
+
return;
|
|
325
|
+
|
|
326
|
+
var match = line.match(this.foldingStopMarker);
|
|
327
|
+
if (match) {
|
|
328
|
+
var i = match.index + match[0].length;
|
|
329
|
+
|
|
330
|
+
if (match[1])
|
|
331
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
|
332
|
+
|
|
333
|
+
return session.getCommentFoldRange(row, i, -1);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
this.getSectionRange = function(session, row) {
|
|
338
|
+
var line = session.getLine(row);
|
|
339
|
+
var startIndent = line.search(/\S/);
|
|
340
|
+
var startRow = row;
|
|
341
|
+
var startColumn = line.length;
|
|
342
|
+
row = row + 1;
|
|
343
|
+
var endRow = row;
|
|
344
|
+
var maxRow = session.getLength();
|
|
345
|
+
while (++row < maxRow) {
|
|
346
|
+
line = session.getLine(row);
|
|
347
|
+
var indent = line.search(/\S/);
|
|
348
|
+
if (indent === -1)
|
|
349
|
+
continue;
|
|
350
|
+
if (startIndent > indent)
|
|
351
|
+
break;
|
|
352
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
|
353
|
+
|
|
354
|
+
if (subRange) {
|
|
355
|
+
if (subRange.start.row <= startRow) {
|
|
356
|
+
break;
|
|
357
|
+
} else if (subRange.isMultiLine()) {
|
|
358
|
+
row = subRange.end.row;
|
|
359
|
+
} else if (startIndent == indent) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
endRow = row;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
|
367
|
+
};
|
|
368
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
|
369
|
+
var startColumn = line.search(/\s*$/);
|
|
370
|
+
var maxRow = session.getLength();
|
|
371
|
+
var startRow = row;
|
|
372
|
+
|
|
373
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
|
374
|
+
var depth = 1;
|
|
375
|
+
while (++row < maxRow) {
|
|
376
|
+
line = session.getLine(row);
|
|
377
|
+
var m = re.exec(line);
|
|
378
|
+
if (!m) continue;
|
|
379
|
+
if (m[1]) depth--;
|
|
380
|
+
else depth++;
|
|
381
|
+
|
|
382
|
+
if (!depth) break;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
var endRow = row;
|
|
386
|
+
if (endRow > startRow) {
|
|
387
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
}).call(FoldMode.prototype);
|
|
392
|
+
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
ace.define("ace/mode/asl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/asl_highlight_rules","ace/mode/folding/cstyle"], function (require, exports, module) {
|
|
396
|
+
"use strict";
|
|
397
|
+
|
|
398
|
+
var oop = require("../lib/oop");
|
|
399
|
+
var TextMode = require("./text").Mode;
|
|
400
|
+
var ASLHighlightRules = require("./asl_highlight_rules").ASLHighlightRules;
|
|
401
|
+
var FoldMode = require("./folding/cstyle").FoldMode;
|
|
402
|
+
|
|
403
|
+
var Mode = function () {
|
|
404
|
+
this.HighlightRules = ASLHighlightRules;
|
|
405
|
+
this.foldingRules = new FoldMode();
|
|
406
|
+
this.$behaviour = this.$defaultBehaviour;
|
|
407
|
+
};
|
|
408
|
+
oop.inherits(Mode, TextMode);
|
|
409
|
+
|
|
410
|
+
(function () {
|
|
411
|
+
this.$id = "ace/mode/asl";
|
|
412
|
+
}).call(Mode.prototype);
|
|
413
|
+
|
|
414
|
+
exports.Mode = Mode;
|
|
415
|
+
}); (function() {
|
|
416
|
+
ace.require(["ace/mode/asl"], function(m) {
|
|
417
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
418
|
+
module.exports = m;
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
})();
|
|
422
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
ace.define("ace/mode/assembly_x86_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var oop = require("../lib/oop");
|
|
5
|
+
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
|
6
|
+
|
|
7
|
+
var AssemblyX86HighlightRules = function() {
|
|
8
|
+
|
|
9
|
+
this.$rules = { start:
|
|
10
|
+
[ { token: 'keyword.control.assembly',
|
|
11
|
+
regex: '\\b(?:aaa|aad|aam|aas|adc|add|addpd|addps|addsd|addss|addsubpd|addsubps|aesdec|aesdeclast|aesenc|aesenclast|aesimc|aeskeygenassist|and|andpd|andps|andnpd|andnps|arpl|blendpd|blendps|blendvpd|blendvps|bound|bsf|bsr|bswap|bt|btc|btr|bts|cbw|cwde|cdqe|clc|cld|cflush|clts|cmc|cmov(?:n?e|ge?|ae?|le?|be?|n?o|n?z)|cmp|cmppd|cmpps|cmps|cnpsb|cmpsw|cmpsd|cmpsq|cmpss|cmpxchg|cmpxchg8b|cmpxchg16b|comisd|comiss|cpuid|crc32|cvtdq2pd|cvtdq2ps|cvtpd2dq|cvtpd2pi|cvtpd2ps|cvtpi2pd|cvtpi2ps|cvtps2dq|cvtps2pd|cvtps2pi|cvtsd2si|cvtsd2ss|cvts2sd|cvtsi2ss|cvtss2sd|cvtss2si|cvttpd2dq|cvtpd2pi|cvttps2dq|cvttps2pi|cvttps2dq|cvttps2pi|cvttsd2si|cvttss2si|cwd|cdq|cqo|daa|das|dec|div|divpd|divps|divsd|divss|dppd|dpps|emms|enter|extractps|f2xm1|fabs|fadd|faddp|fiadd|fbld|fbstp|fchs|fclex|fnclex|fcmov(?:n?e|ge?|ae?|le?|be?|n?o|n?z)|fcom|fcmop|fcompp|fcomi|fcomip|fucomi|fucomip|fcos|fdecstp|fdiv|fdivp|fidiv|fdivr|fdivrp|fidivr|ffree|ficom|ficomp|fild|fincstp|finit|fnint|fist|fistp|fisttp|fld|fld1|fldl2t|fldl2e|fldpi|fldlg2|fldln2|fldz|fldcw|fldenv|fmul|fmulp|fimul|fnop|fpatan|fprem|fprem1|fptan|frndint|frstor|fsave|fnsave|fscale|fsin|fsincos|fsqrt|fst|fstp|fstcw|fnstcw|fstenv|fnstenv|fsts|fnstsw|fsub|fsubp|fisub|fsubr|fsubrp|fisubr|ftst|fucom|fucomp|fucompp|fxam|fxch|fxrstor|fxsave|fxtract|fyl2x|fyl2xp1|haddpd|haddps|husbpd|hsubps|idiv|imul|in|inc|ins|insb|insw|insd|insertps|int|into|invd|invplg|invpcid|iret|iretd|iretq|lahf|lar|lddqu|ldmxcsr|lds|les|lfs|lgs|lss|lea|leave|lfence|lgdt|lidt|llgdt|lmsw|lock|lods|lodsb|lodsw|lodsd|lodsq|lsl|ltr|maskmovdqu|maskmovq|maxpd|maxps|maxsd|maxss|mfence|minpd|minps|minsd|minss|monitor|mov|movapd|movaps|movbe|movd|movq|movddup|movdqa|movdqu|movq2q|movhlps|movhpd|movhps|movlhps|movlpd|movlps|movmskpd|movmskps|movntdqa|movntdq|movnti|movntpd|movntps|movntq|movq|movq2dq|movs|movsb|movsw|movsd|movsq|movsd|movshdup|movsldup|movss|movsx|movsxd|movupd|movups|movzx|mpsadbw|mul|mulpd|mulps|mulsd|mulss|mwait|neg|not|or|orpd|orps|out|outs|outsb|outsw|outsd|pabsb|pabsw|pabsd|packsswb|packssdw|packusdw|packuswbpaddb|paddw|paddd|paddq|paddsb|paddsw|paddusb|paddusw|palignr|pand|pandn|pause|pavgb|pavgw|pblendvb|pblendw|pclmulqdq|pcmpeqb|pcmpeqw|pcmpeqd|pcmpeqq|pcmpestri|pcmpestrm|pcmptb|pcmptgw|pcmpgtd|pcmpgtq|pcmpistri|pcmpisrm|pextrb|pextrd|pextrq|pextrw|phaddw|phaddd|phaddsw|phinposuw|phsubw|phsubd|phsubsw|pinsrb|pinsrd|pinsrq|pinsrw|pmaddubsw|pmadddwd|pmaxsb|pmaxsd|pmaxsw|pmaxsw|pmaxub|pmaxud|pmaxuw|pminsb|pminsd|pminsw|pminub|pminud|pminuw|pmovmskb|pmovsx|pmovzx|pmuldq|pmulhrsw|pmulhuw|pmulhw|pmulld|pmullw|pmuludw|pop|popa|popad|popcnt|popf|popfd|popfq|por|prefetch|psadbw|pshufb|pshufd|pshufhw|pshuflw|pshufw|psignb|psignw|psignd|pslldq|psllw|pslld|psllq|psraw|psrad|psrldq|psrlw|psrld|psrlq|psubb|psubw|psubd|psubq|psubsb|psubsw|psubusb|psubusw|test|ptest|punpckhbw|punpckhwd|punpckhdq|punpckhddq|punpcklbw|punpcklwd|punpckldq|punpckldqd|push|pusha|pushad|pushf|pushfd|pxor|prcl|rcr|rol|ror|rcpps|rcpss|rdfsbase|rdgsbase|rdmsr|rdpmc|rdrand|rdtsc|rdtscp|rep|repe|repz|repne|repnz|roundpd|roundps|roundsd|roundss|rsm|rsqrps|rsqrtss|sahf|sal|sar|shl|shr|sbb|scas|scasb|scasw|scasd|set(?:n?e|ge?|ae?|le?|be?|n?o|n?z)|sfence|sgdt|shld|shrd|shufpd|shufps|sidt|sldt|smsw|sqrtpd|sqrtps|sqrtsd|sqrtss|stc|std|stmxcsr|stos|stosb|stosw|stosd|stosq|str|sub|subpd|subps|subsd|subss|swapgs|syscall|sysenter|sysexit|sysret|teset|ucomisd|ucomiss|ud2|unpckhpd|unpckhps|unpcklpd|unpcklps|vbroadcast|vcvtph2ps|vcvtp2sph|verr|verw|vextractf128|vinsertf128|vmaskmov|vpermilpd|vpermilps|vperm2f128|vtestpd|vtestps|vzeroall|vzeroupper|wait|fwait|wbinvd|wrfsbase|wrgsbase|wrmsr|xadd|xchg|xgetbv|xlat|xlatb|xor|xorpd|xorps|xrstor|xsave|xsaveopt|xsetbv|lzcnt|extrq|insertq|movntsd|movntss|vfmaddpd|vfmaddps|vfmaddsd|vfmaddss|vfmaddsubbpd|vfmaddsubps|vfmsubaddpd|vfmsubaddps|vfmsubpd|vfmsubps|vfmsubsd|vfnmaddpd|vfnmaddps|vfnmaddsd|vfnmaddss|vfnmsubpd|vfnmusbps|vfnmusbsd|vfnmusbss|cvt|xor|cli|sti|hlt|nop|lock|wait|enter|leave|ret|loop(?:n?e|n?z)?|call|j(?:mp|n?e|ge?|ae?|le?|be?|n?o|n?z))\\b',
|
|
12
|
+
caseInsensitive: true },
|
|
13
|
+
{ token: 'variable.parameter.register.assembly',
|
|
14
|
+
regex: '\\b(?:CS|DS|ES|FS|GS|SS|RAX|EAX|RBX|EBX|RCX|ECX|RDX|EDX|RCX|RIP|EIP|IP|RSP|ESP|SP|RSI|ESI|SI|RDI|EDI|DI|RFLAGS|EFLAGS|FLAGS|R8-15|(?:Y|X)MM(?:[0-9]|10|11|12|13|14|15)|(?:A|B|C|D)(?:X|H|L)|CR(?:[0-4]|DR(?:[0-7]|TR6|TR7|EFER)))\\b',
|
|
15
|
+
caseInsensitive: true },
|
|
16
|
+
{ token: 'constant.character.decimal.assembly',
|
|
17
|
+
regex: '\\b[0-9]+\\b' },
|
|
18
|
+
{ token: 'constant.character.hexadecimal.assembly',
|
|
19
|
+
regex: '\\b0x[A-F0-9]+\\b',
|
|
20
|
+
caseInsensitive: true },
|
|
21
|
+
{ token: 'constant.character.hexadecimal.assembly',
|
|
22
|
+
regex: '\\b[A-F0-9]+h\\b',
|
|
23
|
+
caseInsensitive: true },
|
|
24
|
+
{ token: 'string.assembly', regex: /'([^\\']|\\.)*'/ },
|
|
25
|
+
{ token: 'string.assembly', regex: /"([^\\"]|\\.)*"/ },
|
|
26
|
+
{ token: 'support.function.directive.assembly',
|
|
27
|
+
regex: '^\\[',
|
|
28
|
+
push:
|
|
29
|
+
[ { token: 'support.function.directive.assembly',
|
|
30
|
+
regex: '\\]$',
|
|
31
|
+
next: 'pop' },
|
|
32
|
+
{ defaultToken: 'support.function.directive.assembly' } ] },
|
|
33
|
+
{ token:
|
|
34
|
+
[ 'support.function.directive.assembly',
|
|
35
|
+
'support.function.directive.assembly',
|
|
36
|
+
'entity.name.function.assembly' ],
|
|
37
|
+
regex: '(^struc)( )([_a-zA-Z][_a-zA-Z0-9]*)' },
|
|
38
|
+
{ token: 'support.function.directive.assembly',
|
|
39
|
+
regex: '^endstruc\\b' },
|
|
40
|
+
{ token:
|
|
41
|
+
[ 'support.function.directive.assembly',
|
|
42
|
+
'entity.name.function.assembly',
|
|
43
|
+
'support.function.directive.assembly',
|
|
44
|
+
'constant.character.assembly' ],
|
|
45
|
+
regex: '^(%macro )([_a-zA-Z][_a-zA-Z0-9]*)( )([0-9]+)' },
|
|
46
|
+
{ token: 'support.function.directive.assembly',
|
|
47
|
+
regex: '^%endmacro' },
|
|
48
|
+
{ token:
|
|
49
|
+
[ 'text',
|
|
50
|
+
'support.function.directive.assembly',
|
|
51
|
+
'text',
|
|
52
|
+
'entity.name.function.assembly' ],
|
|
53
|
+
regex: '(\\s*)(%define|%xdefine|%idefine|%undef|%assign|%defstr|%strcat|%strlen|%substr|%00|%0|%rotate|%rep|%endrep|%include|\\$\\$|\\$|%unmacro|%if|%elif|%else|%endif|%(?:el)?ifdef|%(?:el)?ifmacro|%(?:el)?ifctx|%(?:el)?ifidn|%(?:el)?ifidni|%(?:el)?ifid|%(?:el)?ifnum|%(?:el)?ifstr|%(?:el)?iftoken|%(?:el)?ifempty|%(?:el)?ifenv|%pathsearch|%depend|%use|%push|%pop|%repl|%arg|%stacksize|%local|%error|%warning|%fatal|%line|%!|%comment|%endcomment|__NASM_VERSION_ID__|__NASM_VER__|__FILE__|__LINE__|__BITS__|__OUTPUT_FORMAT__|__DATE__|__TIME__|__DATE_NUM__|_TIME__NUM__|__UTC_DATE__|__UTC_TIME__|__UTC_DATE_NUM__|__UTC_TIME_NUM__|__POSIX_TIME__|__PASS__|ISTRUC|AT|IEND|BITS 16|BITS 32|BITS 64|USE16|USE32|__SECT__|ABSOLUTE|EXTERN|GLOBAL|COMMON|CPU|FLOAT)\\b( ?)((?:[_a-zA-Z][_a-zA-Z0-9]*)?)',
|
|
54
|
+
caseInsensitive: true },
|
|
55
|
+
{ token: 'support.function.directive.assembly',
|
|
56
|
+
regex: '\\b(?:d[bwdqtoy]|res[bwdqto]|equ|times|align|alignb|sectalign|section|ptr|byte|word|dword|qword|incbin)\\b',
|
|
57
|
+
caseInsensitive: true },
|
|
58
|
+
{ token: 'entity.name.function.assembly', regex: '^\\s*%%[\\w.]+?:$' },
|
|
59
|
+
{ token: 'entity.name.function.assembly', regex: '^\\s*%\\$[\\w.]+?:$' },
|
|
60
|
+
{ token: 'entity.name.function.assembly', regex: '^[\\w.]+?:' },
|
|
61
|
+
{ token: 'entity.name.function.assembly', regex: '^[\\w.]+?\\b' },
|
|
62
|
+
{ token: 'comment.assembly', regex: ';.*$' } ]
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
this.normalizeRules();
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
AssemblyX86HighlightRules.metaData = { fileTypes: [ 'asm' ],
|
|
69
|
+
name: 'Assembly x86',
|
|
70
|
+
scopeName: 'source.assembly' };
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
oop.inherits(AssemblyX86HighlightRules, TextHighlightRules);
|
|
74
|
+
|
|
75
|
+
exports.AssemblyX86HighlightRules = AssemblyX86HighlightRules;
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
|
|
79
|
+
"use strict";
|
|
80
|
+
|
|
81
|
+
var oop = require("../../lib/oop");
|
|
82
|
+
var BaseFoldMode = require("./fold_mode").FoldMode;
|
|
83
|
+
var Range = require("../../range").Range;
|
|
84
|
+
|
|
85
|
+
var FoldMode = exports.FoldMode = function() {};
|
|
86
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
|
87
|
+
|
|
88
|
+
(function() {
|
|
89
|
+
|
|
90
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
|
91
|
+
var range = this.indentationBlock(session, row);
|
|
92
|
+
if (range)
|
|
93
|
+
return range;
|
|
94
|
+
|
|
95
|
+
var re = /\S/;
|
|
96
|
+
var line = session.getLine(row);
|
|
97
|
+
var startLevel = line.search(re);
|
|
98
|
+
if (startLevel == -1 || line[startLevel] != "#")
|
|
99
|
+
return;
|
|
100
|
+
|
|
101
|
+
var startColumn = line.length;
|
|
102
|
+
var maxRow = session.getLength();
|
|
103
|
+
var startRow = row;
|
|
104
|
+
var endRow = row;
|
|
105
|
+
|
|
106
|
+
while (++row < maxRow) {
|
|
107
|
+
line = session.getLine(row);
|
|
108
|
+
var level = line.search(re);
|
|
109
|
+
|
|
110
|
+
if (level == -1)
|
|
111
|
+
continue;
|
|
112
|
+
|
|
113
|
+
if (line[level] != "#")
|
|
114
|
+
break;
|
|
115
|
+
|
|
116
|
+
endRow = row;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (endRow > startRow) {
|
|
120
|
+
var endColumn = session.getLine(endRow).length;
|
|
121
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
|
125
|
+
var line = session.getLine(row);
|
|
126
|
+
var indent = line.search(/\S/);
|
|
127
|
+
var next = session.getLine(row + 1);
|
|
128
|
+
var prev = session.getLine(row - 1);
|
|
129
|
+
var prevIndent = prev.search(/\S/);
|
|
130
|
+
var nextIndent = next.search(/\S/);
|
|
131
|
+
|
|
132
|
+
if (indent == -1) {
|
|
133
|
+
session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
|
|
134
|
+
return "";
|
|
135
|
+
}
|
|
136
|
+
if (prevIndent == -1) {
|
|
137
|
+
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
|
138
|
+
session.foldWidgets[row - 1] = "";
|
|
139
|
+
session.foldWidgets[row + 1] = "";
|
|
140
|
+
return "start";
|
|
141
|
+
}
|
|
142
|
+
} else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
|
143
|
+
if (session.getLine(row - 2).search(/\S/) == -1) {
|
|
144
|
+
session.foldWidgets[row - 1] = "start";
|
|
145
|
+
session.foldWidgets[row + 1] = "";
|
|
146
|
+
return "";
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (prevIndent!= -1 && prevIndent < indent)
|
|
151
|
+
session.foldWidgets[row - 1] = "start";
|
|
152
|
+
else
|
|
153
|
+
session.foldWidgets[row - 1] = "";
|
|
154
|
+
|
|
155
|
+
if (indent < nextIndent)
|
|
156
|
+
return "start";
|
|
157
|
+
else
|
|
158
|
+
return "";
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
}).call(FoldMode.prototype);
|
|
162
|
+
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
ace.define("ace/mode/assembly_x86",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/assembly_x86_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) {
|
|
166
|
+
"use strict";
|
|
167
|
+
|
|
168
|
+
var oop = require("../lib/oop");
|
|
169
|
+
var TextMode = require("./text").Mode;
|
|
170
|
+
var AssemblyX86HighlightRules = require("./assembly_x86_highlight_rules").AssemblyX86HighlightRules;
|
|
171
|
+
var FoldMode = require("./folding/coffee").FoldMode;
|
|
172
|
+
|
|
173
|
+
var Mode = function() {
|
|
174
|
+
this.HighlightRules = AssemblyX86HighlightRules;
|
|
175
|
+
this.foldingRules = new FoldMode();
|
|
176
|
+
this.$behaviour = this.$defaultBehaviour;
|
|
177
|
+
};
|
|
178
|
+
oop.inherits(Mode, TextMode);
|
|
179
|
+
|
|
180
|
+
(function() {
|
|
181
|
+
this.lineCommentStart = [";"];
|
|
182
|
+
this.$id = "ace/mode/assembly_x86";
|
|
183
|
+
}).call(Mode.prototype);
|
|
184
|
+
|
|
185
|
+
exports.Mode = Mode;
|
|
186
|
+
}); (function() {
|
|
187
|
+
ace.require(["ace/mode/assembly_x86"], function(m) {
|
|
188
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
189
|
+
module.exports = m;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
})();
|
|
193
|
+
|