lucaswerkmeister / ceylon-mode Goto Github PK
View Code? Open in Web Editor NEWA major Emacs mode for editing Ceylon code
License: GNU Affero General Public License v3.0
A major Emacs mode for editing Ceylon code
License: GNU Affero General Public License v3.0
Open a blank buffer in Ceylon mode. Hit Enter. Emacs tries to indent the new line, and this loop runs forever.
The ceylon-format-*
functions wipe the region/buffer empty if there is an error (e. g. because the selection was not a valid declaration), because shell-command-on-region
replaces the region regardless of error and ceylon format --pipe
doesn’t write anything to stdout in that case. It’s easy enough to undo (C-x u
), but still not ideal.
Originally part of #8.
Pipe it through ceylon format --pipe
.
If ceylon format
isn’t available, it’s probably better to just bail out rather than install one version from ceylon-mode
, otherwise an outdated ceylon-mode
will install old ceylon.formatter
versions.
I’d like to change the license from GPLv3+ to AGPLv3+ – this isn’t primarily a program run over a network, but if someone runs an “Emacs in your browser” website or something like that, I’d still like to protect their users’ freedom.
@purcell, as the only other contributor: do you agree to make your contribution (#11) available under that license as well?
package.ceylon
in the current directory. If not, abort.module.ceylon
is found. (Make sure not to infinite loop when reaching the root directory.)module.ceylon
specifies a native
annotation (a very crude heuristic will do – native *("jvm")
as regex, for instance), remember that, otherwise default to compiling for JVM.src/main/ceylon/
?)ceylon compile
/compile-js
.Recognizing string literals with regexes is just shitty, and it doesn’t work (try opening Iterable.ceylon
– the long doc comment of the class isn’t recognized). Instead, we should probably override syntax-propertize-function
. Look into how Python mode does this (/usr/share/emacs/24.5/lisp/progmodes/python.el.gz
).
(I’m assigning myself to this issue, but if anyone else wants to take a shot at this, go ahead.)
The indentation function should be improved to indent correctly within string literals. What we currently have works for the third line and subsequent lines, but the second line should be aligned to the quotes in the first line.
Is this mode still viable? Is there something from https://github.com/bkc39/ceylon-mode that might be useful? Might it be worth noting that that one exists even if to say it should be ignored?
Underscores in identifiers, both UIdentifiers (except first letter) and LIdentifiers (anywhere), should of course be supported.
Loading ceylon-mode in vanilla emacs does not work (fails complaining that "concatenate" is not defined). Executing (require 'cl)
before loading ceylon-mode in .emacs gets rid of the error.. but it feels a bit overkill to load another lisp to get it to work 😜
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.