branch: elpa/dart-mode
commit 04fcd649f19d49390079fbf2920a10bf37f6a634
Author: Brady Trainor <[email protected]>
Commit: Brady Trainor <[email protected]>
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 "")