This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 238100

Summary: Better syntax highlighting for Yaml alias
Product: web Reporter: Byscripts
Component: YAMLAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Byscripts 2013-11-07 14:44:24 UTC
In YAML, it's possible to define an alias name for a property, then call it later to copy its data in another property.

For example :

foo:
    bar: &whatever
        hello: Word

baz: *whatever

In this case, "baz" will contains { hello: World }

However, in the editor, when defining the alias (foo: &myalias my_foo_content) the key (foo:) is well colored, but the value (&myalias my_foo_content) is not.

When calling an alias (bar: *my_alias), the key (bar:) is well colored, but the alias is colored like a string.

I think it should have a difference color for identifying aliases.

In "foo: &myalias my_foo_content", foo: should have a color, &myalias another one, and my_foo_content another one.