Skip to content

Commit

Permalink
fix(lua): ignore comments for table inner param
Browse files Browse the repository at this point in the history
  • Loading branch information
ribru17 authored and theHamsta committed Jan 13, 2024
1 parent 85b9d0c commit a97a6ea
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions queries/lua/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
(#make-range! "parameter.outer" @parameter.inner @_end))

(table_constructor
. (_) @parameter.inner
. ","? @_end
(field) @parameter.inner
","? @_end
(#make-range! "parameter.outer" @parameter.inner @_end))

(arguments
Expand All @@ -90,11 +90,6 @@
. (_) @parameter.inner
(#make-range! "parameter.outer" @_start @parameter.inner))

(table_constructor
"," @_start
. (_) @parameter.inner
(#make-range! "parameter.outer" @_start @parameter.inner))

; number
(number) @number.inner

Expand Down

0 comments on commit a97a6ea

Please sign in to comment.