App-Mxpress-PDF

 view release on metacpan or  search on metacpan

public/javascripts/ace.js  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
(function(){function o(n){var i=e;n&&(e[n]||(e[n]={}),i=e[n]);if(!i.define||!i.define.packaged)t.original=i.define,i.define=t,i.define.packaged=!0;if(!i.require||!i.require.packaged)r.original=i.require,i.require=r,i.require.packaged=!0}var ACE_NAMES...
                window.require(["ace/ace"], function(a) {
                    if (a) {
                        a.config.init(true);
                        a.define = window.define;
                    }
                    if (!window.ace)
                        window.ace = a;
                    for (var key in a) if (a.hasOwnProperty(key))
                        window.ace[key] = a[key];
                    window.ace["default"] = window.ace;

public/javascripts/ace/ace.js  view on Meta::CPAN

12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
    return e.returnValue === false ? false : true;
};
 
this.toggleRecording = function(editor) {
    if (this.$inReplay)
        return;
 
    editor && editor._emit("changeStatus");
    if (this.recording) {
        this.macro.pop();
        this.removeEventListener("exec", this.$addCommandToMacro);
 
        if (!this.macro.length)
            this.macro = this.oldMacro;
 
        return this.recording = false;
    }
    if (!this.$addCommandToMacro) {
        this.$addCommandToMacro = function(e) {
            this.macro.push([e.command, e.args]);
        }.bind(this);
    }
 
    this.oldMacro = this.macro;
    this.macro = [];
    this.on("exec", this.$addCommandToMacro);
    return this.recording = true;
};
 
this.replay = function(editor) {
    if (this.$inReplay || !this.macro)
        return;
 
    if (this.recording)
        return this.toggleRecording(editor);

public/javascripts/ace/ace.js  view on Meta::CPAN

12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
                if (typeof x == "string")
                    this.exec(x, editor);
                else
                    this.exec(x[0], editor, x[1]);
            }, this);
        } finally {
            this.$inReplay = false;
        }
    };
 
    this.trimMacro = function(m) {
        return m.map(function(x){
            if (typeof x[0] != "string")
                x[0] = x[0].name;
            if (!x[1])
                x = x[0];
            return x;
        });
    };
 
}).call(CommandManager.prototype);

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
{ keys: 'v', type: 'action', action: 'toggleVisualMode' },
{ keys: 'V', type: 'action', action: 'toggleVisualMode', actionArgs: { linewise: true }},
{ keys: '<C-v>', type: 'action', action: 'toggleVisualMode', actionArgs: { blockwise: true }},
{ keys: '<C-q>', type: 'action', action: 'toggleVisualMode', actionArgs: { blockwise: true }},
{ keys: 'gv', type: 'action', action: 'reselectLastSelection' },
{ keys: 'J', type: 'action', action: 'joinLines', isEdit: true },
{ keys: 'gJ', type: 'action', action: 'joinLines', actionArgs: { keepSpaces: true }, isEdit: true },
{ keys: 'p', type: 'action', action: 'paste', isEdit: true, actionArgs: { after: true, isEdit: true }},
{ keys: 'P', type: 'action', action: 'paste', isEdit: true, actionArgs: { after: false, isEdit: true }},
{ keys: 'r<character>', type: 'action', action: 'replace', isEdit: true },
{ keys: '@<character>', type: 'action', action: 'replayMacro' },
{ keys: 'q<character>', type: 'action', action: 'enterMacroRecordMode' },
{ keys: 'R', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { replace: true }, context: 'normal'},
{ keys: 'R', type: 'operator', operator: 'change', operatorArgs: { linewise: true, fullLine: true }, context: 'visual', exitVisualBlock: true},
{ keys: 'u', type: 'action', action: 'undo', context: 'normal' },
{ keys: 'u', type: 'operator', operator: 'changeCase', operatorArgs: {toLower: true}, context: 'visual', isEdit: true },
{ keys: 'U', type: 'operator', operator: 'changeCase', operatorArgs: {toLower: false}, context: 'visual', isEdit: true },
{ keys: '<C-r>', type: 'action', action: 'redo' },
{ keys: 'm<character>', type: 'action', action: 'setMark' },
{ keys: '"<character>', type: 'action', action: 'setRegister' },
{ keys: 'zz', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'center' }},
{ keys: 'z.', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'center' }, motion: 'moveToFirstNonWhiteSpaceCharacter' },

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
      changes: c.changes,
      expectCursorActivityForChange: c.expectCursorActivityForChange
    };
  }
  return {
    changes: [],
    expectCursorActivityForChange: false
  };
};
 
function MacroModeState() {
  this.latestRegister = undefined;
  this.isPlaying = false;
  this.isRecording = false;
  this.replaySearchQueries = [];
  this.onRecordingDone = undefined;
  this.lastInsertModeChanges = createInsertModeChanges();
}
MacroModeState.prototype = {
  exitMacroRecordMode: function() {
    var macroModeState = vimGlobalState.macroModeState;
    if (macroModeState.onRecordingDone) {
      macroModeState.onRecordingDone(); // close dialog
    }
    macroModeState.onRecordingDone = undefined;
    macroModeState.isRecording = false;
  },
  enterMacroRecordMode: function(cm, registerName) {
    var register =
        vimGlobalState.registerController.getRegister(registerName);
    if (register) {
      register.clear();
      this.latestRegister = registerName;
      if (cm.openDialog) {
        this.onRecordingDone = cm.openDialog(
            '(recording)['+registerName+']', null, {bottom:true});
      }
      this.isRecording = true;

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
  }
  return cm.state.vim;
}
var vimGlobalState;
function resetVimGlobalState() {
  vimGlobalState = {
    searchQuery: null,
    searchIsReversed: false,
    lastSubstituteReplacePart: undefined,
    jumpList: createCircularJumpList(),
    macroModeState: new MacroModeState,
    lastCharacterSearch: {increment:0, forward:true, selectedCharacter:''},
    registerController: new RegisterController({}),
    searchHistoryController: new HistoryController(),
    exCommandHistoryController : new HistoryController()
  };
  for (var optionName in options) {
    var option = options[optionName];
    option.value = option.defaultValue;
  }
}

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
  exCommandDispatcher.commandMap_[prefix]={name:name, shortName:prefix, type:'api'};
},
handleKey: function (cm, key, origin) {
  var command = this.findKey(cm, key, origin);
  if (typeof command === 'function') {
    return command();
  }
},
findKey: function(cm, key, origin) {
  var vim = maybeInitVimState(cm);
  function handleMacroRecording() {
    var macroModeState = vimGlobalState.macroModeState;
    if (macroModeState.isRecording) {
      if (key == 'q') {
        macroModeState.exitMacroRecordMode();
        clearInputState(cm);
        return true;
      }
      if (origin != 'mapping') {
        logKey(macroModeState, key);
      }
    }
  }
  function handleEsc() {
    if (key == '<Esc>') {

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
      var here = selections[i].head;
      cm.replaceRange('', offsetCursor(here, 0, -(keys.length - 1)), here, '+input');
    }
    vimGlobalState.macroModeState.lastInsertModeChanges.changes.pop();
  }
  clearInputState(cm);
  return match.command;
}
 
function handleKeyNonInsertMode() {
  if (handleMacroRecording() || handleEsc()) { return true; }
 
  var keys = vim.inputState.keyBuffer = vim.inputState.keyBuffer + key;
  if (/^[1-9]\d*$/.test(keys)) { return true; }
 
  var keysMatcher = /^(\d*)(.*)$/.exec(keys);
  if (!keysMatcher) { clearInputState(cm); return false; }
  var context = vim.visualMode ? 'visual' :
                                 'normal';
  var match = commandDispatcher.matchCommand(keysMatcher[2] || keysMatcher[1], defaultKeymap, vim.inputState, context);
  if (match.type == 'none') { clearInputState(cm); return false; }

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
  var y = charCoords.top;
  var lineHeight = charCoords.bottom - y;
  switch (actionArgs.position) {
    case 'center': y = y - (height / 2) + lineHeight;
      break;
    case 'bottom': y = y - height + lineHeight;
      break;
  }
  cm.scrollTo(null, y);
},
replayMacro: function(cm, actionArgs, vim) {
  var registerName = actionArgs.selectedCharacter;
  var repeat = actionArgs.repeat;
  var macroModeState = vimGlobalState.macroModeState;
  if (registerName == '@') {
    registerName = macroModeState.latestRegister;
  } else {
    macroModeState.latestRegister = registerName;
  }
  while(repeat--){
    executeMacroRegister(cm, vim, macroModeState, registerName);
  }
},
enterMacroRecordMode: function(cm, actionArgs) {
  var macroModeState = vimGlobalState.macroModeState;
  var registerName = actionArgs.selectedCharacter;
  if (vimGlobalState.registerController.isValidRegister(registerName)) {
    macroModeState.enterMacroRecordMode(cm, registerName);
  }
},
toggleOverwrite: function(cm) {
  if (!cm.state.overwrite) {
    cm.toggleOverwrite(true);
    cm.setOption('keyMap', 'vim-replace');
    CodeMirror.signal(cm, "vim-mode-change", {mode: "replace"});
  } else {
    cm.toggleOverwrite(false);
    cm.setOption('keyMap', 'vim-insert');

public/javascripts/ace/keybinding-vim.js  view on Meta::CPAN

5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
};
 
CodeMirror.keyMap['vim-replace'] = {
  'Backspace': 'goCharLeft',
  fallthrough: ['vim-insert'],
  attach: attachVimMap,
  detach: detachVimMap,
  call: cmKey
};
 
function executeMacroRegister(cm, vim, macroModeState, registerName) {
  var register = vimGlobalState.registerController.getRegister(registerName);
  if (registerName == ':') {
    if (register.keyBuffer[0]) {
      exCommandDispatcher.processCommand(cm, register.keyBuffer[0]);
    }
    macroModeState.isPlaying = false;
    return;
  }
  var keyBuffer = register.keyBuffer;
  var imc = 0;

public/javascripts/ace/mode-autohotkey.js  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define("ace/mode/autohotkey_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 AutoHotKeyHighlightRules = function() {
    var autoItKeywords = 'And|ByRef|Case|Const|ContinueCase|ContinueLoop|Default|Dim|Do|Else|ElseIf|EndFunc|EndIf|EndSelect|EndSwitch|EndWith|Enum|Exit|ExitLoop|False|For|Func|Global|If|In|Local|Next|Not|Or|ReDim|Return|Select|Step|Switch|Then|To|Tru...
        'Abs|ACos|AdlibDisable|AdlibEnable|Asc|AscW|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|Binary|BinaryLen|BinaryMid|BinaryToString|BitAND|BitNOT|BitOR|BitRotate|BitShift|BitXOR|BlockInput|Break|Call|CDTray|Ceiling...
        'ArrayAdd|ArrayBinarySearch|ArrayConcatenate|ArrayDelete|ArrayDisplay|ArrayFindAll|ArrayInsert|ArrayMax|ArrayMaxIndex|ArrayMin|ArrayMinIndex|ArrayPop|ArrayPush|ArrayReverse|ArraySearch|ArraySort|ArraySwap|ArrayToClip|ArrayToString|ArrayTrim|C...
        'ce|comments-end|comments-start|cs|include|include-once|NoTrayIcon|RequireAdmin|' +
        'AutoIt3Wrapper_Au3Check_Parameters|AutoIt3Wrapper_Au3Check_Stop_OnWarning|AutoIt3Wrapper_Change2CUI|AutoIt3Wrapper_Compression|AutoIt3Wrapper_cvsWrapper_Parameters|AutoIt3Wrapper_Icon|AutoIt3Wrapper_Outfile|AutoIt3Wrapper_Outfile_Type|AutoIt...
    var atKeywords = 'AppDataCommonDir|AppDataDir|AutoItExe|AutoItPID|AutoItUnicode|AutoItVersion|AutoItX64|COM_EventObj|CommonFilesDir|Compiled|ComputerName|ComSpec|CR|CRLF|DesktopCommonDir|DesktopDepth|DesktopDir|DesktopHeight|DesktopRefresh|Deskto...
     
    this.$rules = { start:
       [ { token: 'comment.line.ahk', regex: '(?:^| );.*$' },
         { token: 'comment.block.ahk',
           regex: '/\\*', push:
            [ { token: 'comment.block.ahk', regex: '\\*/', next: 'pop' },
              { defaultToken: 'comment.block.ahk' } ] },

public/javascripts/ace/mode-perl6.js  view on Meta::CPAN

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var types = (
    "Any|Array|Associative|AST|atomicint|Attribute|Backtrace|Backtrace::Frame|" +
    "Bag|Baggy|BagHash|Blob|Block|Bool|Buf|Callable|CallFrame|Cancellation|" +
    "Capture|Channel|Code|compiler|Complex|ComplexStr|Cool|CurrentThreadScheduler|" +
    "Cursor|Date|Dateish|DateTime|Distro|Duration|Encoding|Exception|Failure|"+
    "FatRat|Grammar|Hash|HyperWhatever|Instant|Int|IntStr|IO|IO::ArgFiles|"+
    "IO::CatHandle|IO::Handle|IO::Notification|IO::Path|IO::Path::Cygwin|"+
    "IO::Path::QNX|IO::Path::Unix|IO::Path::Win32|IO::Pipe|IO::Socket|"+
    "IO::Socket::Async|IO::Socket::INET|IO::Spec|IO::Spec::Cygwin|IO::Spec::QNX|"+
    "IO::Spec::Unix|IO::Spec::Win32|IO::Special|Iterable|Iterator|Junction|Kernel|"+
    "Label|List|Lock|Lock::Async|Macro|Map|Match|Metamodel::AttributeContainer|"+
    "Metamodel::C3MRO|Metamodel::ClassHOW|Metamodel::EnumHOW|Metamodel::Finalization|"+
    "Metamodel::MethodContainer|Metamodel::MROBasedMethodDispatch|Metamodel::MultipleInheritance|"+
    "Metamodel::Naming|Metamodel::Primitives|Metamodel::PrivateMethodContainer|"+
    "Metamodel::RoleContainer|Metamodel::Trusting|Method|Mix|MixHash|Mixy|Mu|"+
    "NFC|NFD|NFKC|NFKD|Nil|Num|Numeric|NumStr|ObjAt|Order|Pair|Parameter|Perl|"+
    "Pod::Block|Pod::Block::Code|Pod::Block::Comment|Pod::Block::Declarator|"+
    "Pod::Block::Named|Pod::Block::Para|Pod::Block::Table|Pod::Heading|Pod::Item|"+
    "Positional|PositionalBindFailover|Proc|Proc::Async|Promise|Proxy|PseudoStash|"+
    "QuantHash|Range|Rat|Rational|RatStr|Real|Regex|Routine|Scalar|Scheduler|"+
    "Semaphore|Seq|Set|SetHash|Setty|Signature|Slip|Stash|Str|StrDistance|Stringy|"+



( run in 0.580 second using v1.01-cache-2.11-cpan-55f5a4728d2 )