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 - Better syntax highlighting for Yaml alias
Summary: Better syntax highlighting for Yaml alias
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-11-07 14:44 UTC by Byscripts
Modified: 2013-11-07 14:44 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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 :

    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.