branch: elpa/julia-mode commit 115ba2c0fa3e2a47d51982d6847a1ebe1e463b53 Author: Éric Thiébaut <eric.thieb...@univ-lyon1.fr> Commit: Éric Thiébaut <eric.thieb...@univ-lyon1.fr>
Add `public` keyword --- julia-mode.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/julia-mode.el b/julia-mode.el index 486fedcbd3..8118c17f9f 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -338,7 +338,7 @@ partial match for LaTeX completion, or `nil' when not applicable." "try" "catch" "return" "local" "function" "macro" "finally" "break" "continue" "global" "where" "module" "using" "import" "export" "const" "let" "do" - "baremodule" + "baremodule" "public" ;; "importall" ;; deprecated in 0.7 ;; "immutable" "type" "bitstype" "abstract" "typealias" ;; removed in 1.0 "abstract type" "primitive type" "struct" "mutable struct") @@ -500,9 +500,9 @@ a keyword if used as a field name, X.word, or quoted, :word." (ignore-errors (backward-char)))) (defun julia-following-import-export-using () - "If the current line follows an `export` or `import` keyword -with valid syntax, return the position of the keyword, otherwise -`nil`. Works by stepping backwards through comma-separated + "If the current line follows an `export`, `import`, `using`, or +`public` keyword with valid syntax, return the position of the keyword, +otherwise `nil`. Works by stepping backwards through comma-separated symbol, gives up when this is not true." ;; Implementation accepts a single Module: right after the keyword, and saves ;; the module name for future use, but does not enforce that `export` has no @@ -514,7 +514,7 @@ symbol, gives up when this is not true." (while (and (not done) (< (point-min) (point))) (julia-safe-backward-sexp) (cond - ((looking-at (regexp-opt (list "import" "export" "using"))) + ((looking-at (regexp-opt (list "import" "export" "using" "public"))) (setf done (point))) ((looking-at (rx (group (* (or word (syntax symbol)))) (0+ space) ":")) (if module