branch: elpa/julia-mode
commit 9c6d2b83b146d523b1eda954da9b5db9b39f89b1
Author: Jeff Bezanson <[email protected]>
Commit: Yichao Yu <[email protected]>
emacs: allow any combination of spaces and newlines after "in" in for loop
---
julia-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/julia-mode.el b/julia-mode.el
index 06398c4..d352a69 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -57,7 +57,7 @@
"\\(\\s(\\|\\s-\\|-\\|[,%=<>\\+*/?&|!\\^~\\\\;:]\\|^\\)\\($[a-zA-Z0-9_]+\\)")
(defconst julia-forloop-in-regex
- "for +[^
]+ +.*\\(in\\) +")
+ "for +[^
]+ +.*\\(in\\)\\(\\s-\\|$\\)+")
(defconst julia-font-lock-keywords
(list
'("\\<\\(\\|Uint\\(8\\|16\\|32\\|64\\)\\|Int\\(8\\|16\\|32\\|64\\)\\|Integer\\|Float\\|Float32\\|Float64\\|Complex128\\|Complex64\\|ComplexNum\\|Bool\\|Char\\|Number\\|Scalar\\|Real\\|Int\\|Uint\\|Array\\|DArray\\|AbstractArray\\|AbstractVector\\|AbstractMatrix\\|SubArray\\|StridedArray\\|StridedVector\\|StridedMatrix\\|VecOrMat\\|StridedVecOrMat\\|Range\\|Range1\\|SparseMatrixCSC\\|Tuple\\|NTuple\\|Buffer\\|Size\\|Index\\|Symbol\\|Function\\|Vector\\|Matrix\\|Union\\|Type\\|Any\
[...]