Closed niveK77pur closed 1 year ago
Hello, thank you for this feedback, I never use \editionMod
and indeed, it reveals several errors in my syntax code: the contexts were badly highlighted, and the parentheses were identified as scheme code...
It should work better now!
Thanks a bunch for the quick intervention! I shall have a look in the coming days and report back!
I almost forgot to report back! But everything seems to work as expected now! Thanks a lot, I shall close the issue~
Here the image for reference:
Thanks for your feedback !
Can I ask you what colorscheme you use? Grobs like DynamicText
should be highlighted differently from functions like \override
and numbers, here is a screenshot with neovim's default theme :
Interesting, thanks for bringing it to my attention. I shall try out different colorschemes to see if the issue is related to the specific one I am using; maybe it is missing some color definitions.
I am currently using this one: https://github.com/Matsuuu/pinkmare
The issue
First off, I should mention that everything works as expected inside a "normal" Lilypond file!
I have started to use the edition engraver to apply tweaks to my score. For the first time now, I also tried setting slurs using the edition engraver, as opposed to directly putting them into the main lilypond source files. However, the slurs cause the syntax highlighting to break and many elements won't be highlighted anymore. I have attached a few screenshots below. (I also attached a sample file to test with)
I also tried the syntax highlighting provided by lilypond. There appears to be no highlights defined whatsoever for the edition engraver, which makes me assume that this plugin includes a few special syntax highlights for these.
Screenshots
Using nvim-lilypond-suite's highlighting
With the slurs
Without the slurs
I simply commented out all lines containing slurs to show/see what the syntax highlighting should look like.
Using Lilypond's highlighting
With the slurs
Without the slurs
Sample file
Here is the file containing all the
\editionMod
s, which I\include
into the main lilypond file.