-
Notifications
You must be signed in to change notification settings - Fork 98
Feature request: customize opening/closing brackets/etc. per-language #182
Comments
seconding an idea like this. typing |
I third this feature request. I am really getting annoyed with having to manually remove auto-closed backticks in Perl6 with multiline comments of the style #`(COMMENT). I really would hate to have to disable bracket-matcher. #`(
This multiline
comment is
what I want to get.
)
#`(But I get
a backtick at the end.
)` |
Another vote in favour. Manually disabling per language is a pain! |
Another vote for this and another with regards to Perl 6: there are actually numerous supported enclosing delimiters in the language (most non-letter characters). Also in template languages there are a lot of unique delimiters chosen out of a need to be different enough to not show up in someone's actual content. Another language I use (Nit) has a special set of brackets for native code: fun sleep( t : Int ) `{ sleep( t ); `} |
+1 for this enhancement. |
+1 |
I think it would come down to parameterizing these lines and enabling them to be mutated via a service. I'm considering taking a stab at this, but I'm time-strapped ATM. 😦 |
As an interim step, can the "non-smart" quotes be a separate toggle similar to smart quotes? That'd certainly solve #171 ... |
I posted a workaround (good enough for me until this gets fixed) here: #171 (comment) cc @boozedog |
Closing in favor of #121 - feel free to subscribe there for updates. |
Problem
The current set is a very sensible default for many C-based languages, but several languages, such as Haskell, OCaml, and various Lisps, use some of those characters for other reasons. Examples:
'
(single quote)foo'
,foo''
, etc. is the Haskell counterpart tofoo1
,foo2
, etc. in most other languages.Most of these are common enough cases that they will appear in most non-trivial projects written in that language.
There's also the more obscure languages that allow for unbalanced braces as well, e.g. APL, J, and Forth.
Solution
Allow all opening/closing characters to be configured on a per-language basis via the Atom config and Atom services. In the case of the latter, anything there effectively becomes the language's default. The current default can stay the default, as it works with most common languages. It can be as simple as this:
Here:
Package: Clojure as an example
Note that the scope name is basically the grammar's
scopeName
.The text was updated successfully, but these errors were encountered: