Skip to content

Commit 3823931

Browse files
authored
Merge pull request #217 from emmt/master
Add `public` keyword
2 parents 709c434 + 115ba2c commit 3823931

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

julia-mode.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ partial match for LaTeX completion, or `nil' when not applicable."
338338
"try" "catch" "return" "local" "function" "macro"
339339
"finally" "break" "continue" "global" "where"
340340
"module" "using" "import" "export" "const" "let" "do"
341-
"baremodule"
341+
"baremodule" "public"
342342
;; "importall" ;; deprecated in 0.7
343343
;; "immutable" "type" "bitstype" "abstract" "typealias" ;; removed in 1.0
344344
"abstract type" "primitive type" "struct" "mutable struct")
@@ -500,9 +500,9 @@ a keyword if used as a field name, X.word, or quoted, :word."
500500
(ignore-errors (backward-char))))
501501

502502
(defun julia-following-import-export-using ()
503-
"If the current line follows an `export` or `import` keyword
504-
with valid syntax, return the position of the keyword, otherwise
505-
`nil`. Works by stepping backwards through comma-separated
503+
"If the current line follows an `export`, `import`, `using`, or
504+
`public` keyword with valid syntax, return the position of the keyword,
505+
otherwise `nil`. Works by stepping backwards through comma-separated
506506
symbol, gives up when this is not true."
507507
;; Implementation accepts a single Module: right after the keyword, and saves
508508
;; 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."
514514
(while (and (not done) (< (point-min) (point)))
515515
(julia-safe-backward-sexp)
516516
(cond
517-
((looking-at (regexp-opt (list "import" "export" "using")))
517+
((looking-at (regexp-opt (list "import" "export" "using" "public")))
518518
(setf done (point)))
519519
((looking-at (rx (group (* (or word (syntax symbol)))) (0+ space) ":"))
520520
(if module

0 commit comments

Comments
 (0)