[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode c2105da136 131/253: Better code formatting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode c2105da136 131/253: Better code formatting |
Date: |
Sat, 29 Jan 2022 08:28:48 -0500 (EST) |
branch: elpa/raku-mode
commit c2105da136e12ce85f5c2ad7e4fc24cd5521a141
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Better code formatting
---
perl6-font-lock.el | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index f1fd380d80..12acf7c5c3 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -385,24 +385,25 @@ OPEN-ANGLES is the opening delimiter (e.g. \"«\" or
\"<<\")."
(close-angle (matching-paren open-angle))
(quote-beg (- (point) angle-length))
(line-beg (point-at-bol)))
- (unless (or (looking-at "[-=]")
- (looking-back (rx-to-string `(and (char "+~=!")
,open-angle)) 2))
- (when (or (or (not (looking-at "[\s\n]"))
- (not (looking-back (rx-to-string `(and (char "\s\n")
,open-angle)) 2)))
- (looking-at (rx-to-string `(and ,open-angle (1+ (char
"\s\n")) ,close-angle)))
- (looking-back (rx-to-string `(and "=" (1+ space)
,open-angle)) line-beg)
- (looking-back (rx-to-string `(and "\(" (0+ space)
,open-angle)) line-beg)
- (or (looking-at "\s*$")
- (looking-back (rx-to-string `(and line-start (0+ space)
,open-angle)) line-beg))
- (looking-back (rx-to-string `(and symbol-start (or "enum"
"for" "any" "all" "none")
- (0+ space) (opt "\)") (0+ space)
,open-angle)) line-beg))
+ (when
+ (and (not (or (looking-at "[-=]")
+ (looking-back (rx-to-string `(and (char "+~=!")
,open-angle)) 2)))
+ (or (not (looking-at "[\s\n]"))
+ (not (looking-back (rx-to-string `(and (char "\s\n")
,open-angle)) 2))
+ (looking-at (rx-to-string `(and ,open-angle (1+ (char
"\s\n")) ,close-angle)))
+ (looking-back (rx-to-string `(and "=" (1+ space)
,open-angle)) line-beg)
+ (looking-back (rx-to-string `(and "\(" (0+ space)
,open-angle)) line-beg)
+ (looking-at "\s*$")
+ (looking-back (rx-to-string `(and line-start (0+ space)
,open-angle)) line-beg)
+ (looking-back (rx-to-string `(and symbol-start (or "enum"
"for" "any" "all" "none")
+ (0+ space) (opt "\)") (0+
space) ,open-angle)) line-beg)))
(put-text-property quote-beg (1+ quote-beg)
'syntax-table (string-to-syntax "|"))
(perl6-forward-brackets open-angle close-angle angle-length)
(let ((quote-end (- (point) 1)))
(put-text-property quote-beg quote-end 'syntax-multiline t)
(put-text-property quote-end (1+ quote-end)
- 'syntax-table (string-to-syntax "|"))))))))
+ 'syntax-table (string-to-syntax "|")))))))
(defun perl6-syntax-propertize-backslash ()
(when (eq (perl6-syntax-context) nil)
- [nongnu] elpa/raku-mode 298b6bb51c 156/253: add a test file for aiding regex development, (continued)
- [nongnu] elpa/raku-mode 298b6bb51c 156/253: add a test file for aiding regex development, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 85ff9ecd0e 205/253: Library rename from perl6-mode to raku-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f0b6adcb74 239/253: Add hanging hash assignment to smie test file, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 3f33ca3db8 243/253: Merge pull request #48 from RomanHargrave/fix-smie-hanging-indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ef229addc0 250/253: Update CHANGELOG.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6f3c29a29c 004/253: Add back the filename constraint, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 7141debae2 101/253: Highlight ':' twigil, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 33e699c109 087/253: More conservative reduce-operator highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a2cc73f0d8 130/253: Improve matching of '«' and '<' strings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 86c5f989e2 129/253: Remove redundant code, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c2105da136 131/253: Better code formatting,
ELPA Syncer <=
- [nongnu] elpa/raku-mode e7a19cf759 176/253: Changing back to my repo, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 47cda8e430 163/253: add optional leading bang for private method names, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode bc61245db1 192/253: Better region handling, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6fc7de3a02 180/253: recognize a "state" variable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 977b14a7c1 253/253: Fix flycheck Raku reference, ELPA Syncer, 2022/01/29