snippets
4 years ago
ace.js
4 years ago
ext-beautify.js
4 years ago
ext-code_lens.js
4 years ago
ext-elastic_tabstops_lite.js
4 years ago
ext-emmet.js
4 years ago
ext-error_marker.js
4 years ago
ext-hardwrap.js
4 years ago
ext-keybinding_menu.js
4 years ago
ext-language_tools.js
4 years ago
ext-linking.js
4 years ago
ext-modelist.js
4 years ago
ext-options.js
4 years ago
ext-prompt.js
4 years ago
ext-rtl.js
4 years ago
ext-searchbox.js
4 years ago
ext-settings_menu.js
4 years ago
ext-spellcheck.js
4 years ago
ext-split.js
4 years ago
ext-static_highlight.js
4 years ago
ext-statusbar.js
4 years ago
ext-textarea.js
4 years ago
ext-themelist.js
4 years ago
ext-whitespace.js
4 years ago
keybinding-emacs.js
4 years ago
keybinding-sublime.js
4 years ago
keybinding-vim.js
4 years ago
keybinding-vscode.js
4 years ago
mode-abap.js
4 years ago
mode-abc.js
4 years ago
mode-actionscript.js
4 years ago
mode-ada.js
4 years ago
mode-alda.js
4 years ago
mode-apache_conf.js
4 years ago
mode-apex.js
4 years ago
mode-applescript.js
4 years ago
mode-aql.js
4 years ago
mode-asciidoc.js
4 years ago
mode-asl.js
4 years ago
mode-assembly_x86.js
4 years ago
mode-autohotkey.js
4 years ago
mode-batchfile.js
4 years ago
mode-c9search.js
4 years ago
mode-c_cpp.js
4 years ago
mode-cirru.js
4 years ago
mode-clojure.js
4 years ago
mode-cobol.js
4 years ago
mode-coffee.js
4 years ago
mode-coldfusion.js
4 years ago
mode-crystal.js
4 years ago
mode-csharp.js
4 years ago
mode-csound_document.js
4 years ago
mode-csound_orchestra.js
4 years ago
mode-csound_score.js
4 years ago
mode-csp.js
4 years ago
mode-css.js
4 years ago
mode-curly.js
4 years ago
mode-d.js
4 years ago
mode-dart.js
4 years ago
mode-diff.js
4 years ago
mode-django.js
4 years ago
mode-dockerfile.js
4 years ago
mode-dot.js
4 years ago
mode-drools.js
4 years ago
mode-edifact.js
4 years ago
mode-eiffel.js
4 years ago
mode-ejs.js
4 years ago
mode-elixir.js
4 years ago
mode-elm.js
4 years ago
mode-erlang.js
4 years ago
mode-forth.js
4 years ago
mode-fortran.js
4 years ago
mode-fsharp.js
4 years ago
mode-fsl.js
4 years ago
mode-ftl.js
4 years ago
mode-gcode.js
4 years ago
mode-gherkin.js
4 years ago
mode-gitignore.js
4 years ago
mode-glsl.js
4 years ago
mode-gobstones.js
4 years ago
mode-golang.js
4 years ago
mode-graphqlschema.js
4 years ago
mode-groovy.js
4 years ago
mode-haml.js
4 years ago
mode-handlebars.js
4 years ago
mode-haskell.js
4 years ago
mode-haskell_cabal.js
4 years ago
mode-haxe.js
4 years ago
mode-hjson.js
4 years ago
mode-html.js
4 years ago
mode-html_elixir.js
4 years ago
mode-html_ruby.js
4 years ago
mode-ini.js
4 years ago
mode-io.js
4 years ago
mode-ion.js
4 years ago
mode-jack.js
4 years ago
mode-jade.js
4 years ago
mode-java.js
4 years ago
mode-javascript.js
4 years ago
mode-json.js
4 years ago
mode-json5.js
4 years ago
mode-jsoniq.js
4 years ago
mode-jsp.js
4 years ago
mode-jssm.js
4 years ago
mode-jsx.js
4 years ago
mode-julia.js
4 years ago
mode-kotlin.js
4 years ago
mode-latex.js
4 years ago
mode-latte.js
4 years ago
mode-less.js
4 years ago
mode-liquid.js
4 years ago
mode-lisp.js
4 years ago
mode-livescript.js
4 years ago
mode-logiql.js
4 years ago
mode-logtalk.js
4 years ago
mode-lsl.js
4 years ago
mode-lua.js
4 years ago
mode-luapage.js
4 years ago
mode-lucene.js
4 years ago
mode-makefile.js
4 years ago
mode-markdown.js
4 years ago
mode-mask.js
4 years ago
mode-matlab.js
4 years ago
mode-maze.js
4 years ago
mode-mediawiki.js
4 years ago
mode-mel.js
4 years ago
mode-mips.js
4 years ago
mode-mixal.js
4 years ago
mode-mushcode.js
4 years ago
mode-mysql.js
4 years ago
mode-nginx.js
4 years ago
mode-nim.js
4 years ago
mode-nix.js
4 years ago
mode-nsis.js
4 years ago
mode-nunjucks.js
4 years ago
mode-objectivec.js
4 years ago
mode-ocaml.js
4 years ago
mode-partiql.js
4 years ago
mode-pascal.js
4 years ago
mode-perl.js
4 years ago
mode-pgsql.js
4 years ago
mode-php.js
4 years ago
mode-php_laravel_blade.js
4 years ago
mode-pig.js
4 years ago
mode-plain_text.js
4 years ago
mode-powershell.js
4 years ago
mode-praat.js
4 years ago
mode-prisma.js
4 years ago
mode-prolog.js
4 years ago
mode-properties.js
4 years ago
mode-protobuf.js
4 years ago
mode-puppet.js
4 years ago
mode-python.js
4 years ago
mode-qml.js
4 years ago
mode-r.js
4 years ago
mode-raku.js
4 years ago
mode-razor.js
4 years ago
mode-rdoc.js
4 years ago
mode-red.js
4 years ago
mode-redshift.js
4 years ago
mode-rhtml.js
4 years ago
mode-robot.js
4 years ago
mode-rst.js
4 years ago
mode-ruby.js
4 years ago
mode-rust.js
4 years ago
mode-sac.js
4 years ago
mode-sass.js
4 years ago
mode-scad.js
4 years ago
mode-scala.js
4 years ago
mode-scheme.js
4 years ago
mode-scrypt.js
4 years ago
mode-scss.js
4 years ago
mode-sh.js
4 years ago
mode-sjs.js
4 years ago
mode-slim.js
4 years ago
mode-smarty.js
4 years ago
mode-smithy.js
4 years ago
mode-snippets.js
4 years ago
mode-soy_template.js
4 years ago
mode-space.js
4 years ago
mode-sparql.js
4 years ago
mode-sql.js
4 years ago
mode-sqlserver.js
4 years ago
mode-stylus.js
4 years ago
mode-svg.js
4 years ago
mode-swift.js
4 years ago
mode-tcl.js
4 years ago
mode-terraform.js
4 years ago
mode-tex.js
4 years ago
mode-text.js
4 years ago
mode-textile.js
4 years ago
mode-toml.js
4 years ago
mode-tsx.js
4 years ago
mode-turtle.js
4 years ago
mode-twig.js
4 years ago
mode-typescript.js
4 years ago
mode-vala.js
4 years ago
mode-vbscript.js
4 years ago
mode-velocity.js
4 years ago
mode-verilog.js
4 years ago
mode-vhdl.js
4 years ago
mode-visualforce.js
4 years ago
mode-wollok.js
4 years ago
mode-xml.js
4 years ago
mode-xquery.js
4 years ago
mode-yaml.js
4 years ago
mode-zeek.js
4 years ago
theme-ambiance.js
4 years ago
theme-chaos.js
4 years ago
theme-chrome.js
4 years ago
theme-cloud9_day.js
4 years ago
theme-cloud9_night.js
4 years ago
theme-cloud9_night_low_color.js
4 years ago
theme-clouds.js
4 years ago
theme-clouds_midnight.js
4 years ago
theme-cobalt.js
4 years ago
theme-crimson_editor.js
4 years ago
theme-dawn.js
4 years ago
theme-dracula.js
4 years ago
theme-dreamweaver.js
4 years ago
theme-eclipse.js
4 years ago
theme-github.js
4 years ago
theme-gob.js
4 years ago
theme-gruvbox.js
4 years ago
theme-gruvbox_dark_hard.js
4 years ago
theme-gruvbox_light_hard.js
4 years ago
theme-idle_fingers.js
4 years ago
theme-iplastic.js
4 years ago
theme-katzenmilch.js
4 years ago
theme-kr_theme.js
4 years ago
theme-kuroir.js
4 years ago
theme-merbivore.js
4 years ago
theme-merbivore_soft.js
4 years ago
theme-mono_industrial.js
4 years ago
theme-monokai.js
4 years ago
theme-nord_dark.js
4 years ago
theme-one_dark.js
4 years ago
theme-pastel_on_dark.js
4 years ago
theme-solarized_dark.js
4 years ago
theme-solarized_light.js
4 years ago
theme-sqlserver.js
4 years ago
theme-terminal.js
4 years ago
theme-textmate.js
4 years ago
theme-tomorrow.js
4 years ago
theme-tomorrow_night.js
4 years ago
theme-tomorrow_night_blue.js
4 years ago
theme-tomorrow_night_bright.js
4 years ago
theme-tomorrow_night_eighties.js
4 years ago
theme-twilight.js
4 years ago
theme-vibrant_ink.js
4 years ago
theme-xcode.js
4 years ago
worker-base.js
4 years ago
worker-coffee.js
4 years ago
worker-css.js
4 years ago
worker-html.js
4 years ago
worker-javascript.js
4 years ago
worker-json.js
4 years ago
worker-lua.js
4 years ago
worker-php.js
4 years ago
worker-xml.js
4 years ago
worker-xquery.js
4 years ago
worker-yaml.js
4 years ago
mode-csound_score.js
8 lines
| 1 | ace.define("ace/mode/csound_preprocessor_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(e){this.embeddedRulePrefix=e===undefined?"":e,this.semicolonComments={token:"comment.line.semicolon.csound",regex:";.*$"},this.comments=[{token:"punctuation.definition.comment.begin.csound",regex:"/\\*",push:[{token:"punctuation.definition.comment.end.csound",regex:"\\*/",next:"pop"},{defaultToken:"comment.block.csound"}]},{token:"comment.line.double-slash.csound",regex:"//.*$"},this.semicolonComments],this.macroUses=[{token:["entity.name.function.preprocessor.csound","punctuation.definition.macro-parameter-value-list.begin.csound"],regex:/(\$[A-Z_a-z]\w*\.?)(\()/,next:"macro parameter value list"},{token:"entity.name.function.preprocessor.csound",regex:/\$[A-Z_a-z]\w*(?:\.|\b)/}],this.numbers=[{token:"constant.numeric.float.csound",regex:/(?:\d+[Ee][+-]?\d+)|(?:\d+\.\d*|\d*\.\d+)(?:[Ee][+-]?\d+)?/},{token:["storage.type.number.csound","constant.numeric.integer.hexadecimal.csound"],regex:/(0[Xx])([0-9A-Fa-f]+)/},{token:"constant.numeric.integer.decimal.csound",regex:/\d+/}],this.bracedStringContents=[{token:"constant.character.escape.csound",regex:/\\(?:[\\abnrt"]|[0-7]{1,3})/},{token:"constant.character.placeholder.csound",regex:/%[#0\- +]*\d*(?:\.\d+)?[diuoxXfFeEgGaAcs]/},{token:"constant.character.escape.csound",regex:/%%/}],this.quotedStringContents=[this.macroUses,this.bracedStringContents];var t=[this.comments,{token:"keyword.preprocessor.csound",regex:/#(?:e(?:nd(?:if)?|lse)\b|##)|@@?[ \t]*\d+/},{token:"keyword.preprocessor.csound",regex:/#include/,push:[this.comments,{token:"string.csound",regex:/([^ \t])(?:.*?\1)/,next:"pop"}]},{token:"keyword.preprocessor.csound",regex:/#includestr/,push:[this.comments,{token:"string.csound",regex:/([^ \t])(?:.*?\1)/,next:"pop"}]},{token:"keyword.preprocessor.csound",regex:/#[ \t]*define/,next:"define directive"},{token:"keyword.preprocessor.csound",regex:/#(?:ifn?def|undef)\b/,next:"macro directive"},this.macroUses];this.$rules={start:t,"define directive":[this.comments,{token:"entity.name.function.preprocessor.csound",regex:/[A-Z_a-z]\w*/},{token:"punctuation.definition.macro-parameter-name-list.begin.csound",regex:/\(/,next:"macro parameter name list"},{token:"punctuation.definition.macro.begin.csound",regex:/#/,next:"macro body"}],"macro parameter name list":[{token:"variable.parameter.preprocessor.csound",regex:/[A-Z_a-z]\w*/},{token:"punctuation.definition.macro-parameter-name-list.end.csound",regex:/\)/,next:"define directive"}],"macro body":[{token:"constant.character.escape.csound",regex:/\\#/},{token:"punctuation.definition.macro.end.csound",regex:/#/,next:"start"},t],"macro directive":[this.comments,{token:"entity.name.function.preprocessor.csound",regex:/[A-Z_a-z]\w*/,next:"start"}],"macro parameter value list":[{token:"punctuation.definition.macro-parameter-value-list.end.csound",regex:/\)/,next:"start"},{token:"punctuation.definition.string.begin.csound",regex:/"/,next:"macro parameter value quoted string"},this.pushRule({token:"punctuation.macro-parameter-value-parenthetical.begin.csound",regex:/\(/,next:"macro parameter value parenthetical"}),{token:"punctuation.macro-parameter-value-separator.csound",regex:"[#']"}],"macro parameter value quoted string":[{token:"constant.character.escape.csound",regex:/\\[#'()]/},{token:"invalid.illegal.csound",regex:/[#'()]/},{token:"punctuation.definition.string.end.csound",regex:/"/,next:"macro parameter value list"},this.quotedStringContents,{defaultToken:"string.quoted.csound"}],"macro parameter value parenthetical":[{token:"constant.character.escape.csound",regex:/\\\)/},this.popRule({token:"punctuation.macro-parameter-value-parenthetical.end.csound",regex:/\)/}),this.pushRule({token:"punctuation.macro-parameter-value-parenthetical.begin.csound",regex:/\(/,next:"macro parameter value parenthetical"}),t]}};r.inherits(s,i),function(){this.pushRule=function(e){if(Array.isArray(e.next))for(var t=0;t<e.next.length;t++)e.next[t]=this.embeddedRulePrefix+e.next[t];return{regex:e.regex,onMatch:function(t,n,r,i){r.length===0&&r.push(n);if(Array.isArray(e.next))for(var s=0;s<e.next.length;s++)r.push(e.next[s]);else r.push(e.next);return this.next=r[r.length-1],e.token},get next(){return Array.isArray(e.next)?e.next[e.next.length-1]:e.next},set next(t){Array.isArray(e.next)||(e.next=t)},get token(){return e.token}}},this.popRule=function(e){return e.next&&(e.next=this.embeddedRulePrefix+e.next),{regex:e.regex,onMatch:function(t,n,r,i){return r.pop(),e.next?(r.push(e.next),this.next=r[r.length-1]):this.next=r.length>1?r[r.length-1]:r.pop(),e.token}}}}.call(s.prototype),t.CsoundPreprocessorHighlightRules=s}),ace.define("ace/mode/csound_score_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/csound_preprocessor_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./csound_preprocessor_highlight_rules").CsoundPreprocessorHighlightRules,s=function(e){i.call(this,e),this.quotedStringContents.push({token:"invalid.illegal.csound-score",regex:/[^"]*$/});var t=this.$rules.start;t.push({token:"keyword.control.csound-score",regex:/[aBbCdefiqstvxy]/},{token:"invalid.illegal.csound-score",regex:/w/},{token:"constant.numeric.language.csound-score",regex:/z/},{token:["keyword.control.csound-score","constant.numeric.integer.decimal.csound-score"],regex:/([nNpP][pP])(\d+)/},{token:"keyword.other.csound-score",regex:/[mn]/,push:[{token:"empty",regex:/$/,next:"pop"},this.comments,{token:"entity.name.label.csound-score",regex:/[A-Z_a-z]\w*/}]},{token:"keyword.preprocessor.csound-score",regex:/r\b/,next:"repeat section"},this.numbers,{token:"keyword.operator.csound-score",regex:"[!+\\-*/^%&|<>#~.]"},this.pushRule({token:"punctuation.definition.string.begin.csound-score",regex:/"/,next:"quoted string"}),this.pushRule({token:"punctuation.braced-loop.begin.csound-score",regex:/{/,next:"loop after left brace"})),this.addRules({"repeat section":[{token:"empty",regex:/$/,next:"start"},this.comments,{token:"constant.numeric.integer.decimal.csound-score",regex:/\d+/,next:"repeat section before label"}],"repeat section before label":[{token:"empty",regex:/$/,next:"start"},this.comments,{token:"entity.name.label.csound-score",regex:/[A-Z_a-z]\w*/,next:"start"}],"quoted string":[this.popRule({token:"punctuation.definition.string.end.csound-score",regex:/"/}),this.quotedStringContents,{defaultToken:"string.quoted.csound-score"}],"loop after left brace":[this.popRule({token:"constant.numeric.integer.decimal.csound-score",regex:/\d+/,next:"loop after repeat count"}),this.comments,{token:"invalid.illegal.csound",regex:/\S.*/}],"loop after repeat count":[this.popRule({token:"entity.name.function.preprocessor.csound-score",regex:/[A-Z_a-z]\w*\b/,next:"loop after macro name"}),this.comments,{token:"invalid.illegal.csound",regex:/\S.*/}],"loop after macro name":[t,this.popRule({token:"punctuation.braced-loop.end.csound-score",regex:/}/})]}),this.normalizeRules()};r.inherits(s,i),t.CsoundScoreHighlightRules=s}),ace.define("ace/mode/csound_score",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/csound_score_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./csound_score_highlight_rules").CsoundScoreHighlightRules,o=function(){this.HighlightRules=s};r.inherits(o,i),function(){this.lineCommentStart=";",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/csound_score"}.call(o.prototype),t.Mode=o}); (function() { |
| 2 | ace.require(["ace/mode/csound_score"], function(m) { |
| 3 | if (typeof module == "object" && typeof exports == "object" && module) { |
| 4 | module.exports = m; |
| 5 | } |
| 6 | }); |
| 7 | })(); |
| 8 |