Sha256: 505461ee5791f81b266d33317a6d15a3efb4287230d6a68deb743371ada266ba
Contents?: true
Size: 1005 Bytes
Versions: 19
Compression:
Stored size: 1005 Bytes
Contents
var TYPE = require('../../tokenizer').TYPE; var STRING = TYPE.String; var IDENTIFIER = TYPE.Identifier; var URL = TYPE.Url; var LEFTPARENTHESIS = TYPE.LeftParenthesis; module.exports = { parse: { prelude: function() { var children = this.createList(); this.scanner.skipSC(); switch (this.scanner.tokenType) { case STRING: children.push(this.String()); break; case URL: children.push(this.Url()); break; default: this.scanner.error('String or url() is expected'); } if (this.scanner.lookupNonWSType(0) === IDENTIFIER || this.scanner.lookupNonWSType(0) === LEFTPARENTHESIS) { children.push(this.WhiteSpace()); children.push(this.MediaQueryList()); } return children; }, block: null } };
Version data entries
19 entries across 18 versions & 4 rubygems