emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dart-mode 04fcd64 190/192: Treat angle brackets as puncuta


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 04fcd64 190/192: Treat angle brackets as puncutation syntax instead of symbol syntax
Date: Sun, 29 Aug 2021 11:02:15 -0400 (EDT)

branch: elpa/dart-mode
commit 04fcd649f19d49390079fbf2920a10bf37f6a634
Author: Brady Trainor <mail@bradyt.net>
Commit: Brady Trainor <mail@bradyt.net>

    Treat angle brackets as puncutation syntax instead of symbol syntax
    
    When using for example dabbrev-expand completion, counting angle
    brackets as symbols leads to undesirable behavior.
    
    Eventually, we might treat it as paren syntax, but we'd then have to
    take care to not treat it as paren syntax when they appear as
    operators, like in `2 < 3`.
    
    Treating as punctuation syntax should be a good compromise and
    improvement for now.
---
 dart-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dart-mode.el b/dart-mode.el
index bdd8b2f..efe5892 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -607,6 +607,8 @@ Key bindings:
   (modify-syntax-entry ?*  ". 23")
   (modify-syntax-entry ?\n "> b")
   (modify-syntax-entry ?\' "\"")
+  (modify-syntax-entry ?\> ".")
+  (modify-syntax-entry ?\< ".")
   (setq-local electric-indent-chars '(?\n ?\) ?\] ?\}))
   (setq-local comment-start "//")
   (setq-local comment-end "")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]