View Issue Details

IDProjectCategoryView StatusLast Update
00257272.x IDE BugsCode EditorPublic2019-05-15 09:21
ReporterDanAssigned ToAlexander Borup 
PriorityMediumSeverityD - MinorReproducibility100%
Status ClosedResolutionFixed 
Platform-OSWindows 8OS Version8.1 Pro x64
Product Version2.2.0 
Target Version2.2.3Fixed in Version2.2.3 
Summary0025727: Code Editor: Colouring for enum values is incorrect if all declared on one line
DescriptionThe colouring for enum values doesn't seem to be applied until that specific value is used elsewhere if all of the values are declared on one line. The enums remain grey/off-white until they are used, at which point they incorrectly turn blue like unknown variables. You can see this in the first attached screenshot.

If you declare the enum over multiple lines, then the colouring is correct. (Second screenshot.)

Expected: As soon as I type , or } after an enum in the list, that enum is coloured as a known variable, regardless of single-line/multiple-line declaration style.
Steps To Reproduce1. Start the IDE and create a new project.
2. Create a new object, add a Create event.
3. Type some enum declaration, then add some blank lines and wait.
4. Observe code colouring does not get applied to the values, only the enum name.
5. Now declare another variable using one of the enum values.
6. Observe when you pick the enum from the autocomplete list/finish typing, both the new reference and the original declaration become coloured.

Repro: 100%
Additional InformationSuspect this is what https://yoyogames.zendesk.com/agent/tickets/120278 was reporting.
TagsCodeEditor, IDE, Syntax
2.x IDE Found In2.0.5.72
2.x Runtime Found In2.0.5.47
2.x IDE Verified In9.2.1.1817
2.x Runtime Verified In9.9.1.1441

Relationships

has duplicate 0030684 ClosedAlexander Borup Code Editor: Fails to syntax color 1-line enums 

Activities