jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

YAML syntax highlight error involving quotes and brackets/braces #183

Closed sparr closed 8 years ago

sparr commented 8 years ago
- foo: bar "}"
  wrong-color: baz

Everything after }" is mis-identified as a continuation of the string.quoted.double.yaml that started at the first ". This problem also happens with single quotes, and with a closing bracket instead of a closing brace. Having a matching opening brace/bracket does not affect the problem. Removing the text bar makes the problem go away. The next " anywhere in the file will end the string context and return highlighting to normal.

The YAML syntax definition in https://github.com/clifford-github/sublime-ansible does not exhibit this bug.

FichteFoll commented 8 years ago

This should have been fixed with 3109 and I can not reproduce. Which build are you using?

sparr commented 8 years ago

I was using 3107. This does seem to be fixed in 3109.