emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode 3823931eec 2/3: Merge pull request #217 from em


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 3823931eec 2/3: Merge pull request #217 from emmt/master
Date: Fri, 13 Dec 2024 13:00:58 -0500 (EST)

branch: elpa/julia-mode
commit 3823931eec648bf8637db16eca38fee41b5392e9
Merge: 709c43410f 115ba2c0fa
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #217 from emmt/master
    
    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]