Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support syntax highlight for filetypes which cannot have the 2 character indent in .vader files. #15
I'm considering using Vader to implement unit tests for https://github.com/plasticboy/vim-markdown
The filetype is
How it gets highlighted: everything after the first line is treated as markdown, including the
Works normally if I use any other filetype that I have tried like
Yes, I can reproduce the problem.
function! s:hl() echo join(map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")'), '/') endfunction command! HL call <SID>hl()
And it looks like
Sorry, I don't quite understand what you mean: do you think it is possible to make it work without modifying mkd, or the only way is to modify mkd? I haven't looked in detail into the problem. In theory, it should be doable without changing mkd syntax since vader has the unambiguous 2-space indent information.
I'm saying that it's not going to be possible to embed markdown syntax inside Vader file anyway, since markdown syntax inherently takes indentation into consideration and Vader requires 2-space indentation.
For example, in markdown we write first-level header like so:
But if we want to put it inside a Vader file, it should be indented by 2-spaces
Is it still a valid h1 syntax? If it's not, then we're out of luck.
Yeah we could do so. But implementation would not be trivial and I don't think I can find time to do it soon. (The current parser of Vader is extremely simple thanks to its very simple syntax.)
Since it doesn't block us from writing tests, I don't think it's an urgent task. If you want to set the
changed the title from
mkd filetype syntax on .vader file does not stop before next test.
Support syntax highlight for filetypes which cannot have the 2 character indent in .vader files.
Sep 7, 2014
referenced this issue
Sep 8, 2014
added a commit
Sep 9, 2014
Well, even with the new semi-colon syntax, plasticboy's mkd syntax is not compatible with Vader. (Change
As I mentioned earlier in the comment the culprit is
EDIT: Nevermind. Fixed it.