Skip to content

Commit

Permalink
Merge pull request #258 from prettier-solidity/change-parser
Browse files Browse the repository at this point in the history
Change parser to @solidity-parser/parser
  • Loading branch information
fvictorio authored Apr 12, 2020
2 parents 691f888 + 4ac3d90 commit b1c4e12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
"jest-watch-typeahead": "^0.4.2"
},
"dependencies": {
"@solidity-parser/parser": "^0.5.1",
"dir-to-object": "^2.0.0",
"emoji-regex": "^8.0.0",
"escape-string-regexp": "^2.0.0",
"extract-comments": "^1.1.0",
"prettier": "^2.0.2",
"semver": "^7.1.3",
"solidity-parser-diligence": "^0.4.18",
"string-width": "^4.2.0"
}
}
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const extract = require('extract-comments');
// https://prettier.io/docs/en/plugins.html#parsers
const parser = require('solidity-parser-diligence');
const parser = require('@solidity-parser/parser');

const tryHug = (node, operators) => {
if (node.type === 'BinaryOperation' && operators.includes(node.operator))
Expand Down

0 comments on commit b1c4e12

Please sign in to comment.