[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 04b97c4 269/352: Merge pull request #37 from tp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 04b97c4 269/352: Merge pull request #37 from tpapp/fix-backslash |
Date: |
Sun, 29 Aug 2021 11:22:59 -0400 (EDT) |
branch: elpa/julia-mode
commit 04b97c4095e7efc0d1bee9feee66b6ca2f2cc68c
Merge: 9067194 e22219f
Author: Yichao Yu <yyc1992@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #37 from tpapp/fix-backslash
Fix backslash character class.
---
julia-mode-tests.el | 17 +++++++++++++++++
julia-mode.el | 1 +
2 files changed, 18 insertions(+)
diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index e813657..3a0c8dd 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -374,6 +374,18 @@ end"
end
end"))
+(ert-deftest julia--test-backslash-indent ()
+ "indentation for function(args...)"
+ (julia--should-indent
+ "(\)
+ 1
+ (:\)
+ 1"
+ "(\)
+1
+(:\)
+1"))
+
(ert-deftest julia--test-indent-keyword-paren ()
"indentation for ( following keywords"
"if( a>0 )
@@ -400,6 +412,11 @@ end")
(julia--should-font-lock
":a in keys(Dict(:a=>1))" 1 'julia-quoted-symbol-face))
+(ert-deftest julia--test-symbol-font-locking-after-backslash ()
+ "Even with a \ before the (, it is recognized as matching )."
+ (let ((string "function \\(a, b)"))
+ (julia--should-font-lock string (1- (length string)) nil)))
+
(defun julia--run-tests ()
(interactive)
(if (featurep 'ert)
diff --git a/julia-mode.el b/julia-mode.el
index 7842739..cd10242 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -116,6 +116,7 @@ This function provides equivalent functionality, but makes
no efforts to optimis
(modify-syntax-entry ?< "." table)
(modify-syntax-entry ?> "." table)
(modify-syntax-entry ?% "." table)
+ (modify-syntax-entry ?\\ "." table)
table)
"Syntax table for `julia-mode'.")
- [nongnu] elpa/julia-mode 5ee867e 211/352: Changed inferior-julia function in contrib/julia-mode.el to apply, (continued)
- [nongnu] elpa/julia-mode 5ee867e 211/352: Changed inferior-julia function in contrib/julia-mode.el to apply, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0c6673a 212/352: Changed input method for Julia Emacs buffer to TeX, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6781ef1 220/352: Fix #11673, bad indent after comments ending in =, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0526f2f 242/352: Fix spelling of 'delimiter', ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2b15d76 256/352: bol, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7802452 263/352: Merge pull request #35 from tpapp/fix-10, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9c36479 264/352: Merge pull request #36 from JuliaEditorSupport/jb/typekeywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode feb6e79 259/352: Merge pull request #31 from RalphAS/custom-lookback, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b24410f 279/352: Allow user to set multiple arguments to inferior julia, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 04b97c4 269/352: Merge pull request #37 from tpapp/fix-backslash,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 1f254f8 260/352: Fix indentation for anonymous functions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5812bc3 261/352: Added tests for parentheses following keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b99710c 251/352: `python-mode`-like paren-indent, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 483805b 257/352: Merge pull request #29 from nverno/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9f990bb 281/352: Handle string escapes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2ef6992 278/352: Fixed import export etc indentation at start of buffer. (#47), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 117b791 294/352: Replace `Associative` by `AbstractDict` (thanks to @tpapp), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dc21978 289/352: Merge pull request #63 from nverno/movement-functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 61e22f6 312/352: Merge pull request #90 from tpapp/tp/add-melpa-badge, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a174d0e 315/352: Fix indentation of generated elisp, ELPA Syncer, 2021/08/29