Comments? #46
241m
started this conversation in
File Format
Replies: 1 comment
-
Hi! I have the same problem and I resolve it by editing the plugin's script. I added the next line to your ~/.vim/pack/3rd/start/vim-xit/syntax/xit.vim syn region xitComment start="\/\/" end="$" contained
hi def link xitComment Comment And add this new region (xitComment) to all regions that could contained comment. syn region xitCheckboxOpenDesc start="." end=/\v(\[|^[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate,xitComment By the way I'm not an expert in the vim scripting (this is the first problem I have solved with vimscript) so be aware :) Hope it'll help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all!
How about adding comment lines in the [x]it spec? Lines that are ignored by any tools like parsers or editors. My main reason for suggesting this is for using vim modelines.
Something like:
As per the current spec,
syntax highlightersparsers (at least tree-sitter-xit) treat them as title lines.Might be similar/related to #10
Beta Was this translation helpful? Give feedback.
All reactions