BVB Source Codes

LiveScript Show lang-ls.js Source code

Return Download LiveScript: download lang-ls.js Source code - Download LiveScript Source code - Type:.js
  1. // Generated by LiveScript 1.5.0
  2. var tint, ident, kwend, interps, regexes;
  3. tint = function(ext, shortcuts, fallthroughs){
  4.   var i$, len$, rule;
  5.   for (i$ = 0, len$ = shortcuts.length; i$ < len$; ++i$) {
  6.     rule = shortcuts[i$];
  7.     if (rule.length < 4) {
  8.       rule.splice(2, 0, 0);
  9.     }
  10.   }
  11.   return PR.registerLangHandler(PR.createSimpleLexer(shortcuts, fallthroughs), [ext]);
  12. };
  13. ident = '(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*';
  14. kwend = '(?!(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])';
  15. tint('ls', [['str', /^'(?:''[\S\s]*?''|[^\\']*(?:\\[\S\s][^\\']*)*)'/, '\''], ['lang-ls-qq', /(^"(?:""[\S\s]*?""|[^\\"]*(?:\\[\S\s][^\\"]*)*)")/, '"'], ['lang-ls-qr', /(^\/\/[\S\s]*?\/\/[gimy$?]{0,4})/, '/'], ['lang-ls-at', RegExp('(^@@?' + ident + '?)'), '@'], ['com', /^#.*/, '#'], ['typ', /^(?:0x[\da-f][\da-f_]*|(?:[2-9]|[12]\d|3[0-6])r[\da-z][\da-z_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:e[+-]?\d[\d_]*)?[\w$]*)/i, '0123456789'], ['lang-js', /^`([^\\`]*(?:\\[\S\s][^\\`]*)*)`/, '`']], [['str', /^\\\S[^\s,;)}\]]*/], ['com', /^\/\*[\S\s]*\*\//], ['pln', RegExp('^(?:\\.{3}|(?:\\.\\s*(?:(?:[-+*/%&|^:]|>>>?|<<)?=|[~!@])?\\s*|[)}\\]?]|::)(?:' + ident + '[?~!@]?)+|' + ident + '[^\\n\\S]*:(?![:=]))')], ['kwd', RegExp('^(?![$_-])(?:t(?:ry|h(?:row|en)|ypeof!?)|f(?:or(?:[^\\n\\S]+(?:own|ever))?|inally|unction)|n(?:ew|ot|o)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:[fs]|n(?:stanceof)?|mp(?:ort(?:[^\\n\\S]+all)?|lements))|e(?:lse|x(?:tends|port))|d(?:e(?:fault|lete|bugger)|o)|un(?:less|til)|w(?:hile|ith|hen)|s(?:witch|uper)|o[frn]|off|return|break|and|let|var|loop|yes|yield)' + kwend)], ['typ', RegExp('^(?:true|false|null|void)' + kwend)], ['ctx', RegExp('^(?:t(?:h(?:is|at)|o|il)|f(?:rom|allthrough)|e(?:val)?|it|arguments|by|constructor|prototype|superclass)' + kwend)], ['glb', RegExp('^(?:Array|Boolean|Date|Error|Function|JSON|Math|Number|Object|RegExp|S(?:tring|yntaxError)|TypeError|is(?:NaN|Finite)|parse(?:Int|Float)|(?:en|de)codeURI(?:Component)?)' + kwend)], ['var', RegExp('^' + ident)], ['str', /^<\[[\S\s]*?]>/], ['lang-ls-r', /^[^\/](\/(?![\s\/])[^[\/\n\\]*(?:(?:\\.|\[[^\]\n\\]*(?:\\.[^\]\n\\]*)*\])[^[\/\n\\]*)*\/[gimy$]{0,4})(?!\d)/]]);
  16. interps = ['lang-ls', RegExp('^#({[\\S\\s]*?}|' + ident + ')'), '#'];
  17. regexes = ['lit', /^[\S\s]+?/];
  18. tint('ls-qq', [interps], [['str', /^[\S\s]+?/]]);
  19. tint('ls-qr', [interps], [['com', /^\s#(?!{).*/], regexes]);
  20. tint('ls-r', [], [regexes]);
  21. tint('ls-at', [['ctx', /^@+/, '@']], []);
downloadlang-ls.js Source code - Download LiveScript Source code
Related Source Codes/Software:
ToGL - Direct3D to OpenGL abstraction layer 2017-04-16
naxsi - NAXSI is an open-source, high performance, low rul... 2017-04-16
fullstackpython.com - Full Stack Python source with Pelican, Bootstrap a... 2017-04-16
capybara-webkit - A Capybara driver for headless WebKit to test Java... 2017-04-16
dat.gui - dat.gui is a lightweight controller library for Ja... 2017-04-16
clair - Vulnerability Static Analysis for Container 2017-04-17
500px-android-blur - Android Blurring View http://developers.500px.com/... 2017-04-17
ng-token-auth - Token based authentication module for angular.js. 2017-04-17
MacRuby - MacRuby is an implementation of Ruby 1.9 directly ... 2017-04-17
iodocs - Interactive API documentation system 2017-04-17
wooyun_public - Dark clouds open holes, the knowledge base crawler... 2017-04-24
RMStore - A lightweight iOS library for In-App Purchase 2017-04-24
AnomalyDetection - Anomaly Detection with R 2017-04-23
fontfaceobserver - Web font loading. Simple, small and efficient. ... 2017-04-23
pipfile - 2017-04-23
MaterialSearchView - Express it in the library to implement SearchView ... 2017-04-23
ptpython - A better Python REPL 2017-04-23
Laravel-4-Bootstrap-Starter-Site - Laravel 4 Starter Site is a basic blog application... 2017-04-23
official-images - Primary source of truth for the Docker "Official I... 2017-04-23
awesome-chrome-devtools - Awesome tooling and resources in the Chrome DevToo... 2017-04-23

 Back to top