Skip to content

Commit b1c4e12

Browse files
authored
Merge pull request #258 from prettier-solidity/change-parser
Change parser to @solidity-parser/parser
2 parents 691f888 + 4ac3d90 commit b1c4e12

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@
7171
"jest-watch-typeahead": "^0.4.2"
7272
},
7373
"dependencies": {
74+
"@solidity-parser/parser": "^0.5.1",
7475
"dir-to-object": "^2.0.0",
7576
"emoji-regex": "^8.0.0",
7677
"escape-string-regexp": "^2.0.0",
7778
"extract-comments": "^1.1.0",
7879
"prettier": "^2.0.2",
7980
"semver": "^7.1.3",
80-
"solidity-parser-diligence": "^0.4.18",
8181
"string-width": "^4.2.0"
8282
}
8383
}

src/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const extract = require('extract-comments');
22
// https://prettier.io/docs/en/plugins.html#parsers
3-
const parser = require('solidity-parser-diligence');
3+
const parser = require('@solidity-parser/parser');
44

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

0 commit comments

Comments
 (0)