Skip to content

fix(julia): parameters were broken - #898

Open
qwjyh wants to merge 1 commit into
nvim-treesitter:mainfrom
qwjyh:fix-julia-parameters
Open

fix(julia): parameters were broken#898
qwjyh wants to merge 1 commit into
nvim-treesitter:mainfrom
qwjyh:fix-julia-parameters

Conversation

@qwjyh

@qwjyh qwjyh commented Aug 6, 2026

Copy link
Copy Markdown

parameter inner and outer was broken since it requires two argument_lists in a row. I replaced with two queries.

Also, ; is now never captured as parameter not to change the syntax after deletion. For example,

f(1, 2; a = 3, b = 4)
  =-
f(1, 2; a = 3, b = 4)
   --~
f(1, 2; a = 3, b = 4)
        =====-
f(1, 2; a = 3, b = 4)
             --=====
g(; a, b = 2)
    =-
g(; a, b = 2)
     --=====

# If `;` treated as the same as `,`
h(; a = 1, b)
  --===== # <- delete
h(b) # which is different from
h(; b) # i.e., `h(b = b)`

where doubly underlined parts are parameter.inner and underlined parts are parameter.outer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant