branch: elpa/julia-mode commit 2316ad74e94e58b22514c1c86b8b797ea28e8695 Author: Jeff Bezanson <jeff.bezan...@gmail.com> Commit: Yichao Yu <yyc1...@gmail.com>
implement "do" block syntax. closes #441 foo(a,b) do x,y # ... end is syntax for foo((x,y)->begin # ... end, a,b) --- julia-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/julia-mode.el b/julia-mode.el index 1f239d5..bd1bfc1 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -69,7 +69,7 @@ '("if" "else" "elseif" "while" "for" "begin" "end" "quote" "try" "catch" "return" "local" "abstract" "function" "macro" "ccall" "typealias" "break" "continue" "type" "global" "@\\w+" - "module" "import" "export" "const" "let" "bitstype") + "module" "import" "export" "const" "let" "bitstype" "do") "\\|") "\\)\\>") 'font-lock-keyword-face) '("\\<\\(true\\|false\\|C_NULL\\|Inf\\|NaN\\|Inf32\\|NaN32\\)\\>" . font-lock-constant-face) @@ -81,7 +81,7 @@ (defconst julia-block-start-keywords (list "if" "while" "for" "begin" "try" "function" "type" "let" "macro" - "quote")) + "quote" "do")) (defconst julia-block-other-keywords (list "else" "elseif"))