4 ms·
> it looks like this is a GitHub-aware/integrated text editor that targets both desktop (Mac, at least) and web I can confirm, from looking at the code. It us
by espadrine 13y ago
> it looks like this is a GitHub-aware/integrated text editor that targets both desktop (Mac, at least) and web
I can confirm, from looking at the code.
It uses CSS / LESS for highlighting, and CoffeeScript for client-side programming (eg, the fuzzy completion[0], or the autocompletion).
The surprising part is that the editor doesn't seem to be a fork of either Ace or CodeMirror, the two big guys in the field. The highlighters (ie, syntax files) are in CSON. Ace is probably the closest, but it uses a completely different structure[2].
A negative impact of that is the low number of syntax files. However, there seems to be a 1-to-1 equivalence to tmLanguage (TextMate) syntax files[3].
[0]: https://github.com/atom/fuzzaldrin/blob/master/src/filter.coffee https://github.com/atom/fuzzaldrin/blob/master/src/filter.co...
[1]: https://github.com/atom/language-toml/blob/master/grammars/toml.cson https://github.com/atom/language-toml/blob/master/grammars/t...
[2]: https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/asciidoc_highlight_rules.js https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/asci...
[3]: https://github.com/textmate/toml.tmbundle/blob/master/Syntaxes/TOML.tmLanguage https://github.com/textmate/toml.tmbundle/blob/master/Syntax...
- agos 13y agoso the grammars are still a bunch of regexes? that'd be kind of a letdown
- BruceM 13y agoIntelliJ is pretty nice on this point. You write a PEG-style parser and get a full AST. It is a lot of work, but the payoff is pretty nice and they have a lot of solid tooling to help you out.
- babby 13y agoInteresting. The whole Sublime Text theory takes another buff. The tmLanguage syntaxing, while limiting, is still pretty damn easy to create and edit, thus I approve. The idea that you have to learn a new way to build new syntaxes for every editor out there is a big issue for me as if you're going to be on the edge using new templating syntaxes, flavors of other languages etc. you just have to be able to fiddle with syntax highlighting, especially with new editors with poor/incomplete syntaxes and few user created syntaxes to fill the holes.
- FichteFoll 13y agoI hope they won't use this awkward "double-escaped backward-slashes in reglular expressions" environment. YAML[1] is much better for this. [1]: https://github.com/SublimeText/AAAPackageDev/blob/master/Syntax%20Definitions/Sublime%20Text%20Syntax%20Def%20%28YAML%29.YAML-tmLanguage https://github.com/SublimeText/AAAPackageDev/blob/master/Syn...
- espadrine 13y ago> I hope they won't use this awkward "double-escaped backward-slashes in reglular expressions" Yes, they will[0]. YAML is definitely better, but I believe they have a strong opinion against YAML[1]. [0]: https://github.com/atom/language-toml/blob/master/grammars/toml.cson#L26 https://github.com/atom/language-toml/blob/master/grammars/t... [1]: https://github.com/mojombo/toml https://github.com/mojombo/toml