Sublime Forum

Scope name for YAML property

#1

I have my own .sublime-color-scheme with this scope:

"scope": "source.yaml entity.name.tag",

to change the color of the YAML properties.

Now after latest Sublime update (I finally did it) that scope is no longer available.

I had a look at the official YAML package bundled with Sublime, but I was not able to find the correct scope.

I only found this:

- meta_scope: meta.property.yaml

which doesn’t work.

Does anyone of you know what is the correct scope for a YAML property?

0 Likes

#2

Open a YAML file, move the text cursor to inside of a property, and then pick Tools > Developer > Show Scope Name from the menu (or press the key binding you will find there); the popup will tell you what the appropriate scope is.

There are a few, for strings, unquoted strings, numbers, etc.

0 Likes