Skip to content

Commit

Permalink
Import pseudo selectors. Fix microsoft/vscode#41248
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Jun 18, 2018
1 parent 0c9bc14 commit c88ec93
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 132 deletions.
5 changes: 3 additions & 2 deletions build/generate_browserjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ function toSource(object, keyName) {
var parser = new xml2js.Parser({explicitArray : false});
var schemaFileName= 'css-schema.xml';

var { buildPropertiesWithMDNData } = require('./mdn-data-importer')
var { buildPropertiesWithMDNData } = require('./mdn/mdn-data-property-importer')
const { addMDNPseudoSelectors } = require('./mdn/mdn-data-selector-importer')

fs.readFile(path.resolve(__dirname, schemaFileName), function(err, data) {
parser.parseString(data, function (err, result) {
Expand All @@ -361,7 +362,7 @@ fs.readFile(path.resolve(__dirname, schemaFileName), function(err, data) {
var resultObject = {
css: {
atdirectives: atdirectives,
pseudoclasses: pseudoclasses,
pseudoclasses: addMDNPseudoSelectors(pseudoclasses),
pseudoelements: pseudoelements,
properties: buildPropertiesWithMDNData(properties)
}
Expand Down
Loading

0 comments on commit c88ec93

Please sign in to comment.