diff --git a/src/language/CSSUtils.js b/src/language/CSSUtils.js index a331e798008..9eed5172254 100644 --- a/src/language/CSSUtils.js +++ b/src/language/CSSUtils.js @@ -22,7 +22,7 @@ */ -/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ +/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, regexp: true */ /*global define, $, CodeMirror, _parseRuleList: true */ // JSLint Note: _parseRuleList() is cyclical dependency, not a global function. @@ -48,6 +48,11 @@ define(function (require, exports, module) { PROP_VALUE = "prop.value", IMPORT_URL = "import.url"; + var RESERVED_FLOW_NAMES = ["content", "element"], + INVALID_FLOW_NAMES = ["none", "inherit", "default", "auto", "initial"], + IGNORED_FLOW_NAMES = RESERVED_FLOW_NAMES.concat(INVALID_FLOW_NAMES); + + /** * @private * Checks if the current cursor position is inside the property name context @@ -501,7 +506,7 @@ define(function (require, exports, module) { declListStartChar: column in line where the declaration list for the rule starts declListEndLine: line where the declaration list for the rule ends declListEndChar: column in the line where the declaration list for the rule ends - * @param text {!String} CSS text to extract from + * @param text {!string} CSS text to extract from * @return {Array.} Array with objects specifying selectors. */ function extractAllSelectors(text) { @@ -851,8 +856,8 @@ define(function (require, exports, module) { * jquery and ask what matches. If the node that the user's cursor is in comes back from jquery, then * we know the selector applies. * - * @param text {!String} CSS text to search - * @param selector {!String} selector to search for + * @param text {!string} CSS text to search + * @param selector {!string} selector to search for * @return {Array.<{selectorGroupStartLine:number, declListEndLine:number, selector:string}>} * Array of objects containing the start and end line numbers (0-based, inclusive range) for each * matched selector. @@ -984,7 +989,7 @@ define(function (require, exports, module) { * div .foo .bar {} * .foo.bar {} * - * @param {!String} selector The selector to match. This can be a tag selector, class selector or id selector + * @param {!string} selector The selector to match. This can be a tag selector, class selector or id selector * @param {?Document} htmlDocument An HTML file for context (so we can search