[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 623b5b559a 018/253: Syntaxify double colons arou
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 623b5b559a 018/253: Syntaxify double colons around identifiers as symbol chars |
Date: |
Sat, 29 Jan 2022 08:28:35 -0500 (EST) |
branch: elpa/raku-mode
commit 623b5b559ab923c9e3b68f95fad17e911f1c9055
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Syntaxify double colons around identifiers as symbol chars
This will help with thing-at-point in the future.
---
perl6-font-lock.el | 4 ++++
test/perl6-mode-test.el | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index fc7d979ffc..3383e77b04 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -235,6 +235,10 @@ Takes arguments START and END which delimit the region to
propertize."
;; [-'] between identifiers are symbol chars
((rx (any "A-Za-z") (group (any "-'")) (any "A-Za-z"))
(1 "_"))
+ ;; same for "::" around identifiers
+ ((rx (or (and "::" symbol-start)
+ (and symbol-end "::")))
+ (0 "_"))
; multiline comments
((rx "#`")
(0 (ignore (perl6-syntax-propertize-embedded-comment)))))
diff --git a/test/perl6-mode-test.el b/test/perl6-mode-test.el
index b8fc39be6f..2c9a268bc2 100644
--- a/test/perl6-mode-test.el
+++ b/test/perl6-mode-test.el
@@ -52,6 +52,11 @@ POS."
;;;; Font locking
+(ert-deftest perl6-syntax-propertize/colons-identifier ()
+ :tags '(syntax-table syntax-properties)
+ (perl6-test-with-temp-buffer "class Foo::Bar"
+ (should (eq (perl6-test-syntax-at 10) 'symbol))
+ (should (eq (perl6-test-syntax-at 11)
'symbol))))
(ert-deftest perl6-mode-syntax-table/fontify-dq-string ()
:tags '(fontification syntax-table)
- [nongnu] elpa/raku-mode bf687c66a9 195/253: Update README, (continued)
- [nongnu] elpa/raku-mode bf687c66a9 195/253: Update README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e79cb9067d 210/253: Merge pull request #27 from tmtvl/repl-syntax-highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 385ed1d54a 155/253: pull regexes up into documents variables, add index of classes, update regexes a bit (no longer show sub signatures), ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 759b21553f 189/253: Fix keybinds and menu, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 588dc4417b 166/253: add new files, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 26fc7115b5 215/253: Add information about the auto-insert skeletons to the README., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 44529c097f 221/253: Merge pull request #32 from widefox/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ac967de8a4 222/253: Fix #33: missed interpreter & mode autoloads, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 02bf289149 242/253: Merge pull request #45 from sumanstats/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0fc63c3ce1 001/253: Initial import, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 623b5b559a 018/253: Syntaxify double colons around identifiers as symbol chars,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 142ff3e928 030/253: Highlight variable package differently from variable name, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 127b125ab1 034/253: Use a smaller heading, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 75e4c4831d 022/253: Clean up the code for comment detection a bit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0d3485a324 027/253: Better highlighting angled quotes, and set operators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 7078ed08b4 033/253: font-lock-exit-face is not standard, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f9bf3f7689 037/253: Improve code layout a bit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6a4269e30b 005/253: Make sure the magic autoloads correctly, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0be377dba8 040/253: Place manual installation instructions last, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8f9d68dc38 047/253: Add note about find-file-at-point, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6cb23a3a64 058/253: Move indentation support into perl6-indent.el, ELPA Syncer, 2022/01/29