Comments (6)
Do you have any errors insde your DevTools? Debug->Show Dev Tools
Or can you send me your function snippet?
You need a function with {
and }
from brackets-funcdocr.
I didn't see any issues in the Dev Tools view with FuncDocr.
Here's one of the functions:
function describe(n)
{
if (n === 0) {
return "(OK)";
}
return "(error code " + n.toString() + ")";
}
On Wed, Sep 3, 2014 at 10:24 AM, Ole Kröger [email protected]
wrote:
Do you have any errors insde your DevTools? Debug->Show Dev Tools
Or can you send me your function snippet?
You need a function with { and }—
Reply to this email directly or view it on GitHub
#9 (comment)
.
from brackets-funcdocr.
Ah okay, sorry I never used this format :D
Always have the {
in the line and not in the next.
I am working on a FuncDocr feature at the moment and implement your declaration afterward if it's okay.
from brackets-funcdocr.
Or for the moment you can change the var FUNCTION_REGEXP
line into
var FUNCTION_REGEXP = /function(?:\s+[A-Za-z\$\_][A-Za-z\$\_0-9]*)?\s*\(([^\)]*)\)/;
from brackets-funcdocr.
Yes, that's good--I was just debugging and noticed it wasn't happy with
FUNCTION_REGEXP. (Been doing the brackets on function declarations
differently for years--it became the standard in our shop for both C++ and
Javascript. I think it's one of those "One True Indent" patterns. shrug
Everyone has an idea as to what's best. :) )
I applied the fix and it works as expected...love the extension because it
saves me so much time. Now if I can just get the rest of the team to use
Brackets. ;)
On Wed, Sep 3, 2014 at 11:43 AM, Ole Kröger [email protected]
wrote:
Or for the moment you can change the var FUNCTION_REGEXP line into
var FUNCTION_REGEXP =
/function(?:\s+[A-Za-z$][A-Za-z$0-9])?\s(([^)]*))/;—
Reply to this email directly or view it on GitHub
#9 (comment)
.
from brackets-funcdocr.
Btw if you have some ideas => Feel free to ask ;)
from brackets-funcdocr.
Related Issues (20)
- Running FuncDocr shouldn't instantly save the document
- Support exported functions HOT 4
- Add @author with array of authors, please HOT 10
- Lowercase types in JS HOT 1
- Greedy backspace behavior HOT 6
- How do I install this? HOT 1
- Use consistent indentation
- Support ES6 Default Parameters HOT 1
- /* triggers a JSDoc comment block instead of /** HOT 4
- Default value setting has to be the first line HOT 1
- Default value setting has to be single line HOT 1
- @private tag HOT 7
- @since tag HOT 1
- Support generator function auto-completition HOT 2
- Named function expression with the key being a string is not recognized HOT 7
- Autocomplete for javascript @constructor
- Spurious logs HOT 4
- Install fails on brackets-electron HOT 1
- Not working in Brackets 1.9 HOT 3
- Add support for Typescript files 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 brackets-funcdocr.