[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode a17f9e8 066/496: Rename predicate functions ('?
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode a17f9e8 066/496: Rename predicate functions ('?' -> -p) |
Date: |
Sun, 29 Aug 2021 11:33:09 -0400 (EDT) |
branch: elpa/swift-mode
commit a17f9e8db9102e6d25f1a0754d66679d7a6b1ac6
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@me.com>
Rename predicate functions ('?' -> -p)
---
swift-mode.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/swift-mode.el b/swift-mode.el
index 7eefb8c..e62ff1a 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -57,7 +57,7 @@
"Return the paren level at point."
(nth 0 (syntax-ppss)))
-(defun swift-indent--in-str-or-cmnt? ()
+(defun swift-indent--in-str-or-cmnt-p ()
"Non-nil if point is in a string or comment."
(nth 8 (syntax-ppss)))
@@ -79,7 +79,7 @@
(skip-chars-backward "[:space:]\n")
(when (looking-back "\\*/")
(backward-char))
- (when (swift-indent--in-str-or-cmnt?)
+ (when (swift-indent--in-str-or-cmnt-p)
(swift-indent--rewind-past-str-cmnt))
(when (/= starting (point))
(swift-indent--rewind-irrelevant))))
@@ -96,7 +96,7 @@
(backward-word 1))
(current-column))))
-(defun swift-indent--at-enum-case? ()
+(defun swift-indent--at-enum-case-p ()
"Non-nil if point is at a case keyword at the top-level of an enum
declaration."
(save-excursion
(back-to-indentation)
@@ -156,7 +156,7 @@ Returns the column number as an integer."
(back-to-indentation)
;; Point is now at the beginning of the current line
(cond
- ((swift-indent--at-enum-case?)
+ ((swift-indent--at-enum-case-p)
baseline)
;; Cases are indented to the same level as the enclosing switch
;; statement, plus a user-customisable offset.
- [nongnu] elpa/swift-mode 6546ad5 040/496: Fix auto-mode-alist regex, (continued)
- [nongnu] elpa/swift-mode 6546ad5 040/496: Fix auto-mode-alist regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 760710c 031/496: fixup! Update readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode bf224ad 049/496: Organize links, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e46584a 054/496: Add @bbatsov to contributors in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5adb37d 070/496: More indentation tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 34be010 074/496: Update features in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 6553249 062/496: Rename predicate (add question mark), ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ff32221 068/496: Add font lock tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5f97c99 060/496: Add tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c3a0a66 065/496: Fix custom variable types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a17f9e8 066/496: Rename predicate functions ('?' -> -p),
ELPA Syncer <=
- [nongnu] elpa/swift-mode 8dc7eb9 078/496: Clean up after pull request, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 98b627a 075/496: Add @ap4y to contributors, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 812b4f6 084/496: Remove redundant hook definition, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8fc94c7 097/496: Merge pull request #25 from ap4y/smie_indentation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 889586c 102/496: Merge pull request #28 from ap4y/highlight_interpolation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0fcf3ab 115/496: Restructure test for multi-line hash in method call to test against case, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b0f5d13 113/496: Make commas non sticky, fixes indentation issues with optionals and, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d77b2df 122/496: Enable nested flag 'n' for C-style multi-line comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b43c1e2 129/496: Merge pull request #38 from ap4y/fix_36, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a028f68 127/496: Add "_" to the allowed symbols in string interpolation expression, ELPA Syncer, 2021/08/29