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

Support match for end keywords #32085

Closed
faustinoaq opened this issue Aug 7, 2017 · 3 comments
Closed

Support match for end keywords #32085

faustinoaq opened this issue Aug 7, 2017 · 3 comments
Assignees
Labels
editor-contrib Editor collection of extras feature-request Request for new features or functionality
Milestone

Comments

@faustinoaq
Copy link
Contributor

Hi community!

I'm happy user of Vim and VSCode 😄

On Vim I can match Ruby, Crystal, Elixir, Lua, Julia end keywords using matchit.

By example, the following code is in Crystal on Vim:

ezgif-4-d0a15b60f4

Would be nice to have something similar on VSCode.

My proposal is something like autoClosingPairs configuration allowing open and close info:

{
  "comments": {
    "lineComment": "#",
    "blockComment": ["=begin", "=end"]
  },
  "brackets": [
    ["{", "}"],
    ["[", "]"],
    ["(", ")"],
    { "open": ["do", "if", "else"], "close": "end", "notIn": ["string", "comment"] }
  ],
  "autoClosingPairs": [
    ["{", "}"],
    ["[", "]"],
    ["(", ")"],
    ["`", "`"],
    { "open": "'", "close": "'", "notIn": ["string", "comment"] },
    { "open": "\"", "close": "\"", "notIn": ["string"] }
  ],
  "surroundingPairs": [
    ["{", "}"],
    ["[", "]"],
    ["(", ")"],
    ["\"", "\""],
    ["'", "'"],
    ["`", "`"]
  ]
}

Thanks for this great editor! 👍

@kieferrm kieferrm added feature-request Request for new features or functionality editor-contrib Editor collection of extras labels Aug 7, 2017
@faustinoaq
Copy link
Contributor Author

@kieferrm So you think would be possible to achieve this with an extension?

@kieferrm
Copy link
Member

@faustinoaq I'm guessing you refer that from the editor-contrib label. This label is referring to the internal structure of our editor (core with contributions on top). Extensions can not provide this kind of editor contributions. Putting this aside, an extension could implement this functionality although not exactly the way you describe it as the API surface of language configuration is limited.

@rebornix
Copy link
Member

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

@rebornix rebornix added this to the Backlog milestone Nov 20, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-contrib Editor collection of extras feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants