The context :
- GNU Emacs 26.1
- working on Debian 10.3
- currently editing YAML files (Ansible code)
Here's how my code looks like :
As you can see, the syntax highlighting is puzzled by the odd number of single quotes in
it's difficult... and applies color to everything until it reaches the next single "single quote".
Is there a way to instruct the syntax highlighting logic that "single single quotes" are ok in lines starting with
- name: and refrain it from colouring everything until the next "single single quote" ?
NB : this is a purely cosmetics question, everything works fine, no error message, just the display pictured above.
EDIT: Thank you @Lindydancer and @wasamasa. The solutions / workarounds you suggest are way beyond my Emacs skills, so I think I'll have to live with this cosmetic issue. Not able to pick my "favorite" answer either, sorry.
BTW, while working on different topics, I tried Spacemacs and realized it can highlight my YAML snippet without being puzzled by the single quotes :
May this help those investigating, and others searching for an alternative.