-
-
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
33 additions
and
4 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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
(+ 1 2 3) | ||
[1 2 3] | ||
'(1 2 3) | ||
#{1 2 3} | ||
{:a 1 :b 2} |
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,30 @@ | ||
[(list_lit) | ||
(quoting_lit) | ||
(vec_lit) | ||
(set_lit) | ||
(anon_fn_lit) | ||
(map_lit)] @form.outer | ||
|
||
; -- Works: Get List start and end | ||
; (list_lit . value: (_) @_start value: (_) @end .) | ||
|
||
; -- Works: Get Vector start and end | ||
; (vec*lit . value: (_) @_start value: (_) @end .) | ||
|
||
; -- Works: List inner range | ||
; ((list_lit . value: (_) @_start value: (_) @end .) | ||
; (#make-range! "form.inner" @start @end)) | ||
|
||
; -- Works: Vector inner range | ||
; ((vec_lit . value: (_) @_start value: (_) @end .) | ||
; (#make-range! "form.inner" @start @end)) | ||
|
||
; -- Fails: List or Vector inner start and end | ||
; ([list_lit vec_lit] . value: (_) @start value: (_) @end .) | ||
|
||
; -- Fails: List or Vector inner range | ||
; (([list_lit vec_lit] . value: (_) @start value: (_) @end .) | ||
; (#make-range! "form.inner" @start @end)) | ||
|
||
@start | ||
@end |
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