jonathanmarvens / atom-language-erlang Goto Github PK
View Code? Open in Web Editor NEWErlang language support for Atom.
Erlang language support for Atom.
Screenshot:
This similarly breaks when you just do fun()
, though function()
works as a workaround for that specific case.
fun()
and fun(() -> some_type())
are valid types: https://erlang.org/doc/reference_manual/typespec.html#types-and-their-syntax
A similar problem is described in
atom/atom#9372 (comment)
Please correct it.
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.
Using Cmd+/
An escaped '%' shouldn't render as a comment.
I'd hollar a PR, but I'm not familiar with this syntax, sorry.
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.
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.
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!
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)
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)
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:
Would you mind publishing atom-language-erlang
to npm, so that we can add support for glsl
to our READMEs?
In Erlang,
<<"\x01">>
is valid notation, equivalent to:
<<16#01>>
but language-erlang highligths "\x" part as invalid.
BTW, github does same error:
<<"\x01">>
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)
language-erlang should automatically load for *.escript
files, in addition to *.erl
and *.yaws
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.