[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 9ca9a0caa7 082/253: Highlight identifiers contai
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 9ca9a0caa7 082/253: Highlight identifiers containing underscore |
Date: |
Sat, 29 Jan 2022 08:28:44 -0500 (EST) |
branch: elpa/raku-mode
commit 9ca9a0caa7bd2363cb200c84c1546c2eda4b1664
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Highlight identifiers containing underscore
---
perl6-font-lock.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 8c0c446517..0c77e320a2 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -177,7 +177,7 @@
(or (and (regex "[^[:digit:]@%$]")
(0+ (regex "[^\[\{\('\"[:space:]]")))
(and (any "@%$")
- (regex "[^.?^=[:alpha:]]")
+ (regex "[^.?^=_[:alpha:]]")
(0+ (regex "[^\[\{\('\"[:space:]]"))))
(opt "\)")
(1+ "\]")))
@@ -201,7 +201,10 @@
"AnyChar" "Positional" "Associative" "Ordering"
"KeyExtractor"
"Comparator" "OrderingPair" "IO" "KitchenSink" "Role" "Int"
"Rat" "Buf" "UInt" "Abstraction" "Numeric" "Real" "Nil"
"Mu")))
- (identifier . ,(rx alpha (0+ alnum) (0+ (any "-'") alpha (0+ alnum))))
+ (identifier . ,(rx (regex "[_[:alpha:]]")
+ (0+ (regex "[_[:alnum:]]"))
+ (0+ (any "-'")
+ (regex "[_[:alpha:]]") (0+ (regex
"[_[:alnum:]]")))))
(version . ,(rx "v" (1+ digit) (0+ "." (or "*" (1+ digit))) (opt "+")))
(number
. ,(rx
@@ -355,7 +358,7 @@ Takes arguments START and END which delimit the region to
propertize."
(funcall
(syntax-propertize-rules
;; [-'] between identifiers are symbol chars
- ((rx alnum (group (any "-'")) alpha)
+ ((rx (regex "[_[:alnum:]]") (group (any "-'")) (regex "[_[:alpha:]]"))
(1 "_"))
;; same for "::" around identifiers
((rx (or (and "::" symbol-start)
- [nongnu] elpa/raku-mode 3e55db2507 069/253: Avoid highlighting X::Foo as a metaoperator, (continued)
- [nongnu] elpa/raku-mode 3e55db2507 069/253: Avoid highlighting X::Foo as a metaoperator, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ae9843c53e 121/253: Actually save the syntax context with the font lock hint, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8643c07c42 108/253: Improve highlighting of postfix hyper operators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 3cf99d162f 088/253: Treat backslashes outside strings as punctuation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 81c13d03ea 174/253: Be even more verbose, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8e7d64a73f 025/253: Apply 'syntax-multiline to the whole term, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 3b781c2ded 042/253: Highlight version literals, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode bb7219afc4 043/253: Highlight autoquoted strings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 98e3cbfabf 053/253: Always use a limit with `looking-back', ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 024ef71927 064/253: Highlight type constraints, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9ca9a0caa7 082/253: Highlight identifiers containing underscore,
ELPA Syncer <=
- [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