tree-sitter-grammars / tree-sitter-query

TS query grammar for tree-sitter
Apache License 2.0
52 stars 14 forks source link

Grammar doesn't allow points in end of s-expr #12

Closed theHamsta closed 3 years ago

theHamsta commented 3 years ago

image

((environment
  . (_) @_start
  (_) @_end . (_) .
) @block.outer
(#make-range! "block.inner" @_start @_end))

((environment
  (begin
   name: (word) @_frame)
  . (_) @_start
  (_) @_end . (_) .) @frame.outer
 (#eq? @_frame "frame")
 (#make-range! "frame.inner" @_start @_end))