Skip to content

Commit

Permalink
Bump moc to 0.11.2 (#121)
Browse files Browse the repository at this point in the history
* Bump 'motoko' npm package

* Recognize 'finally' keyword for automatic semicolons

* Bump 'highlightjs-motoko'
  • Loading branch information
rvanasa authored Jul 9, 2024
1 parent 4bcd610 commit 525402c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
70 changes: 35 additions & 35 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"classnames": "2.3.1",
"copy-to-clipboard": "3.3.1",
"highlight.js": "11.6.0",
"highlightjs-motoko": "1.0.0",
"motoko": "^3.6.16",
"highlightjs-motoko": "1.0.3",
"motoko": "3.7.0",
"pako": "2.0.4",
"react": "17.0.2",
"react-device-detect": "2.2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/preprocessMotoko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function preprocessMotoko(code: string): PreprocessResult {
trimmedLine.endsWith('[') ||
((trimmedLine.startsWith('/*') || !trimmedLine.includes('/*')) &&
trimmedLine.endsWith('*/')) ||
/^(else|catch)([^a-zA-Z0-9_]|$)/.test(nextTrimmedLine)
/^(else|catch|finally)([^a-zA-Z0-9_]|$)/.test(nextTrimmedLine)
)
) {
line += ';';
Expand Down

0 comments on commit 525402c

Please sign in to comment.