Edit File by line
/home/barbar84/www/wp-inclu.../js/codemirr...
File: csslint.js
}
[2500] Fix | Delete
[2501] Fix | Delete
prio = this._prio();
[2502] Fix | Delete
[2503] Fix | Delete
/*
[2504] Fix | Delete
* If hacks should be allowed, then only check the root
[2505] Fix | Delete
* property. If hacks should not be allowed, treat
[2506] Fix | Delete
* _property or *property as invalid properties.
[2507] Fix | Delete
*/
[2508] Fix | Delete
propertyName = property.toString();
[2509] Fix | Delete
if (this.options.starHack && property.hack === "*" ||
[2510] Fix | Delete
this.options.underscoreHack && property.hack === "_") {
[2511] Fix | Delete
[2512] Fix | Delete
propertyName = property.text;
[2513] Fix | Delete
}
[2514] Fix | Delete
[2515] Fix | Delete
try {
[2516] Fix | Delete
this._validateProperty(propertyName, expr);
[2517] Fix | Delete
} catch (ex) {
[2518] Fix | Delete
invalid = ex;
[2519] Fix | Delete
}
[2520] Fix | Delete
[2521] Fix | Delete
this.fire({
[2522] Fix | Delete
type: "property",
[2523] Fix | Delete
property: property,
[2524] Fix | Delete
value: expr,
[2525] Fix | Delete
important: prio,
[2526] Fix | Delete
line: property.line,
[2527] Fix | Delete
col: property.col,
[2528] Fix | Delete
invalid: invalid
[2529] Fix | Delete
});
[2530] Fix | Delete
[2531] Fix | Delete
return true;
[2532] Fix | Delete
} else {
[2533] Fix | Delete
return false;
[2534] Fix | Delete
}
[2535] Fix | Delete
},
[2536] Fix | Delete
[2537] Fix | Delete
_prio: function() {
[2538] Fix | Delete
/*
[2539] Fix | Delete
* prio
[2540] Fix | Delete
* : IMPORTANT_SYM S*
[2541] Fix | Delete
* ;
[2542] Fix | Delete
*/
[2543] Fix | Delete
[2544] Fix | Delete
var tokenStream = this._tokenStream,
[2545] Fix | Delete
result = tokenStream.match(Tokens.IMPORTANT_SYM);
[2546] Fix | Delete
[2547] Fix | Delete
this._readWhitespace();
[2548] Fix | Delete
return result;
[2549] Fix | Delete
},
[2550] Fix | Delete
[2551] Fix | Delete
_expr: function(inFunction) {
[2552] Fix | Delete
/*
[2553] Fix | Delete
* expr
[2554] Fix | Delete
* : term [ operator term ]*
[2555] Fix | Delete
* ;
[2556] Fix | Delete
*/
[2557] Fix | Delete
[2558] Fix | Delete
var values = [],
[2559] Fix | Delete
//valueParts = [],
[2560] Fix | Delete
value = null,
[2561] Fix | Delete
operator = null;
[2562] Fix | Delete
[2563] Fix | Delete
value = this._term(inFunction);
[2564] Fix | Delete
if (value !== null) {
[2565] Fix | Delete
[2566] Fix | Delete
values.push(value);
[2567] Fix | Delete
[2568] Fix | Delete
do {
[2569] Fix | Delete
operator = this._operator(inFunction);
[2570] Fix | Delete
[2571] Fix | Delete
//if there's an operator, keep building up the value parts
[2572] Fix | Delete
if (operator) {
[2573] Fix | Delete
values.push(operator);
[2574] Fix | Delete
} /*else {
[2575] Fix | Delete
//if there's not an operator, you have a full value
[2576] Fix | Delete
values.push(new PropertyValue(valueParts, valueParts[0].line, valueParts[0].col));
[2577] Fix | Delete
valueParts = [];
[2578] Fix | Delete
}*/
[2579] Fix | Delete
[2580] Fix | Delete
value = this._term(inFunction);
[2581] Fix | Delete
[2582] Fix | Delete
if (value === null) {
[2583] Fix | Delete
break;
[2584] Fix | Delete
} else {
[2585] Fix | Delete
values.push(value);
[2586] Fix | Delete
}
[2587] Fix | Delete
} while (true);
[2588] Fix | Delete
}
[2589] Fix | Delete
[2590] Fix | Delete
//cleanup
[2591] Fix | Delete
/*if (valueParts.length) {
[2592] Fix | Delete
values.push(new PropertyValue(valueParts, valueParts[0].line, valueParts[0].col));
[2593] Fix | Delete
}*/
[2594] Fix | Delete
[2595] Fix | Delete
return values.length > 0 ? new PropertyValue(values, values[0].line, values[0].col) : null;
[2596] Fix | Delete
},
[2597] Fix | Delete
[2598] Fix | Delete
_term: function(inFunction) {
[2599] Fix | Delete
[2600] Fix | Delete
/*
[2601] Fix | Delete
* term
[2602] Fix | Delete
* : unary_operator?
[2603] Fix | Delete
* [ NUMBER S* | PERCENTAGE S* | LENGTH S* | ANGLE S* |
[2604] Fix | Delete
* TIME S* | FREQ S* | function | ie_function ]
[2605] Fix | Delete
* | STRING S* | IDENT S* | URI S* | UNICODERANGE S* | hexcolor
[2606] Fix | Delete
* ;
[2607] Fix | Delete
*/
[2608] Fix | Delete
[2609] Fix | Delete
var tokenStream = this._tokenStream,
[2610] Fix | Delete
unary = null,
[2611] Fix | Delete
value = null,
[2612] Fix | Delete
endChar = null,
[2613] Fix | Delete
part = null,
[2614] Fix | Delete
token,
[2615] Fix | Delete
line,
[2616] Fix | Delete
col;
[2617] Fix | Delete
[2618] Fix | Delete
//returns the operator or null
[2619] Fix | Delete
unary = this._unary_operator();
[2620] Fix | Delete
if (unary !== null) {
[2621] Fix | Delete
line = tokenStream.token().startLine;
[2622] Fix | Delete
col = tokenStream.token().startCol;
[2623] Fix | Delete
}
[2624] Fix | Delete
[2625] Fix | Delete
//exception for IE filters
[2626] Fix | Delete
if (tokenStream.peek() === Tokens.IE_FUNCTION && this.options.ieFilters) {
[2627] Fix | Delete
[2628] Fix | Delete
value = this._ie_function();
[2629] Fix | Delete
if (unary === null) {
[2630] Fix | Delete
line = tokenStream.token().startLine;
[2631] Fix | Delete
col = tokenStream.token().startCol;
[2632] Fix | Delete
}
[2633] Fix | Delete
[2634] Fix | Delete
//see if it's a simple block
[2635] Fix | Delete
} else if (inFunction && tokenStream.match([Tokens.LPAREN, Tokens.LBRACE, Tokens.LBRACKET])) {
[2636] Fix | Delete
[2637] Fix | Delete
token = tokenStream.token();
[2638] Fix | Delete
endChar = token.endChar;
[2639] Fix | Delete
value = token.value + this._expr(inFunction).text;
[2640] Fix | Delete
if (unary === null) {
[2641] Fix | Delete
line = tokenStream.token().startLine;
[2642] Fix | Delete
col = tokenStream.token().startCol;
[2643] Fix | Delete
}
[2644] Fix | Delete
tokenStream.mustMatch(Tokens.type(endChar));
[2645] Fix | Delete
value += endChar;
[2646] Fix | Delete
this._readWhitespace();
[2647] Fix | Delete
[2648] Fix | Delete
//see if there's a simple match
[2649] Fix | Delete
} else if (tokenStream.match([Tokens.NUMBER, Tokens.PERCENTAGE, Tokens.LENGTH,
[2650] Fix | Delete
Tokens.ANGLE, Tokens.TIME,
[2651] Fix | Delete
Tokens.FREQ, Tokens.STRING, Tokens.IDENT, Tokens.URI, Tokens.UNICODE_RANGE])) {
[2652] Fix | Delete
[2653] Fix | Delete
value = tokenStream.token().value;
[2654] Fix | Delete
if (unary === null) {
[2655] Fix | Delete
line = tokenStream.token().startLine;
[2656] Fix | Delete
col = tokenStream.token().startCol;
[2657] Fix | Delete
// Correct potentially-inaccurate IDENT parsing in
[2658] Fix | Delete
// PropertyValuePart constructor.
[2659] Fix | Delete
part = PropertyValuePart.fromToken(tokenStream.token());
[2660] Fix | Delete
}
[2661] Fix | Delete
this._readWhitespace();
[2662] Fix | Delete
} else {
[2663] Fix | Delete
[2664] Fix | Delete
//see if it's a color
[2665] Fix | Delete
token = this._hexcolor();
[2666] Fix | Delete
if (token === null) {
[2667] Fix | Delete
[2668] Fix | Delete
//if there's no unary, get the start of the next token for line/col info
[2669] Fix | Delete
if (unary === null) {
[2670] Fix | Delete
line = tokenStream.LT(1).startLine;
[2671] Fix | Delete
col = tokenStream.LT(1).startCol;
[2672] Fix | Delete
}
[2673] Fix | Delete
[2674] Fix | Delete
//has to be a function
[2675] Fix | Delete
if (value === null) {
[2676] Fix | Delete
[2677] Fix | Delete
/*
[2678] Fix | Delete
* This checks for alpha(opacity=0) style of IE
[2679] Fix | Delete
* functions. IE_FUNCTION only presents progid: style.
[2680] Fix | Delete
*/
[2681] Fix | Delete
if (tokenStream.LA(3) === Tokens.EQUALS && this.options.ieFilters) {
[2682] Fix | Delete
value = this._ie_function();
[2683] Fix | Delete
} else {
[2684] Fix | Delete
value = this._function();
[2685] Fix | Delete
}
[2686] Fix | Delete
}
[2687] Fix | Delete
[2688] Fix | Delete
/*if (value === null) {
[2689] Fix | Delete
return null;
[2690] Fix | Delete
//throw new Error("Expected identifier at line " + tokenStream.token().startLine + ", character " + tokenStream.token().startCol + ".");
[2691] Fix | Delete
}*/
[2692] Fix | Delete
[2693] Fix | Delete
} else {
[2694] Fix | Delete
value = token.value;
[2695] Fix | Delete
if (unary === null) {
[2696] Fix | Delete
line = token.startLine;
[2697] Fix | Delete
col = token.startCol;
[2698] Fix | Delete
}
[2699] Fix | Delete
}
[2700] Fix | Delete
[2701] Fix | Delete
}
[2702] Fix | Delete
[2703] Fix | Delete
return part !== null ? part : value !== null ?
[2704] Fix | Delete
new PropertyValuePart(unary !== null ? unary + value : value, line, col) :
[2705] Fix | Delete
null;
[2706] Fix | Delete
[2707] Fix | Delete
},
[2708] Fix | Delete
[2709] Fix | Delete
_function: function() {
[2710] Fix | Delete
[2711] Fix | Delete
/*
[2712] Fix | Delete
* function
[2713] Fix | Delete
* : FUNCTION S* expr ')' S*
[2714] Fix | Delete
* ;
[2715] Fix | Delete
*/
[2716] Fix | Delete
[2717] Fix | Delete
var tokenStream = this._tokenStream,
[2718] Fix | Delete
functionText = null,
[2719] Fix | Delete
expr = null,
[2720] Fix | Delete
lt;
[2721] Fix | Delete
[2722] Fix | Delete
if (tokenStream.match(Tokens.FUNCTION)) {
[2723] Fix | Delete
functionText = tokenStream.token().value;
[2724] Fix | Delete
this._readWhitespace();
[2725] Fix | Delete
expr = this._expr(true);
[2726] Fix | Delete
functionText += expr;
[2727] Fix | Delete
[2728] Fix | Delete
//START: Horrible hack in case it's an IE filter
[2729] Fix | Delete
if (this.options.ieFilters && tokenStream.peek() === Tokens.EQUALS) {
[2730] Fix | Delete
do {
[2731] Fix | Delete
[2732] Fix | Delete
if (this._readWhitespace()) {
[2733] Fix | Delete
functionText += tokenStream.token().value;
[2734] Fix | Delete
}
[2735] Fix | Delete
[2736] Fix | Delete
//might be second time in the loop
[2737] Fix | Delete
if (tokenStream.LA(0) === Tokens.COMMA) {
[2738] Fix | Delete
functionText += tokenStream.token().value;
[2739] Fix | Delete
}
[2740] Fix | Delete
[2741] Fix | Delete
tokenStream.match(Tokens.IDENT);
[2742] Fix | Delete
functionText += tokenStream.token().value;
[2743] Fix | Delete
[2744] Fix | Delete
tokenStream.match(Tokens.EQUALS);
[2745] Fix | Delete
functionText += tokenStream.token().value;
[2746] Fix | Delete
[2747] Fix | Delete
//functionText += this._term();
[2748] Fix | Delete
lt = tokenStream.peek();
[2749] Fix | Delete
while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN) {
[2750] Fix | Delete
tokenStream.get();
[2751] Fix | Delete
functionText += tokenStream.token().value;
[2752] Fix | Delete
lt = tokenStream.peek();
[2753] Fix | Delete
}
[2754] Fix | Delete
} while (tokenStream.match([Tokens.COMMA, Tokens.S]));
[2755] Fix | Delete
}
[2756] Fix | Delete
[2757] Fix | Delete
//END: Horrible Hack
[2758] Fix | Delete
[2759] Fix | Delete
tokenStream.match(Tokens.RPAREN);
[2760] Fix | Delete
functionText += ")";
[2761] Fix | Delete
this._readWhitespace();
[2762] Fix | Delete
}
[2763] Fix | Delete
[2764] Fix | Delete
return functionText;
[2765] Fix | Delete
},
[2766] Fix | Delete
[2767] Fix | Delete
_ie_function: function() {
[2768] Fix | Delete
[2769] Fix | Delete
/* (My own extension)
[2770] Fix | Delete
* ie_function
[2771] Fix | Delete
* : IE_FUNCTION S* IDENT '=' term [S* ','? IDENT '=' term]+ ')' S*
[2772] Fix | Delete
* ;
[2773] Fix | Delete
*/
[2774] Fix | Delete
[2775] Fix | Delete
var tokenStream = this._tokenStream,
[2776] Fix | Delete
functionText = null,
[2777] Fix | Delete
lt;
[2778] Fix | Delete
[2779] Fix | Delete
//IE function can begin like a regular function, too
[2780] Fix | Delete
if (tokenStream.match([Tokens.IE_FUNCTION, Tokens.FUNCTION])) {
[2781] Fix | Delete
functionText = tokenStream.token().value;
[2782] Fix | Delete
[2783] Fix | Delete
do {
[2784] Fix | Delete
[2785] Fix | Delete
if (this._readWhitespace()) {
[2786] Fix | Delete
functionText += tokenStream.token().value;
[2787] Fix | Delete
}
[2788] Fix | Delete
[2789] Fix | Delete
//might be second time in the loop
[2790] Fix | Delete
if (tokenStream.LA(0) === Tokens.COMMA) {
[2791] Fix | Delete
functionText += tokenStream.token().value;
[2792] Fix | Delete
}
[2793] Fix | Delete
[2794] Fix | Delete
tokenStream.match(Tokens.IDENT);
[2795] Fix | Delete
functionText += tokenStream.token().value;
[2796] Fix | Delete
[2797] Fix | Delete
tokenStream.match(Tokens.EQUALS);
[2798] Fix | Delete
functionText += tokenStream.token().value;
[2799] Fix | Delete
[2800] Fix | Delete
//functionText += this._term();
[2801] Fix | Delete
lt = tokenStream.peek();
[2802] Fix | Delete
while (lt !== Tokens.COMMA && lt !== Tokens.S && lt !== Tokens.RPAREN) {
[2803] Fix | Delete
tokenStream.get();
[2804] Fix | Delete
functionText += tokenStream.token().value;
[2805] Fix | Delete
lt = tokenStream.peek();
[2806] Fix | Delete
}
[2807] Fix | Delete
} while (tokenStream.match([Tokens.COMMA, Tokens.S]));
[2808] Fix | Delete
[2809] Fix | Delete
tokenStream.match(Tokens.RPAREN);
[2810] Fix | Delete
functionText += ")";
[2811] Fix | Delete
this._readWhitespace();
[2812] Fix | Delete
}
[2813] Fix | Delete
[2814] Fix | Delete
return functionText;
[2815] Fix | Delete
},
[2816] Fix | Delete
[2817] Fix | Delete
_hexcolor: function() {
[2818] Fix | Delete
/*
[2819] Fix | Delete
* There is a constraint on the color that it must
[2820] Fix | Delete
* have either 3 or 6 hex-digits (i.e., [0-9a-fA-F])
[2821] Fix | Delete
* after the "#"; e.g., "#000" is OK, but "#abcd" is not.
[2822] Fix | Delete
*
[2823] Fix | Delete
* hexcolor
[2824] Fix | Delete
* : HASH S*
[2825] Fix | Delete
* ;
[2826] Fix | Delete
*/
[2827] Fix | Delete
[2828] Fix | Delete
var tokenStream = this._tokenStream,
[2829] Fix | Delete
token = null,
[2830] Fix | Delete
color;
[2831] Fix | Delete
[2832] Fix | Delete
if (tokenStream.match(Tokens.HASH)) {
[2833] Fix | Delete
[2834] Fix | Delete
//need to do some validation here
[2835] Fix | Delete
[2836] Fix | Delete
token = tokenStream.token();
[2837] Fix | Delete
color = token.value;
[2838] Fix | Delete
if (!/#[a-f0-9]{3,6}/i.test(color)) {
[2839] Fix | Delete
throw new SyntaxError("Expected a hex color but found '" + color + "' at line " + token.startLine + ", col " + token.startCol + ".", token.startLine, token.startCol);
[2840] Fix | Delete
}
[2841] Fix | Delete
this._readWhitespace();
[2842] Fix | Delete
}
[2843] Fix | Delete
[2844] Fix | Delete
return token;
[2845] Fix | Delete
},
[2846] Fix | Delete
[2847] Fix | Delete
//-----------------------------------------------------------------
[2848] Fix | Delete
// Animations methods
[2849] Fix | Delete
//-----------------------------------------------------------------
[2850] Fix | Delete
[2851] Fix | Delete
_keyframes: function() {
[2852] Fix | Delete
[2853] Fix | Delete
/*
[2854] Fix | Delete
* keyframes:
[2855] Fix | Delete
* : KEYFRAMES_SYM S* keyframe_name S* '{' S* keyframe_rule* '}' {
[2856] Fix | Delete
* ;
[2857] Fix | Delete
*/
[2858] Fix | Delete
var tokenStream = this._tokenStream,
[2859] Fix | Delete
token,
[2860] Fix | Delete
tt,
[2861] Fix | Delete
name,
[2862] Fix | Delete
prefix = "";
[2863] Fix | Delete
[2864] Fix | Delete
tokenStream.mustMatch(Tokens.KEYFRAMES_SYM);
[2865] Fix | Delete
token = tokenStream.token();
[2866] Fix | Delete
if (/^@\-([^\-]+)\-/.test(token.value)) {
[2867] Fix | Delete
prefix = RegExp.$1;
[2868] Fix | Delete
}
[2869] Fix | Delete
[2870] Fix | Delete
this._readWhitespace();
[2871] Fix | Delete
name = this._keyframe_name();
[2872] Fix | Delete
[2873] Fix | Delete
this._readWhitespace();
[2874] Fix | Delete
tokenStream.mustMatch(Tokens.LBRACE);
[2875] Fix | Delete
[2876] Fix | Delete
this.fire({
[2877] Fix | Delete
type: "startkeyframes",
[2878] Fix | Delete
name: name,
[2879] Fix | Delete
prefix: prefix,
[2880] Fix | Delete
line: token.startLine,
[2881] Fix | Delete
col: token.startCol
[2882] Fix | Delete
});
[2883] Fix | Delete
[2884] Fix | Delete
this._readWhitespace();
[2885] Fix | Delete
tt = tokenStream.peek();
[2886] Fix | Delete
[2887] Fix | Delete
//check for key
[2888] Fix | Delete
while (tt === Tokens.IDENT || tt === Tokens.PERCENTAGE) {
[2889] Fix | Delete
this._keyframe_rule();
[2890] Fix | Delete
this._readWhitespace();
[2891] Fix | Delete
tt = tokenStream.peek();
[2892] Fix | Delete
}
[2893] Fix | Delete
[2894] Fix | Delete
this.fire({
[2895] Fix | Delete
type: "endkeyframes",
[2896] Fix | Delete
name: name,
[2897] Fix | Delete
prefix: prefix,
[2898] Fix | Delete
line: token.startLine,
[2899] Fix | Delete
col: token.startCol
[2900] Fix | Delete
});
[2901] Fix | Delete
[2902] Fix | Delete
this._readWhitespace();
[2903] Fix | Delete
tokenStream.mustMatch(Tokens.RBRACE);
[2904] Fix | Delete
this._readWhitespace();
[2905] Fix | Delete
[2906] Fix | Delete
},
[2907] Fix | Delete
[2908] Fix | Delete
_keyframe_name: function() {
[2909] Fix | Delete
[2910] Fix | Delete
/*
[2911] Fix | Delete
* keyframe_name:
[2912] Fix | Delete
* : IDENT
[2913] Fix | Delete
* | STRING
[2914] Fix | Delete
* ;
[2915] Fix | Delete
*/
[2916] Fix | Delete
var tokenStream = this._tokenStream;
[2917] Fix | Delete
[2918] Fix | Delete
tokenStream.mustMatch([Tokens.IDENT, Tokens.STRING]);
[2919] Fix | Delete
return SyntaxUnit.fromToken(tokenStream.token());
[2920] Fix | Delete
},
[2921] Fix | Delete
[2922] Fix | Delete
_keyframe_rule: function() {
[2923] Fix | Delete
[2924] Fix | Delete
/*
[2925] Fix | Delete
* keyframe_rule:
[2926] Fix | Delete
* : key_list S*
[2927] Fix | Delete
* '{' S* declaration [ ';' S* declaration ]* '}' S*
[2928] Fix | Delete
* ;
[2929] Fix | Delete
*/
[2930] Fix | Delete
var keyList = this._key_list();
[2931] Fix | Delete
[2932] Fix | Delete
this.fire({
[2933] Fix | Delete
type: "startkeyframerule",
[2934] Fix | Delete
keys: keyList,
[2935] Fix | Delete
line: keyList[0].line,
[2936] Fix | Delete
col: keyList[0].col
[2937] Fix | Delete
});
[2938] Fix | Delete
[2939] Fix | Delete
this._readDeclarations(true);
[2940] Fix | Delete
[2941] Fix | Delete
this.fire({
[2942] Fix | Delete
type: "endkeyframerule",
[2943] Fix | Delete
keys: keyList,
[2944] Fix | Delete
line: keyList[0].line,
[2945] Fix | Delete
col: keyList[0].col
[2946] Fix | Delete
});
[2947] Fix | Delete
[2948] Fix | Delete
},
[2949] Fix | Delete
[2950] Fix | Delete
_key_list: function() {
[2951] Fix | Delete
[2952] Fix | Delete
/*
[2953] Fix | Delete
* key_list:
[2954] Fix | Delete
* : key [ S* ',' S* key]*
[2955] Fix | Delete
* ;
[2956] Fix | Delete
*/
[2957] Fix | Delete
var tokenStream = this._tokenStream,
[2958] Fix | Delete
keyList = [];
[2959] Fix | Delete
[2960] Fix | Delete
//must be least one key
[2961] Fix | Delete
keyList.push(this._key());
[2962] Fix | Delete
[2963] Fix | Delete
this._readWhitespace();
[2964] Fix | Delete
[2965] Fix | Delete
while (tokenStream.match(Tokens.COMMA)) {
[2966] Fix | Delete
this._readWhitespace();
[2967] Fix | Delete
keyList.push(this._key());
[2968] Fix | Delete
this._readWhitespace();
[2969] Fix | Delete
}
[2970] Fix | Delete
[2971] Fix | Delete
return keyList;
[2972] Fix | Delete
},
[2973] Fix | Delete
[2974] Fix | Delete
_key: function() {
[2975] Fix | Delete
/*
[2976] Fix | Delete
* There is a restriction that IDENT can be only "from" or "to".
[2977] Fix | Delete
*
[2978] Fix | Delete
* key
[2979] Fix | Delete
* : PERCENTAGE
[2980] Fix | Delete
* | IDENT
[2981] Fix | Delete
* ;
[2982] Fix | Delete
*/
[2983] Fix | Delete
[2984] Fix | Delete
var tokenStream = this._tokenStream,
[2985] Fix | Delete
token;
[2986] Fix | Delete
[2987] Fix | Delete
if (tokenStream.match(Tokens.PERCENTAGE)) {
[2988] Fix | Delete
return SyntaxUnit.fromToken(tokenStream.token());
[2989] Fix | Delete
} else if (tokenStream.match(Tokens.IDENT)) {
[2990] Fix | Delete
token = tokenStream.token();
[2991] Fix | Delete
[2992] Fix | Delete
if (/from|to/i.test(token.value)) {
[2993] Fix | Delete
return SyntaxUnit.fromToken(token);
[2994] Fix | Delete
}
[2995] Fix | Delete
[2996] Fix | Delete
tokenStream.unget();
[2997] Fix | Delete
}
[2998] Fix | Delete
[2999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function