https://github.com/JuliaLang/julia
Revision c284efe30e87399e3573e250ed5ae02a3f899f7f authored by justbur on 19 February 2016, 20:20:27 UTC, committed by justbur on 22 February 2016, 20:16:13 UTC
Introduce julia-indent-hanging to calculate indentation following any
hanging operators as defined in julia-hanging-operator-regexp on the
previous line. If a line follows a hanging operator increase the
indentation by one increment, unless it is preceded by two hanging
operators. julia-hanging-operator-regexp is taken from julia-parser.scm.

Added two tests

Fixes #15118

Fix indentation after module kw

Register "module" as a keyword that starts a block, and add to new var
julia-block-start-keywords-no-indent for block keywords that should not
increase the indentation level.

Fixes #11559
1 parent 1b7d009
History
Tip revision: c284efe30e87399e3573e250ed5ae02a3f899f7f authored by justbur on 19 February 2016, 20:20:27 UTC
julia-mode: Fix indent for hanging ops and module
Tip revision: c284efe
File Mode Size
base
contrib
deps
doc
etc
examples
src
test
ui
.gitignore -rw-r--r-- 207 bytes
.mailmap -rw-r--r-- 9.5 KB
.travis.yml -rw-r--r-- 4.5 KB
CONTRIBUTING.md -rw-r--r-- 16.7 KB
DEBUGGER.md -rw-r--r-- 1.2 KB
DISTRIBUTING.md -rw-r--r-- 8.8 KB
LICENSE.md -rw-r--r-- 4.9 KB
Make.inc -rw-r--r-- 29.3 KB
Make.powerpc -rw-r--r-- 1.2 KB
Makefile -rw-r--r-- 26.6 KB
NEWS.md -rw-r--r-- 80.3 KB
README.arm.md -rw-r--r-- 4.0 KB
README.md -rw-r--r-- 26.9 KB
README.windows.md -rw-r--r-- 17.0 KB
VERSION -rw-r--r-- 10 bytes
Windows.inc -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 2.1 KB

README.md

back to top