Comments (10)
Moved in here from pgilad/gulp-todo#38
from leasot.
Html files have 3 possible comment types in them:
- html
- js
- css
I'm contemplating if it's worth to try to juggle those comments in a multi-filetype sort of file (such as html).
On the other hand, if it's just js
comments inside an html file, you can force the filetype in the cli with the option --filetype
or using the programmatic extension
option in https://github.com/pgilad/leasot#parseextension-contents-filename-customtags
from leasot.
Hmm, forcing the filetype? I could but this makes things complicated because I am using gulp-todo here and do not want to be reminded about the filetype.
from leasot.
hello?
from leasot.
Sorry, been kind of busy. I would just add an HTML file support and support html, js and css style comments... PR is definitely welcome!
from leasot.
just wanted to check - i am very busy either but would welcome such a change ...
from leasot.
Was kinda wondering why leasot did support html out of the box being ubiquitous file format. Go templates use html files so need it for more than just straight html.
Bit of a JS noob but I can try putting together a PR. Should be as easy as copying a another similar parser and making a few changes no?
As to where to put it
html comments should be added to default.parser don't you think?? instead of separate file.
from leasot.
Ah, default parser won't work that just for / and the like, but I think I can just add htm, htm extensions to existing twig parser as that's the same syntax.
from leasot.
That was too easy. PR has been made although I have some error in parser-spec that I don't understand how to fix (very nooby at test assertions, don't know much about mocha).
from leasot.
Closed via #32
from leasot.
Related Issues (20)
- RFC: Version 7.0.0 currently in release candidate stage HOT 2
- Symlinks HOT 5
- Does not report TODOs in .vue files HOT 7
- Running `leasot -S -i node_modules *.js` doesn't ignore the node_modules folder. HOT 12
- feature request: support DONE keyword. HOT 3
- Why is this project named leasot? HOT 3
- Unable to associate .svelte file with twigParser HOT 8
- windows compatibility - no files found HOT 2
- F# support HOT 2
- Clojure support? HOT 2
- Vue.js: Only HTML comments register HOT 2
- 11.2 Cannot find module HOT 4
- 11.6.0 should've been a major release HOT 1
- Can't click open in VScode, but I have I temp solution.
- Broken Markdown table output
- Add support for GDScript
- Newest published package has an error when attempting to run HOT 3
- `ERR_PACKAGE_PATH_NOT_EXPORTED` reported when using as node script HOT 4
- Add support for the R language HOT 2
- Non-comment todo's (maybe feature request) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leasot.