[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode fbcb363 315/459: Make sure attributes are n
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode fbcb363 315/459: Make sure attributes are not arrays and new has whitespace |
Date: |
Sun, 22 Aug 2021 13:59:52 -0400 (EDT) |
branch: externals/csharp-mode
commit fbcb363bbf23605b74bc5483551ca579b3048613
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>
Make sure attributes are not arrays and new has whitespace
Attributes don't end with a semi, so the vsemi should not be added if the
line
is followed by a real semi, as in the array subscript notation:
Fentry get_fentry (string name) {
foreach (Fentry f in fentry_table) {
if (name == f.name)
return fentry_table[i];
return null; <-- indented improperly
}
}
Fentry get_fentry (string name) {
foreach (Fentry f in fentry_table) {
if (name == f.name)
return fentry_table[i];
return null; <-- indented properly after this commit
}
}
Also, added whitespace around 'new' in the object inits so the token isn't
seen
as a separate token inside other tokens.
---
csharp-mode.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 27552c9..8ebc771 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -201,7 +201,8 @@
(eq (char-before) ?\])
(save-excursion
(c-backward-sexp)
- (looking-at "\\[")))
+ (looking-at "\\["))
+ (not (eq (char-after) ?\;)))
(and
;; Heuristics to find object initializers
(save-excursion
@@ -211,7 +212,7 @@
(save-excursion
;; 'new' should be part of the line
(beginning-of-line)
- (looking-at ".*new.*"))
+ (looking-at ".*\\s * new\\s *.*"))
;; Line should not already be terminated
(not (eq (char-after) ?\;)))))
- [elpa] externals/csharp-mode 82bcec9 329/459: Add missing LinQ keywords, (continued)
- [elpa] externals/csharp-mode 82bcec9 329/459: Add missing LinQ keywords, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 91c0f3c 330/459: Extract type matcher into defconst, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 098aba3 334/459: Fix improper handling of "new" in buffers., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fa2e596 348/459: Update README.org, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 61bf8e5 352/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2fe22ec 363/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a6caa85 369/459: xUnit failures: Handle actual/expected output before stack-trace., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 134eeb6 289/459: Complete rework, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bd881cd 303/459: Add a little better heuristics to vsemi-p, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 37f2441 313/459: Add 'nameof' and 'is' to 'other kwds', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fbcb363 315/459: Make sure attributes are not arrays and new has whitespace,
ELPA Syncer <=
- [elpa] externals/csharp-mode c7bdaeb 320/459: Fix string fontification on emacs 27.1, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3846c49 333/459: Move regexes and add eval-and-compile, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9fa77ac 336/459: Use 'c-default-style' instead of 'c-set-style', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 352d90e 337/459: Set c-default-style globally, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 71b833d 342/459: Add fontification for nameof and catch with only type, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 53e9e05 343/459: Merge pull request #188 from josteink/new-fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1d02407 344/459: Fix annoyance: Rename csharp-menu to csharp-mode-menu., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode aa57925 347/459: Add badges to README, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7741196 349/459: Merge pull request #195 from jcs-PR/badge, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7f39946 351/459: Create build.yml, ELPA Syncer, 2021/08/22