atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

Keys containing hyphens incorrectly receive 2 colour syntax highlighting #101

Closed dixhuit closed 6 years ago

dixhuit commented 6 years ago

Description

Keys containing hyphens incorrectly receive 2 colour syntax highlighting.

Steps to Reproduce

Example YAML file contents:

no_hyphen: "no hyphen example"
single-hyphen: "single hyphen example"
multi-hyphen-example: "multi hyphen example"

Expected behavior: All keys receive single colour syntax highlighting.

Actual behavior: Keys with hyphens receive 2 colour syntax highlighting (one colour up to and including the final hyphen and another colour after the final hyphen).

capita_fork_theme_libraries_yml_ ___projects_client_fivemile_capita-libraries

Reproduces how often: 100%

Versions

Atom : 1.23.3 Electron: 1.6.15 Chrome : 56.0.2924.87 Node : 7.4.0 apm 1.18.12 npm 3.10.10 node 6.9.5 x64 atom 1.23.3 python 2.7.13 git 2.13.3

OS: macOS 10.11.6

winstliu commented 6 years ago

I can't reproduce, so I'm going to assume that this was fixed with my latest bugfixes in Atom 1.25 beta when it is released.

yaml-hyphens