Giter Site home page Giter Site logo

atom-language-erlang's People

Contributors

alhadis avatar blazewicz avatar carlisom avatar janl avatar jczarniecki avatar johngeorgewright avatar jonathanmarvens avatar nigelrook avatar optikfluffel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atom-language-erlang's Issues

(Auto-)Indentation of functions not working

New functions, or clauses are indented according to the body of the previous, not the head of it, or base indentation.

Expected behaviour:

f1() ->
  herp.
f2() ->
  derp.

Actual behaviour:

f1() ->
  herp.
  f2() ->
    derp.

it does not help to manually invoke auto-indent either.

End of Directive Not Matched If It Contains fun()

If a directive (e.g. -spec or -type) contains a fun(...) type definition, the grammar doesn't properly match the end of the directive and treats the entire rest of the file as being part of the directive.

Example:

-module(test).

% this one works fine
-spec a() -> ok.
a() -> ok.

% this directive isn't matched correctly and will never end
-spec b( fun(() -> ok) ) -> not_ok.
b(F) -> not_ok.

indentation doesn't work for complex situations


case expression of
    pattern when guard ->
        body
    end

    try expression of
        pattern when guard ->
            wath
            catch
                pattern when guard ->
                    body
                    after
                        body
                    end  

The indentation doesn't work properly when use command tab to indent the source code. It seems the increaseIndentPattern and decreaseIndentPattern are too simple to match all the cases.

Willing to take over maintainership

Heya @jonathanmarvens, I’d be happy to take over maintaining this. My fork already includes all outstanding PRs merged, but I’d need to be able to publish this to apm, and I think that’s something that you’d need to add me to.

If you don’t feel like doing this, or don’t have the tie I’m happy to maintain my fork under a different name (say atom-language-erlang2 or something, to make clear to people what’s what).

Not trying a hostile take over, just trying to make my fellow Erlanger’s lives a little easier :)

Thanks for all the hard work here!

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (..\atom\app-0.192.0\resources\app\src\package.js:547:9)
<unknown> (..\atom\app-0.192.0\resources\app\src\package.js:168:43)

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app/src/package.js:565:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app/src/package.js:187:43)

publish atom-language-erlang to npm

we're using highlights for the syntax highlighting of npm READMEs now, and have extended it so that grammars can be installed from npm modules:

atom/highlights#14

Would you mind publishing atom-language-erlang to npm, so that we can add support for glsl to our READMEs?

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:582:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:184:43)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)
PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:355:14)
PackageManager.loadPackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:325:14)

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.