App-Mxpress-PDF
view release on metacpan or search on metacpan
public/javascripts/ace/mode-mediawiki.js view on Meta::CPAN
define("ace/mode/mediawiki_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 MediaWikiHighlightRules = function() {
this.$rules = {
start: [{
include: "#switch"
}, {
include: "#redirect"
}, {
include: "#variable"
}, {
include: "#comment"
}, {
include: "#entity"
}, {
include: "#emphasis"
}, {
include: "#tag"
}, {
include: "#table"
}, {
include: "#hr"
}, {
include: "#heading"
}, {
include: "#link"
}, {
include: "#list"
}, {
include: "#template"
}],
"#hr": [{
token: "markup.bold",
regex: /^[-]{4,}/
}],
"#switch": [{
token: "constant.language",
regex: /(__NOTOC__|__FORCETOC__|__TOC__|__NOEDITSECTION__|__NEWSECTIONLINK__|__NONEWSECTIONLINK__|__NOWYSIWYG__|__NOGALLERY__|__HIDDENCAT__|__EXPECTUNUSEDCATEGORY__|__NOCONTENTCONVERT__|__NOCC__|__NOTITLECONVERT__|__NOTC__|__START__|__END...
}],
"#redirect": [{
token: [
"keyword.control.redirect",
"meta.keyword.control"
],
regex: /(^#REDIRECT|^#redirect|^#Redirect)(\s+)/
}],
"#variable": [{
token: "storage.type.variable",
regex: /{{{/,
push: [{
token: "storage.type.variable",
regex: /}}}/,
next: "pop"
}, {
token: [
"text",
"variable.other",
"text",
"keyword.operator"
],
regex: /(\s*)(\w+)(\s*)((?:\|)?)/
}, {
defaultToken: "storage.type.variable"
}]
}],
"#entity": [{
token: "constant.character.entity",
regex: /&\w+;/
}],
"#list": [{
token: "markup.bold",
regex: /^[#*;:]+/,
push: [{
token: "markup.list",
regex: /$/,
next: "pop"
}, {
include: "$self"
}, {
defaultToken: "markup.list"
}]
}],
"#template": [{
token: [
"storage.type.function",
"meta.template",
"entity.name.function",
"meta.template"
],
regex: /({{)(\s*)([#\w: ]+)(\s*)/,
push: [{
token: "storage.type.function",
regex: /}}/,
next: "pop"
}, {
token: [
"storage",
"meta.structure.dictionary",
( run in 1.983 second using v1.01-cache-2.11-cpan-39bf76dae61 )