[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ruby-end 4498561af6 19/91: Split all keywords to modifi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ruby-end 4498561af6 19/91: Split all keywords to modifiers and non-modifiers |
Date: |
Wed, 25 Jan 2023 19:58:25 -0500 (EST) |
branch: externals/ruby-end
commit 4498561af63061c3c8627e85273f41b8e2621277
Author: Roman Sokolov <sokolov.r.v@gmail.com>
Commit: Roman Sokolov <sokolov.r.v@gmail.com>
Split all keywords to modifiers and non-modifiers
According to ruby grammar [1] there are 4 statement modifiers, so
there is no need to prevent for all other keywords.
[1] -- http://web.njit.edu/all_topics/Prog_Lang_Docs/html/ruby/yacc.html
---
ruby-end.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/ruby-end.el b/ruby-end.el
index adcb03e4b6..d6c52c02c6 100644
--- a/ruby-end.el
+++ b/ruby-end.el
@@ -61,8 +61,8 @@
:type 'boolean
:group 'ruby)
-(defconst ruby-end-expand-postfix-statement-before-re
-
"\\(?:def\\|if\\|class\\|module\\|unless\\|case\\|while\\|until\\|for\\|begin\\)"
+(defconst ruby-end-expand-postfix-modifiers-before-re
+ "\\(?:if\\|unless\\|while\\)"
"Regular expression matching statements before point.")
(defconst ruby-end-expand-prefix-check-modifiers-re
@@ -73,8 +73,8 @@
"\\(?:^\\|\\s-+\\)"
"Prefix for regular expression")
-(defconst ruby-end-expand-block-before-re
- "\\(?:^\\|\\s-+\\)do"
+(defconst ruby-end-expand-keywords-before-re
+ "\\(?:^\\|\\s-+\\)\\(?:do\\|def\\|class\\|module\\|case\\|for\\|begin\\)"
"Regular expression matching blocks before point.")
@@ -110,17 +110,17 @@
(defun ruby-end-expand-p ()
"Checks if expansion (insertion of end) should be done."
- (let ((ruby-end-expand-statement-before-re
+ (let ((ruby-end-expand-statement-modifiers-before-re
(concat
(if ruby-end-check-statement-modifiers
ruby-end-expand-prefix-check-modifiers-re
ruby-end-expand-prefix-re)
- ruby-end-expand-postfix-statement-before-re)))
+ ruby-end-expand-postfix-modifiers-before-re)))
(and
(ruby-end-code-at-point-p)
(or
- (looking-back ruby-end-expand-statement-before-re)
- (looking-back ruby-end-expand-block-before-re))
+ (looking-back ruby-end-expand-statement-modifiers-before-re)
+ (looking-back ruby-end-expand-keywords-before-re))
(looking-at ruby-end-expand-after-re))))
(defun ruby-end-code-at-point-p ()
- [elpa] externals/ruby-end 06c6378903 29/91: Update ecukes., (continued)
- [elpa] externals/ruby-end 06c6378903 29/91: Update ecukes., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 47e5b92b8b 33/91: Autoformat using "cucumber --autoformat"., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 49354ca1a3 36/91: Add punctuation in doc., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end a7723ccdd2 38/91: These two are mixed up., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 91f3c3fc6e 40/91: Add option to expand on return., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 3b2794392a 03/91: Added necessary stuff for running Ecukes., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5f9a9721a5 02/91: Added skeleton., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end d00bb287d6 05/91: Adding some docs., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end d957d3313b 12/91: Split on more than one line., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end afd0459b11 11/91: When not expanding, fall back instead of assuming that space inserts a blank., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 4498561af6 19/91: Split all keywords to modifiers and non-modifiers,
ELPA Syncer <=
- [elpa] externals/ruby-end 53605d0e85 20/91: Make `ruby-end-check-statement-modifiers` t by default., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end b04994ba90 21/91: Bumping version., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 73d6c51ef8 46/91: Ignore elpa dir., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end ba01dd2550 56/91: Update to version v0.2.2., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 1604c3c406 64/91: Ecukes depends on Espuds by default., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end ca8b4dc0a6 62/91: Run tests on snapshot., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end ab84e909b3 69/91: Override ruby-end-insert-newline to t if RET is pressed, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 71b183a274 68/91: Run Ecukes tests in no win mode., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 0bd59d9eef 67/91: Add ert.el for Emacs-23., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end d6bb876c4f 63/91: Use package-file instead of package., ELPA Syncer, 2023/01/25