[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode b1b5cfde21 105/253: Add some comments to perl6-s
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode b1b5cfde21 105/253: Add some comments to perl6-syntax-propertize |
Date: |
Sat, 29 Jan 2022 08:28:46 -0500 (EST) |
branch: elpa/raku-mode
commit b1b5cfde21611fd518755a9701925a8fa30b2dcb
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Add some comments to perl6-syntax-propertize
---
perl6-font-lock.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 3752ca8eb8..c4e2a6d16d 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -410,24 +410,33 @@ Takes arguments START and END which delimit the region to
propertize."
(and identifier (group "::"))))
(1 "_")
(2 "_"))
+ ;; embedded comments, like #|{ ... }
((rx "#" (any "`|="))
(0 (ignore (with-syntax-table perl6-bracket-syntax-table
(perl6-syntax-propertize-delimiters "!" -2)))))
+ ;; regular end-of-line comments
((rx "#" (0+ not-newline))
(0 (ignore)))
+ ;; metaoperators like (-), R=>, [*], X~
((perl6-rx (or set-operator rsxz-operator reduce-operator))
(0 (ignore (perl6-add-font-lock-hint 'perl6-metaoperator 0))))
+ ;; angle-bracketed quoting construct
((rx (1+ (char "<«")))
(0 (ignore (perl6-syntax-propertize-angles (match-string 0)))))
+ ;; backslashes outside strings/comments are punctuation, not escapes
((rx "\\")
(0 (ignore (perl6-syntax-propertize-backslash))))
+ ;; unicode string quotes
((rx (any "‘「“"))
(0 (ignore (progn (backward-char)
(with-syntax-table perl6-string-delimiter-syntax-table
(perl6-syntax-propertize-delimiters "|"))))))
+ ;; sigils and twigils are prefix characters
((perl6-rx variable)
(1 ".p")
(2 ".p")
+ ;; go back if we match a package name (e.g. $?FOO::BAR), so the
+ ;; colons can be syntax-propertized above
(3 (ignore (goto-char (match-beginning 3))))))
start end)))
- [nongnu] elpa/raku-mode f9016c1d99 233/253: Fix qe comparator highlighting, (continued)
- [nongnu] elpa/raku-mode f9016c1d99 233/253: Fix qe comparator highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 095b8666e3 248/253: Bump version for PR #59, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 7496ad3a03 245/253: Merge pull request #49 from matiaslina/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 73c35c089b 241/253: Remove an unnecessary (progn) that I missed., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode eaac071f17 251/253: Correct PR merge date, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 03ade8f04d 071/253: Highlight all other kinds of numbers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9963ed20da 051/253: Use consistent Markdown headings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e22ed63495 072/253: Indentation change, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 95382a81fb 057/253: Merge pull request #1 from andreoss/indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode cdc3a0de70 086/253: Highlight contexualizers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode b1b5cfde21 105/253: Add some comments to perl6-syntax-propertize,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 69666bfb10 084/253: Don't highlight digits in identifiers as numbers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8f230b887f 152/253: remove user option per syohex's comment, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e7370bed3a 144/253: Fix bug overly eager highlighting of sub/macro/etc, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 298b6bb51c 156/253: add a test file for aiding regex development, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 85ff9ecd0e 205/253: Library rename from perl6-mode to raku-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f0b6adcb74 239/253: Add hanging hash assignment to smie test file, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 3f33ca3db8 243/253: Merge pull request #48 from RomanHargrave/fix-smie-hanging-indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ef229addc0 250/253: Update CHANGELOG.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6f3c29a29c 004/253: Add back the filename constraint, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 7141debae2 101/253: Highlight ':' twigil, ELPA Syncer, 2022/01/29