[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode b6410f9d4c 126/253: Fix highlighting of ::foo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode b6410f9d4c 126/253: Fix highlighting of ::foo |
Date: |
Sat, 29 Jan 2022 08:28:48 -0500 (EST) |
branch: elpa/raku-mode
commit b6410f9d4cd0c47c3bbc84823fdda0818d493ca7
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Fix highlighting of ::foo
---
perl6-font-lock.el | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 735d0325dc..5718411e27 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -114,15 +114,16 @@
(let ((body (cdr form)))
(rx-to-string `(and symbol-start ,@body symbol-end) 'no-group)))
- (let ((rx-identifier (rx (regex "[_[:alpha:]]")
- (0+ (regex "[_[:alnum:]]"))
- (0+ (any "-'")
- (regex "[_[:alpha:]]") (0+ (regex
"[_[:alnum:]]")))))
- (rx-metaoperator (rx (or (and (regex "[^[:digit:]@%$]")
- (0+ (regex "[^\[\{\('\"[:space:]]")))
- (and (any "@%$")
- (regex
"[^.?^=_[:alpha:]]\[\{\('\"[:space:]]")
- (0+ (regex "[^\[\{\('\"[:space:]]")))))))
+ (let ((rx-identifier (rx-to-string
+ `(and (regex "[_[:alpha:]]")
+ (0+ (regex "[_[:alnum:]]"))
+ (0+ (any "-'") (regex "[_[:alpha:]]") (0+ (regex
"[_[:alnum:]]"))))))
+ (rx-metaoperator (rx-to-string
+ `(or (and (regex "[^[:digit:]@%$]")
+ (0+ (regex "[^\[\{\('\"[:space:]]")))
+ (and (any "@%$")
+ (regex
"[^.?^=_[:alpha:]]\[\{\('\"[:space:]]")
+ (0+ (regex "[^\[\{\('\"[:space:]]")))))))
(defconst perl6-rx-constituents
`((symbol perl6-rx-symbol 0 nil)
(identifier . ,rx-identifier)
@@ -585,7 +586,7 @@ LIMIT can be used to bound the search."
;; low-level types (int, bool, complex, etc)
(,(perl6-rx (symbol (or low-type high-type))) 0 'perl6-type)
;; adverbs like :foo and :!bar
- (,(perl6-rx (group ":" (opt "!")) (group (symbol identifier)))
+ (,(perl6-rx (or bol (regex "[^:]")) (group ":" (opt "!")) (group (symbol
identifier)))
(1 'perl6-operator)
(2 'perl6-string))
;; div, and, eq...
- [nongnu] elpa/raku-mode a349f9a7ff 076/253: Also highlight labels after loop control statements, (continued)
- [nongnu] elpa/raku-mode a349f9a7ff 076/253: Also highlight labels after loop control statements, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 1eaa1452bc 067/253: More robust highlighting of set operators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9339de70ac 074/253: Highlight labels, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f376ce3cfa 035/253: Add MELPA badge, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d017e51bd4 062/253: Set 'face property, not 'font-lock-face, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode bb9f553d91 079/253: Highlight solitary colon (:) operator, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f3690a05d5 122/253: Fix highlighting of empty comment lines, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e11d5b76fe 104/253: Remove superfluous space from syntax descriptor, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 456d718152 116/253: Add comments to perl6-font-lock-keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 564cbfa7a2 119/253: Remove unnecessary 'let', ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode b6410f9d4c 126/253: Fix highlighting of ::foo,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 60966ea875 133/253: Highlight function composition operator, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 601f37ef15 136/253: Bool type was added., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 72f21d4a91 171/253: Just forcing reload to use change in cask, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e5ab8b0589 175/253: Reverting to original cask, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode cc28223bb7 182/253: add new name categories and other improvements, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 748d07ab7c 188/253: Add repl to perl6 major mode, ELPA Syncer, 2022/01/29
- [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