-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need add support for VueJS files #107
Comments
@sancroth if you're looking for a more challenging issue, you can check this one out. :) It will require you to learn about state machines & extend the existing set of state machines for parsing comments. |
@preslavmihaylov i'll move on to this one if you want to assign someone. |
Go ahead! |
If the issue ist still open, I'd like to try and solve it. My first impression is that I 'just' need to add a new ToDoMatcher for .vue files, matching all the mentioned formats, right? |
That is correct. The difficulty is in identifying HTML comments as identifying them requires that you read 4 symbols, while the current interface for creating todo matchers only enables you to read prev, curr and next symbols. In the new todomatcher, you'll need to keep track of the second to current character in order to solve this. At least that's what it looks like at first glance. Feel free to take this on. |
VueJS have one-file components with file extension
.vue
. One-file components contains html, javascript and css.JS have standard comments and
.js
is supported by todomatcher:With preprocessors html and css can have different syntaxes 😞 https://vue-loader.vuejs.org/guide/pre-processors.html
But it can be parsed as defualt html and css comments:
<!-- HTML oneline and multiline comments -->
/* CSS oneline and multiline comments */
The text was updated successfully, but these errors were encountered: