.yaml filea: foo("{ }")b: foo("abc")I have detected the type of the first part as a yamlPlainScalar by running the following command with the cursor on it:
:let s = synID(line('.'), col('.'), 1) | echo synIDattr(s, 'name') . ' -> ' . synIDattr(synIDtrans(s), 'name')
As far as I can see, yamlPlainScalar is the "default" token. It seems that once it starts it only ends for whitespace. I would expect it to end on parentheses, quotes and other special characters and not glob them all.
I tried to debug the syntax file but it is beyond me unfortunately.
VIM - Vi IMproved 9.1 Included patches: 1-16
Lubuntu 24.04
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
This seems to be very related to #8234 .
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
In YAML syntax, there is no special meaning in double quoted string inside a plain (=unquoted) style string. So b: foo("abc") has a plain style string foo("abc") and that's all. To recognize "abc" as a string, that'll require an embedded syntax inside YAML. So the remaining issue here is that { } in a: foo("{ }") is incorrectly recognized as a mapping (object).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()