Please pardon my ignorance, I'm very new to Textmate grammars.
I am working on a VS Code extension to highlight certains keys in YAML file to improve the DevX when dealing with Hydra config files (that are pure YAMLs).
While trying to select some keys, I realized the first character of each token seem to be its own token?
Example with:
array:
- _target_: what
Notice how _ and target_ are different tokens, and how w and hat are different tokens. In this case, that make it quite hard to select _target_ as a key to apply to it a custom style.
Is that intentional? Is that some obscure part of the YAML spec I am not aware about?
Please pardon my ignorance, I'm very new to Textmate grammars.
I am working on a VS Code extension to highlight certains keys in YAML file to improve the DevX when dealing with Hydra config files (that are pure YAMLs).
While trying to select some keys, I realized the first character of each token seem to be its own token?
Example with:
Notice how
_
andtarget_
are different tokens, and howw
andhat
are different tokens. In this case, that make it quite hard to select_target_
as a key to apply to it a custom style.Is that intentional? Is that some obscure part of the YAML spec I am not aware about?