App-Mxpress-PDF
view release on metacpan or search on metacpan
public/javascripts/ace/mode-mel.js view on Meta::CPAN
define("ace/mode/mel_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 MELHighlightRules = function() {
this.$rules = { start:
[ { caseInsensitive: true,
token: 'storage.type.mel',
regex: '\\b(matrix|string|vector|float|int|void)\\b' },
{ caseInsensitive: true,
token: 'support.function.mel',
regex: '\\b((s(h(ow(ManipCtx|S(hadingGroupAttrEditor|electionInTitle)|H(idden|elp)|Window)|el(f(Button|TabLayout|Layout)|lField)|ading(GeometryRelCtx|Node|Connection|LightRelCtx))|y(s(tem|File)|mbol(Button|CheckBox))|nap(shot|Mode|2to2 |To...
{ caseInsensitive: true,
token: 'support.constant.mel',
regex: '\\b(s(h(ellTessellate|a(d(ing(Map|Engine)|erGlow)|pe))|n(ow|apshot(Shape)?)|c(ulpt|aleConstraint|ript)|t(yleCurve|itch(Srf|AsNurbsShell)|u(cco|dioClearCoat)|encil|roke(Globals)?)|i(ngleShadingSwitch|mpleVolumeShader)|o(ftMod(Manip|...
{ caseInsensitive: true,
token: 'keyword.control.mel',
regex: '\\b(if|in|else|for|while|break|continue|case|default|do|switch|return|switch|case|source|catch|alias)\\b' },
{ token: 'keyword.other.mel', regex: '\\b(global)\\b' },
{ caseInsensitive: true,
token: 'constant.language.mel',
regex: '\\b(null|undefined)\\b' },
{ token: 'constant.numeric.mel',
regex: '\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b' },
{ token: 'punctuation.definition.string.begin.mel',
regex: '"',
push:
[ { token: 'constant.character.escape.mel', regex: '\\\\.' },
{ token: 'punctuation.definition.string.end.mel',
regex: '"',
next: 'pop' },
{ defaultToken: 'string.quoted.double.mel' } ] },
{ token: [ 'variable.other.mel', 'punctuation.definition.variable.mel' ],
regex: '(\\$)([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*?\\b)' },
{ token: 'punctuation.definition.string.begin.mel',
regex: '\'',
push:
[ { token: 'constant.character.escape.mel', regex: '\\\\.' },
{ token: 'punctuation.definition.string.end.mel',
regex: '\'',
next: 'pop' },
{ defaultToken: 'string.quoted.single.mel' } ] },
{ token: 'constant.language.mel',
regex: '\\b(false|true|yes|no|on|off)\\b' },
{ token: 'punctuation.definition.comment.mel',
regex: '/\\*',
push:
[ { token: 'punctuation.definition.comment.mel',
regex: '\\*/',
next: 'pop' },
{ defaultToken: 'comment.block.mel' } ] },
{ token: [ 'comment.line.double-slash.mel', 'punctuation.definition.comment.mel' ],
regex: '(//)(.*$\\n?)' },
{ caseInsensitive: true,
token: 'keyword.operator.mel',
regex: '\\b(instanceof)\\b' },
{ token: 'keyword.operator.symbolic.mel',
regex: '[-\\!\\%\\&\\*\\+\\=\\/\\?\\:]' },
{ token: [ 'meta.preprocessor.mel', 'punctuation.definition.preprocessor.mel' ],
regex: '(^[ \\t]*)((?:#)[a-zA-Z]+)' },
{ token: [ 'meta.function.mel', 'keyword.other.mel', 'storage.type.mel', 'entity.name.function.mel', 'punctuation.section.function.mel' ],
regex: '(global\\s*)?(proc\\s*)(\\w+\\s*\\[?\\]?\\s+|\\s+)([A-Za-z_][A-Za-z0-9_\\.]*)(\\s*\\()',
push:
[ { include: '$self' },
( run in 0.419 second using v1.01-cache-2.11-cpan-39bf76dae61 )