-
Notifications
You must be signed in to change notification settings - Fork 2
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
Jsdoc support. #21
Labels
Comments
AndreOneti
added
documentation
Improvements or additions to documentation
enhancement
New feature or request
labels
Feb 27, 2022
Maybe do using a an logic like const fs = require('fs');
let data = fs.readFileSync("MyQmlFile.qml", { encoding: "utf-8" });
let regex = /\/\*\*\s*\n([^\*]|(\*(?!\/)))*\*\/\s*\n\s{0,}function.*/g
data.match(regex);
let list;
while ((list = regex.exec(data)) !== null) {
let [jsdoc, funcName] = list[0].split("function");
console.log(jsdoc, funcName.split("(")[0]);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add support to define functions and signals with jsdoc and show on autocomplete.
The text was updated successfully, but these errors were encountered: