mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-12-14 07:09:06 +00:00
Initial commit
This commit is contained in:
19384
mar/ace/ace.js
Executable file
19384
mar/ace/ace.js
Executable file
File diff suppressed because it is too large
Load Diff
118
mar/ace/mode-mar.js
Executable file
118
mar/ace/mode-mar.js
Executable file
@@ -0,0 +1,118 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Distributed under the BSD license:
|
||||
*
|
||||
* Copyright (c) 2012, Ajax.org B.V.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of Ajax.org B.V. nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* This file was autogenerated from Assembly x86.tmLanguage (uuid: ) */
|
||||
/****************************************************************************************
|
||||
* IT MIGHT NOT BE PERFECT ...But it's a good start from an existing *.tmlanguage file. *
|
||||
* fileTypes *
|
||||
****************************************************************************************/
|
||||
define("ace/mode/mar_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 MarHighlightRules = function () {
|
||||
// regexp must not have capturing parentheses. Use (?:) instead.
|
||||
// regexps are ordered -> the first match is used
|
||||
|
||||
this.$rules = {
|
||||
start:
|
||||
[{
|
||||
token: 'keyword.function.assembly',
|
||||
regex: '\\b(?:mov|add|sub|and|or|test|cmp|shl|shr|mul|push|pop|div|xor|dw|nop|equ|neg|hwq|not|ror|rol|sal|sar)\\b',
|
||||
caseInsensitive: true
|
||||
},
|
||||
{
|
||||
token: 'keyword.operator.assembly',
|
||||
regex: '\\b(?:call|ret|jmp|jnz|jg|jl|jge|jle|hwi|jz|js|jns|jc|jnc)\\b',
|
||||
caseInsensitive: true
|
||||
},
|
||||
{
|
||||
token: 'variable.predefined.ahk',
|
||||
regex: '\\b(?:brk|dup)\\b',
|
||||
caseInsensitive: true
|
||||
},
|
||||
{
|
||||
token: 'variable.parameter.register.assembly',
|
||||
regex: '\\b(?:A|B|C|D|X|Y|bp|sp)\\b',
|
||||
caseInsensitive: true
|
||||
},
|
||||
{
|
||||
token: 'constant.character.decimal.assembly',
|
||||
regex: '\\b[0-9]+\\b'
|
||||
},
|
||||
{
|
||||
token: 'constant.character.hexadecimal.assembly',
|
||||
regex: '\\b0x[A-F0-9]+\\b',
|
||||
caseInsensitive: true
|
||||
},
|
||||
{token: 'string.assembly', regex: /'([^\\']|\\.)*'/},
|
||||
{token: 'string.assembly', regex: /"([^\\"]|\\.)*"/},
|
||||
{token: 'comment.assembly', regex: ';.*$'},
|
||||
{token: 'support.function.directive.assembly', regex: /^\.text|\.data/},
|
||||
{token: 'entity.name.function.assembly', regex: /\w*:/}]
|
||||
}
|
||||
|
||||
this.normalizeRules();
|
||||
};
|
||||
|
||||
MarHighlightRules.metaData = {
|
||||
fileTypes: ['asm'],
|
||||
name: 'Much Assembly Required',
|
||||
scopeName: 'source.assembly'
|
||||
};
|
||||
|
||||
|
||||
oop.inherits(MarHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.MarHighlightRules = MarHighlightRules;
|
||||
});
|
||||
|
||||
define("ace/mode/mar", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text", "ace/mode/mar_rules"], function (require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var MarHighlightRules = require("./mar_rules").MarHighlightRules;
|
||||
|
||||
var Mode = function () {
|
||||
this.HighlightRules = MarHighlightRules;
|
||||
this.$behaviour = this.$defaultBehaviour;
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function () {
|
||||
this.lineCommentStart = ";";
|
||||
this.$id = "ace/mode/mar";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
});
|
||||
4
mar/ace/mode-mar.min.js
vendored
Normal file
4
mar/ace/mode-mar.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
define("ace/mode/mar_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(a,d,b){b=a("../lib/oop");a=a("./text_highlight_rules").TextHighlightRules;var c=function(){this.$rules={start:[{token:"keyword.function.assembly",regex:"\\b(?:mov|add|sub|and|or|test|cmp|shl|shr|mul|push|pop|div|xor|dw|nop|equ|neg|hwq|not|ror|rol|sal|sar)\\b",caseInsensitive:!0},{token:"keyword.operator.assembly",regex:"\\b(?:call|ret|jmp|jnz|jg|jl|jge|jle|hwi|jz|js|jns|jc|jnc)\\b",caseInsensitive:!0},
|
||||
{token:"variable.predefined.ahk",regex:"\\b(?:brk|dup)\\b",caseInsensitive:!0},{token:"variable.parameter.register.assembly",regex:"\\b(?:A|B|C|D|X|Y|bp|sp)\\b",caseInsensitive:!0},{token:"constant.character.decimal.assembly",regex:"\\b[0-9]+\\b"},{token:"constant.character.hexadecimal.assembly",regex:"\\b0x[A-F0-9]+\\b",caseInsensitive:!0},{token:"string.assembly",regex:/'([^\\']|\\.)*'/},{token:"string.assembly",regex:/"([^\\"]|\\.)*"/},{token:"comment.assembly",regex:";.*$"},{token:"support.function.directive.assembly",
|
||||
regex:/^\.text|\.data/},{token:"entity.name.function.assembly",regex:/\w*:/}]};this.normalizeRules()};c.metaData={fileTypes:["asm"],name:"Much Assembly Required",scopeName:"source.assembly"};b.inherits(c,a);d.MarHighlightRules=c});
|
||||
define("ace/mode/mar","require exports module ace/lib/oop ace/mode/text ace/mode/mar_rules".split(" "),function(a,d,b){b=a("../lib/oop");var c=a("./text").Mode,e=a("./mar_rules").MarHighlightRules;a=function(){this.HighlightRules=e;this.$behaviour=this.$defaultBehaviour};b.inherits(a,c);a.prototype.lineCommentStart=";";a.prototype.$id="ace/mode/mar";d.Mode=a});
|
||||
108
mar/ace/theme-tomorrow.js
Executable file
108
mar/ace/theme-tomorrow.js
Executable file
@@ -0,0 +1,108 @@
|
||||
define("ace/theme/tomorrow", ["require", "exports", "module", "ace/lib/dom"], function (require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-tomorrow";
|
||||
exports.cssText = ".ace-tomorrow .ace_gutter {\
|
||||
background: #f6f6f6;\
|
||||
color: #4D4D4C\
|
||||
}\
|
||||
.ace-tomorrow .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #f6f6f6\
|
||||
}\
|
||||
.ace-tomorrow {\
|
||||
background-color: #FFFFFF;\
|
||||
color: #4D4D4C\
|
||||
}\
|
||||
.ace-tomorrow .ace_cursor {\
|
||||
color: #AEAFAD\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_selection {\
|
||||
background: #D6D6D6\
|
||||
}\
|
||||
.ace-tomorrow.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #FFFFFF;\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_step {\
|
||||
background: rgb(255, 255, 0)\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #D1D1D1\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_active-line {\
|
||||
background: #EFEFEF\
|
||||
}\
|
||||
.ace-tomorrow .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #D6D6D6\
|
||||
}\
|
||||
.ace-tomorrow .ace_invisible {\
|
||||
color: #D1D1D1\
|
||||
}\
|
||||
.ace-tomorrow .ace_keyword,\
|
||||
.ace-tomorrow .ace_meta,\
|
||||
.ace-tomorrow .ace_storage,\
|
||||
.ace-tomorrow .ace_storage.ace_type,\
|
||||
.ace-tomorrow .ace_support.ace_type {\
|
||||
color: #8959A8\
|
||||
}\
|
||||
.ace-tomorrow .ace_keyword.ace_operator {\
|
||||
color: #3E999F\
|
||||
}\
|
||||
.ace-tomorrow .ace_constant.ace_character,\
|
||||
.ace-tomorrow .ace_constant.ace_language,\
|
||||
.ace-tomorrow .ace_constant.ace_numeric,\
|
||||
.ace-tomorrow .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-tomorrow .ace_support.ace_constant,\
|
||||
.ace-tomorrow .ace_variable.ace_parameter {\
|
||||
color: #F5871F\
|
||||
}\
|
||||
.ace-tomorrow .ace_constant.ace_other {\
|
||||
color: #666969\
|
||||
}\
|
||||
.ace-tomorrow .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #C82829\
|
||||
}\
|
||||
.ace-tomorrow .ace_invalid.ace_deprecated {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #8959A8\
|
||||
}\
|
||||
.ace-tomorrow .ace_fold {\
|
||||
background-color: #4271AE;\
|
||||
border-color: #4D4D4C\
|
||||
}\
|
||||
.ace-tomorrow .ace_entity.ace_name.ace_function,\
|
||||
.ace-tomorrow .ace_support.ace_function,\
|
||||
.ace-tomorrow .ace_variable {\
|
||||
color: #4271AE\
|
||||
}\
|
||||
.ace-tomorrow .ace_support.ace_class,\
|
||||
.ace-tomorrow .ace_support.ace_type {\
|
||||
color: #C99E00\
|
||||
}\
|
||||
.ace-tomorrow .ace_heading,\
|
||||
.ace-tomorrow .ace_markup.ace_heading,\
|
||||
.ace-tomorrow .ace_string {\
|
||||
color: #718C00\
|
||||
}\
|
||||
.ace-tomorrow .ace_entity.ace_name.ace_tag,\
|
||||
.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-tomorrow .ace_meta.ace_tag,\
|
||||
.ace-tomorrow .ace_string.ace_regexp,\
|
||||
.ace-tomorrow .ace_variable {\
|
||||
color: #C82829\
|
||||
}\
|
||||
.ace-tomorrow .ace_comment {\
|
||||
color: #8E908C\
|
||||
}\
|
||||
.ace-tomorrow .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
Reference in New Issue
Block a user