-
Notifications
You must be signed in to change notification settings - Fork 39
Colon after todo comment #57
Comments
The syn match shTodo contained "\<\%(COMBAK\|FIXME\|TODO\|XXX\)\ze:\=\>" |
@adriaanzon that solution seems reasonable to me. |
@adriaanzon i started tinkering around with trying to simplify/reorganize the code a bit today. while under the hood, i covered this colon issue. if you get any time, could you take a look at this branch and let me know if anything seems out of whack to you? |
First of all, I would avoid the multiple filetypes (php.html.blade). We tried it over at vim-vue, but it broke things like I actually had an idea some time ago about creating an I'd also consider adding some vader tests, because not all faults are directly visible in the test.blade.php file. |
@adriaanzon argh, but that multiple filetypes feels so much easier 😅 😅 😅 . I like the idea of moving the directives and other things to a separate file. I had checked out vader once, but never got around to actually writing up the tests, but I agree that would be much better than a test file. |
OK, I can work on implementing the variables in autoload directory, to use them in ftplugin/syntax/indent, and write vader tests in the process. I also updated the gist so it's all valid vim script now :P https://gist.github.com/adriaanzon/9e51ce5a7ddbe41ea5ff6d38cc244119/revisions |
@adriaanzon thanks for all your contributions as always. i still haven't abandoned this |
I quickly wrote an implementation here: adriaanzon@5d84a80. Feel free to use it (or parts of it) in the rewrite branch. |
Because I added
:
to 'syn iskeyword' in 95809e7, todo comments (like TODO, NOTO, FIXME) aren't highlighted anymore, when they're followed by a colon.This can be fixed by using
syn match
with a regular expression for bladeTodo, but I think adding support for colons in blade directives shouldn't interfere with other syntax groups.So should we use a regular expression for bladeKeyword? Or does someone know a better solution?
I was thinking about something like this:
then you can add matches for directives with colons in them, without the need for
:
in 'syn iskeyword'.The text was updated successfully, but these errors were encountered: