-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(fn print-and-add [a b c] | ||
"doc string" | ||
(+ b c)) | ||
|
||
(fn print-and-add2 [a b c] | ||
"doc string" | ||
(+ b c)) | ||
|
||
[1 :a] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- [nfnl] Compiled from docs/sample.fnl by https://github.com/Olical/nfnl, do not edit. | ||
local function print_and_add(a, b, c) | ||
return (b + c) | ||
end | ||
local function print_and_add2(a, b, c) | ||
return (b + c) | ||
end | ||
return {1, "a"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
([(list_lit) | ||
[(list_lit) | ||
(quoting_lit) | ||
(vec_lit) | ||
(set_lit) | ||
(anon_fn_lit) | ||
(map_lit)] @form.outer) | ||
(map_lit)] @form.outer | ||
|
||
; ((list_lit . value: (_) @_start value: (_) @_end .) | ||
; (#make-range! "form.inner" @_start @_end)) | ||
|
||
((vec_lit . value: (_) @_start value: (_) @_end .) | ||
(#make-range! "form.inner" @_start @_end)) | ||
|
||
; -- Fails: List or Vector inner range | ||
; (([list_lit vec_lit] . value: (_) @start value: (_) @end .) | ||
; (#make-range! "form.inner" @start @end)) |