Help with overriding/setting comment syntax in cpp files... #6569
Replies: 3 comments 3 replies
-
and the order is "all are applied in order, and last one sticks" |
Beta Was this translation helpful? Give feedback.
-
I added that - still no luck, but I think my TS is dealing with comments in cpp files very oddly. No matter what I do, InspectTree does not show my comment block as (comment)...I usually get something like (brief_header) (brief_description), but sometimes even that is not there and the comment block is totally ignored by TS. strange. |
Beta Was this translation helpful? Give feedback.
-
I'm still banging my head against the wall. Here is what I have now in my cpp injection file:
and what I get is: Why doesn't ts merge all adjacent comment lines into a single comment entity? seems like that would help to denote complete sublanguage documents, but maybe I misunderstand. What else should I try? |
Beta Was this translation helpful? Give feedback.
-
I'm aware that we seem to have support for doxygen and re2c in cpp comments. I'd like to add another local option for rst syntax override if my comment contains the text "SPECIFICATION BEGIN" (I can refine sentinel text once I have something working)...so I created a file at .config/nvim/after/queries/cpp/injections.scm with contents:
..which is not working. Are there other files I need to add/update? Also, what determines the order that these matchers are evaluated? Could the doxygen matcher be overriding my custom one?
Beta Was this translation helpful? Give feedback.
All reactions