Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more languages #9

Open
mizlan opened this issue Jun 2, 2021 · 14 comments
Open

Add more languages #9

mizlan opened this issue Jun 2, 2021 · 14 comments
Labels
good first issue Good for newcomers

Comments

@mizlan
Copy link
Owner

mizlan commented Jun 2, 2021

Either add on to existing queries or add support for new languages. Relevant queries can be found using playground. See existing queries for examples (Rust is a good example).

@mizlan mizlan added the good first issue Good for newcomers label Jun 2, 2021
@papitz
Copy link

papitz commented Jun 3, 2021

Request for Ruby and Erlang

@mizlan
Copy link
Owner Author

mizlan commented Jun 3, 2021

The Erlang parser has a different way of working with arguments, for example some code I ran the parser on produced this:

      body: expr_function_call [1, 4] - [1, 41]
        name: computed_function_name [1, 4] - [1, 19]
          atom [1, 4] - [1, 19]
        arguments: variable [1, 20] - [1, 22]
        arguments: variable [1, 24] - [1, 30]
        arguments: variable [1, 32] - [1, 36]
        arguments: expr_list [1, 38] - [1, 40]

Effectively, I need to match on each individual argument. Since the existing code does not support this, it will take a bit longer.

@mizlan
Copy link
Owner Author

mizlan commented Jun 3, 2021

I have added Ruby support.

@edwinchen85
Copy link

Request for javascriptreact and typescriptreact.

Thanks.

@mizlan
Copy link
Owner Author

mizlan commented Jul 12, 2021

I played around with JSX/TSX parsers and it seems like there are some weird bugs, with nonexistent elements/text etc. I'm just gonna have them inherit from JS/TS.

@strogiyotec
Copy link

Request for Java support please

@mizlan
Copy link
Owner Author

mizlan commented Aug 12, 2021

@strogiyotec Added in #23! Please test it and let me know if you would like anything else.

@strogiyotec
Copy link

@mizlan it;s working , thanks

@kiuKisas
Copy link

request for rescript too. I though about a fallback support that can naively swap stuff between parenthesis, so on.. but I guess using vim-swap as a fallback is ok.

@mizlan
Copy link
Owner Author

mizlan commented Sep 15, 2021 via email

@papitz
Copy link

papitz commented May 12, 2022

Request for vue

@mizlan
Copy link
Owner Author

mizlan commented May 14, 2022

@papitz Could you provide an example vuescript file please? The file should contain the syntactical constructs for which you want to add support. I'm unfamiliar with the language, but if I have a file, I can make a good guess as to how to implement it.

@papitz
Copy link

papitz commented May 16, 2022

@mizlan Vue is basically just html, css and JavaScript in one file. So you would just need to combine those three so they could work in one file (if that's possible). The html part is in a
<template></template> tag, JavaScript in a <script></script> tag and css in a <style></style> tag.

@ornicar
Copy link
Contributor

ornicar commented Dec 11, 2022

Amazing neovim plugin, thank you! Support for scala3 would be stellar 🌟

EDIT: PR opened

ornicar added a commit to ornicar/iswap.nvim that referenced this issue Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants