Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from sintaro/feature/snippets-custom-error
Browse files Browse the repository at this point in the history
feat: custom error syntac highlighting
  • Loading branch information
Maddiaa0 authored Aug 23, 2022
2 parents 7cd1a20 + ae62e24 commit 8d8235d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"body": ["#define function ${1:name}(${2:args}) ${3:extensions} ${4:returns} (${5:returnType})"],
"description": "Define a new interface function"
},
"error": {
"prefix": ["error"],
"body": ["#define error ${1:ErrorName}(${2:args})"],
"description": "Define a new error"
},
"stop": {
"prefix": "stop",
"body": "stop"
Expand Down

0 comments on commit 8d8235d

Please sign in to comment.