[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode e820b09 155/192: Regex catches dollar signs now
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode e820b09 155/192: Regex catches dollar signs now |
Date: |
Sun, 29 Aug 2021 11:02:08 -0400 (EDT) |
branch: elpa/dart-mode
commit e820b090c16588baaab475ede1421cf7ff1b5f35
Author: Brady Trainor <mail@bradyt.com>
Commit: Brady Trainor <mail@bradyt.com>
Regex catches dollar signs now
Currently, $ has syntax of words, not symbols as _ does. To avoid
hard-coding on which syntax these have, we simply check for either of
word-start or symbol-start. That might not be a good fix, but it seems
to work for now.
---
dart-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index c40ea01..ab2f3c7 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -396,11 +396,11 @@ Returns nil if `dart-sdk-path' is nil."
digit)))))
(defun dart--identifier (&optional case)
- `(and (zero-or-one (or ?$ ?_))
- bow
+ `(and (or word-start symbol-start)
+ (zero-or-more (any ?$ ?_))
,(if case
case
- 'alnum)
+ 'alpha)
(zero-or-more (or ?$ ?_ alnum))))
(setq dart--metadata-re (rx ?@ (eval (dart--identifier))))
- [nongnu] elpa/dart-mode c568118 175/192: Move dart server code to a separate repo, (continued)
- [nongnu] elpa/dart-mode c568118 175/192: Move dart server code to a separate repo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ae8a28b 161/192: Follow conventions in font-lock levels, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 327b9aa 167/192: Use conventions in commentary, docstrings, defvar vs setq, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 31861e8 173/192: Add mixin keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 28ebbaf 176/192: Update tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ea60ffd 178/192: Move README back to markdown, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode bbeadaa 181/192: Reorganize some keyword fontification, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode d6afa8c 153/192: Fontify identifiers following declared identifiers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9b65aae 187/192: Add failing tests for fontification of factories and generic methods, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode a715dc6 177/192: Move license, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode e820b09 155/192: Regex catches dollar signs now,
ELPA Syncer <=
- [nongnu] elpa/dart-mode e5bd30d 184/192: Avoid false positives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9b1c871 001/192: Beginning of dart-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f86416b 035/192: Handle indentation in constructors with initializer lists., ELPA Syncer, 2021/08/29