Class auto completion with array []

Discuss syntax highlighting or submit new syntax files.
Post Reply
Posts: 9
Joined: 19 Jan 2020 05:42

Class auto completion with array []

Post by owend »

I am trying to create a syntax file in which some of the class names must have array elements in them.
The help file says
Class Auto Completion
When the user has entered an auto completion sign, e.g. a dot, in the editor you can present the user with a list of methods.
1. Enter a name, e.g. a class name. The name can be a single word or several separated with a dot. E.g. "System.out." or just "System.". The last character should be the auto completion sign, except when you use a space character. You can also use arrays. E.g. "Form.Items[].". This will work regardless of what the user enter between the "[ ]" brackets.
However class completion works for all levels of the hierarchy levels except those that contain square brackets.
In the image, class completion picks up each level as you add a period until boards.heat.heaters[].
boards. (OK)
boards.heat. (OK)
boards.heat.heaters[0]. (Fails to display properties)
(3.04 KiB) Downloaded 109 times
I'm sure I'm doing something basic wrong, but I can't figure what it is.

unfinished syntax file attached.

Thanks in advance.

User avatar
Rickard Johansson
Site Admin
Posts: 5988
Joined: 19 Jul 2006 14:29

Re: Class auto completion with array []

Post by Rickard Johansson »

It doesn't seem to work anymore. I'll fix it in the next release.


Post Reply