Sha256: 926e04b477654a95571b386c34d702fa632f1cbaa2f006388e30013eb5190c2d
Contents?: true
Size: 1.48 KB
Versions: 11
Compression:
Stored size: 1.48 KB
Contents
//test: tokenize 'standard' functions string.charCodeAt(23); document.getElementById('test'); console.log('Here it is');"; test: /**tokenize doc*/ comment /**tokenize doc comment with @tag {}*/ //test: tokenize parens var line = "[{( )}]"; //test tokenize arithmetic expression which looks like a regexp a/b/c a/=b/c //test tokenize reg exps a=/b/g a+/b/g a = 1 + /2 + 1/gimyxk a=/a/ / /a/ case /a/.test(c) //test tokenize multi-line comment containing a single line comment noRegex /* foo // bar */ canBeRegex; /* foo // bar */ // test tokenize identifier with umlauts fu?e // test // is not a regexp { // 123 //test skipping escaped chars 'Meh\\nNeh' console.log('\\u1232Feh' "test multiline\ strings" a=' b="\ still a string function foo(items, nada) { for (var i=0; i<items.length; i++) { alert(items[i] + "juhu\n"); } // Real Tab. } regexp = /p|p/ // ends here r = /d{1,2}?f{e}++r*?\d+?[]r[^r-o\f\f[\f]?r{7}+r\{7}+rr--rr$^(?:d|s)(?=a|)(?!y)[]|$?|^*/ o a=/a/ jk = / / / / / /************************************/ /** total mess, tricky to highlight**/ function () { /** * docComment **/ r = /u\t*/ g = 1.00E^1, y = 1.2 + .2 + 052 + 0x25 t = ['d', ''] } function () { /* eee */ } "s\ s\u7824sss\u1" '\ string' ' string' "trailing space\ " " /not a regexp/g /** *doc */ a = { 'a': b, 'g': function(t) gta:function(a,b) } foo.protoype.d = function(a, b, c, d) foo.d =function(a, b) foo.d =function(a, /*****/ d"string"
Version data entries
11 entries across 11 versions & 3 rubygems