https://github.com/GeertjanWielenga/Python4NetBeans/blob/master/PythonEditor/src/org/netbeans/modules/python/editor/PythonBracesMatcherFactory.java

http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-bracesmatching/org/netbeans/spi/editor/bracesmatching/support/BracesMatcherSupport.html

Gj

On Sun, Oct 28, 2018 at 6:26 AM [email protected] <
[email protected]> wrote:

> Where can I find examples of braces completion. I tried doing it in
> IndentTask and it isn't quite working. I was thinking about getting a hold
> of the token sequence and working my way through. But may be looking at
> existing examples is a better idea.
>
> In Java, when user enters a '{' and presses enter, the corresponding '}'
> is added and the cursor is placed between '{' and '}'. This is the
> behaviour I am trying to replicate.
>
> I searched in Indent tasks of other modules like Groovy and XML. But they
> don't have any braces completion logic. Is there any modules in
> incubator-netbeans source I can look at for examples ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to