[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 1c122f1 328/352: Fix multiple type face highlig
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 1c122f1 328/352: Fix multiple type face highlighting. Add tests. (#110) |
Date: |
Sun, 29 Aug 2021 11:23:12 -0400 (EDT) |
branch: elpa/julia-mode
commit 1c122f1dff8dd2674245b2ce5e43b62504864bfd
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: GitHub <noreply@github.com>
Fix multiple type face highlighting. Add tests. (#110)
---
julia-mode-tests.el | 8 ++++++++
julia-mode.el | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index 9187731..53a5f4f 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -498,6 +498,14 @@ end")
(julia--should-font-lock string 25 nil)
(julia--should-font-lock string 26 nil)))
+(ert-deftest julia--test-typeparams-font-lock ()
+ (let ((string "@with_kw struct Foo{A <: AbstractThingy, B <: Tuple}\n
bar::A\n baz::B\nend"))
+ (julia--should-font-lock string 30 font-lock-type-face) ; AbstractThingy
+ (julia--should-font-lock string 50 font-lock-type-face) ; Tuple
+ (julia--should-font-lock string 63 font-lock-type-face) ; A
+ (julia--should-font-lock string 74 font-lock-type-face) ; B
+ ))
+
;;; Movement
(ert-deftest julia--test-beginning-of-defun-assn-1 ()
"Point moves to beginning of single-line assignment function."
diff --git a/julia-mode.el b/julia-mode.el
index 57c2874..fb030ee 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -249,7 +249,7 @@
(rx "::" (0+ space) (group (1+ (or word (syntax symbol))))))
(defconst julia-subtype-regex
- (rx "<:" (0+ space) (group (1+ (or word (syntax symbol)))) (0+ space) (or
"\n" "{" "}" "end")))
+ (rx "<:" (0+ space) (group (1+ (or word (syntax symbol)))) (0+ space) (or
"\n" "{" "}" "end" ",")))
(defconst julia-macro-regex
(rx symbol-start (group "@" (1+ (or word (syntax symbol))))))
- [nongnu] elpa/julia-mode e22219f 266/352: Added another test., (continued)
- [nongnu] elpa/julia-mode e22219f 266/352: Added another test., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2486d1e 247/352: Replace {UTF8, ASCII, Byte}String with String, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d3366f4 250/352: Added using, fixed bugs, added tests., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0e3217f 243/352: Enable travis on emacs23, emacs24, emacs-snapshot., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c9d8ca6 265/352: Fix backslash character class., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 46d2469 272/352: Merge pull request #39 from rfourquet/rf/where, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode cb41ae0 303/352: Add unit tests for LaTeX substitution., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode df2ab77 319/352: test on Emacs25, simplify setup code (#95), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5238f9a 323/352: Increase lookback. (#98), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7de3b0c 330/352: Remove highlighting for :: and <:. (#112), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1c122f1 328/352: Fix multiple type face highlighting. Add tests. (#110),
ELPA Syncer <=
- [nongnu] elpa/julia-mode 6e9e60b 327/352: Fix forloop matching on == instead of = (#105), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ac22747 178/352: remove trailing ws from repo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c3d3e3a 182/352: Don't call parse-partial-sexp to find the last opening paren., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c45c786 335/352: Add more tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 549a7b4 341/352: Remove C_NULL from constants and add Cvoid, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 13a3c53 344/352: Merge branch 'master' into triple-quote-cmd, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ac7431c 174/352: Mark @ and ! as a symbol constituents, as suggested by @Clemens-H., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ac55340 175/352: Factoring out a types regex., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d96a08c 180/352: Refactoring julia-char-regex as an rx form., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 76d5d75 183/352: Optimising julia-at-keyword., ELPA Syncer, 2021/08/29