[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode c5f3d072e5 120/253: Don't highlight string delim
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode c5f3d072e5 120/253: Don't highlight string delimiters inside comments |
Date: |
Sat, 29 Jan 2022 08:28:47 -0500 (EST) |
branch: elpa/raku-mode
commit c5f3d072e5b5e9b445064d8bf4295d8a04aaaba7
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Don't highlight string delimiters inside comments
---
perl6-font-lock.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 124cf6eb33..44231fd244 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -531,6 +531,12 @@ LIMIT can be used to bound the search."
(defun perl6-match-metaoperator (limit)
(perl6-match-property 'perl6-metaoperator nil limit))
+(defun perl6-match-string-delimiter (limit)
+ (perl6-search-when
+ (perl6-rx (or (syntax string-quote) (syntax string-delimiter)))
+ (lambda () (not (eq (perl6-syntax-context) `comment)))
+ limit))
+
(defconst perl6-font-lock-keywords
`(
;; (-) R=> [*] X~ »+«
@@ -640,7 +646,7 @@ LIMIT can be used to bound the search."
(2 'perl6-number-addition)
(3 'perl6-number))
;; highlight string delimiters as operators
- (,(perl6-rx (or (syntax string-quote) (syntax string-delimiter)))
+ (perl6-match-string-delimiter
0 'perl6-operator t))
"Font lock keywords for Perl 6.")
- [nongnu] elpa/raku-mode c93daf2353 096/253: Avoid highlighting X::Foo and X:: as cross-metaoperators, (continued)
- [nongnu] elpa/raku-mode c93daf2353 096/253: Avoid highlighting X::Foo and X:: as cross-metaoperators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 94ba374818 117/253: Realign code, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e4a86350be 111/253: Fix tests in light of recent changes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9ca2944f8f 100/253: Highlight :!foo correctly, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 1d2f63b715 083/253: Highlight [RSXZ] on their own, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 7e60f137ce 095/253: Fix highlighting of some reduce ops, like [<], ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c91c403320 123/253: Fix highlighting of infix:<<lt>> and friends, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 155abadb6a 124/253: Improve highlighting of numbers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 1277ec749e 097/253: Fix highlighting of words in identifers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d8c1ae4d87 089/253: Move context-checking into a function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c5f3d072e5 120/253: Don't highlight string delimiters inside comments,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 19f4243934 125/253: Remove unnecessary check for syntactic context, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6c97f87fd8 135/253: Correctly highlight ::*Foo::Bar, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 309720c98a 148/253: correct indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c0b40f2ad5 140/253: Correctly highlight custom sub/grammar/etc names that clash with keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 89d6145859 149/253: use proper name for a multi sub or method, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a594f53e09 141/253: Highlight with/orwith/without, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a0cd586520 170/253: Following this advice http://stackoverflow.com/questions/26108655/error-updating-emacs-packages-failed-to-download-gnu-archive, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4a018be623 172/253: Adds BagHash to check again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 992d8af9de 164/253: add test for private methods, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 27b90214e3 211/253: Auto insert skeletons., ELPA Syncer, 2022/01/29