Skip to content

Commit

Permalink
fix: define function grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Dec 20, 2022
1 parent 1c7e80f commit d02835b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/clarity-vscode/syntaxes/clarity.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"name": "meta.define-function",
"patterns": [
{ "include": "#expression" },
{ "include": "#user-func" },
{
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s*",
"end": "(\\))",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@
(define-public (call-bns)
(contract-call? 'SP000000000000000000002Q6VF78.bns can-namespace-be-registered 0x627463)
)

(define-private (say-hello-to (to (string-ascii 10)))
(ok to)
)

(define-public (say-hello-dap)
(say-hello-to "dap")
)

0 comments on commit d02835b

Please sign in to comment.