Comments (6)
Smart(er) indentation for atom in general would be great. syntax aware indentation is always one thing that makes it feel nice when I open up emacs for a bit
from atom-language-julia.
Yeah, definitely, but that's kind of out of scope for this package.
from atom-language-julia.
Hmm off the top of my head I'm not sure what the issue is here.
Any ideas?
from atom-language-julia.
I haven't yet seen any grammar do this -- the only thing is to indent the next line by a bit if there's an open paren:
longfoo(arg1,
arg2,
arg3)
But if you manually indent the second line up to the paren (or wherever, really), the line after that will keep that indent:
longfoo(arg1,
arg2,
# | you'll get here on enter
I don't know much about the capabilities of grammars in Atom, but I'd think that something like that should be done by a code beautifier or something similar...
from atom-language-julia.
Somewhat related: atom/atom#10384
So when that parsing system rework lands we should be able to do what is proposed here.
from atom-language-julia.
Can this be adapted to help since it produces PEP8 indenting for Python?
from atom-language-julia.
Related Issues (20)
- Transpose operator (') breaks syntax highlighting on GitHub HOT 2
- Braces in type parameters break highlighting for the whole file
- `′` breaks variable syntax highlighting
- md"a" syntax breaks highlighting
- Tokenize TODO in comments HOT 3
- Make more specific token for `::` HOT 4
- Weird case of function tokenization when end of line comment includes parentheses HOT 1
- colored documentation syntax as comment HOT 1
- Highlight attributes of a module or constructor HOT 4
- `Markdown.@md_str` breaks syntax highlighting HOT 8
- Incorrect syntax highlighting when splatting a range
- Unicode operators aren't highlighted HOT 1
- Additional keywords HOT 1
- String interpolation with generator is broken HOT 3
- Unicode letters break type name HOT 1
- Command interpolation
- Syntax coloring for doctests
- New `public` keyword not recognized
- Future development after Atom's sunset HOT 1
- Tokenization of commas changed to `source.julia`, which affects Julia Color Themes HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-language-julia.