[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode e5bd30d 184/192: Avoid false positives
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode e5bd30d 184/192: Avoid false positives |
Date: |
Sun, 29 Aug 2021 11:02:14 -0400 (EDT) |
branch: elpa/dart-mode
commit e5bd30dba5588633d5cb4ea1ded7b4c7579cec8a
Author: Brady Trainor <mail@bradyt.net>
Commit: Brady Trainor <mail@bradyt.net>
Avoid false positives
---
dart-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dart-mode.el b/dart-mode.el
index 7ed7855..445ee00 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -280,7 +280,7 @@ matched."
(catch 'result
(let (beg end)
(while (re-search-forward
- (rx (group (eval (dart--identifier 'lower))) ?\() limit t)
+ (rx (and (not (any ?\.)) (group (eval (dart--identifier
'lower)))) ?\() limit t)
(setq beg (match-beginning 1))
(setq end (match-end 1))
(condition-case nil
@@ -291,6 +291,7 @@ matched."
(goto-char beg)
(back-to-indentation)
(when (and (= (current-column) 2)
+ (not (looking-at "return"))
(string-match-p
" " (buffer-substring-no-properties
(point) beg))
- [nongnu] elpa/dart-mode ae8a28b 161/192: Follow conventions in font-lock levels, (continued)
- [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, 2021/08/29
- [nongnu] elpa/dart-mode e5bd30d 184/192: Avoid false positives,
ELPA Syncer <=
- [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