GithubHelp home page GithubHelp logo

Comments (6)

Wikunia avatar Wikunia commented on July 30, 2024

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.

jbmonroe avatar jbmonroe commented on July 30, 2024

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.

Wikunia avatar Wikunia commented on July 30, 2024

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.

Wikunia avatar Wikunia commented on July 30, 2024

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.

jbmonroe avatar jbmonroe commented on July 30, 2024

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.

Wikunia avatar Wikunia commented on July 30, 2024

Btw if you have some ideas => Feel free to ask ;)

from brackets-funcdocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.