[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 357a72be71 229/253: Fix syntax highlighting for
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 357a72be71 229/253: Fix syntax highlighting for code blocks in POD. |
Date: |
Sat, 29 Jan 2022 08:29:01 -0500 (EST) |
branch: elpa/raku-mode
commit 357a72be712468aa76471a83612ab91b2a119c89
Author: Tim Van den Langenbergh <tmt_vdl@gmx.com>
Commit: Tim Van den Langenbergh <tmt_vdl@gmx.com>
Fix syntax highlighting for code blocks in POD.
We call the raku-syntax-propertize function again over the code blocks that
we
remove the comment markup from to ensure comment blocks in the code blocks
are
correctly highlighted.
---
raku-font-lock.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/raku-font-lock.el b/raku-font-lock.el
index 6a5e95d0ef..b921411600 100644
--- a/raku-font-lock.el
+++ b/raku-font-lock.el
@@ -382,7 +382,8 @@ opening delimiter."
'syntax-table (string-to-syntax ">"))
(put-text-property (1- code-end) code-end
'syntax-table (string-to-syntax "<"))
- (remove-text-properties code-beg code-end '(syntax-multiline nil)))))
+ (remove-text-properties code-beg code-end '(syntax-multiline nil))
+ (raku-syntax-propertize code-beg code-end))))
(defun raku-syntax-propertize-pod-inline-code (limit)
"Add syntax properties to inline code blocks in POD."
@@ -399,7 +400,8 @@ opening delimiter."
'syntax-table (string-to-syntax ">"))
(put-text-property (point) (1+ (point))
'syntax-table (string-to-syntax "<"))
- (remove-text-properties code-beg (point) '(syntax-multiline nil))))))
+ (remove-text-properties code-beg (point) '(syntax-multiline nil))
+ (raku-syntax-propertize code-beg (point))))))
(defun raku-syntax-propertize-pod (limit)
"Add syntax properties to POD."
@@ -476,12 +478,12 @@ Takes arguments START and END which delimit the region to
propertize."
(and identifier (group "::"))))
(1 "_")
(2 "_"))
- ;; comments
- ((rx "#")
- (0 (ignore (raku-syntax-propertize-comment end))))
;; pod
((rx "=begin pod")
(0 (ignore (raku-syntax-propertize-pod end))))
+ ;; comments
+ ((rx "#")
+ (0 (ignore (raku-syntax-propertize-comment end))))
;; postfix hyper operators
((raku-rx (or identifier "]" ")") (group (or "ยป" ">>")))
(0 nil))
- [nongnu] elpa/raku-mode 5a7cc0d425 173/253: Let's see what's going on, (continued)
- [nongnu] elpa/raku-mode 5a7cc0d425 173/253: Let's see what's going on, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 2e622f86e0 202/253: Change perl6-repl command to run-perl6, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode bcdd53e9ec 201/253: Merge remote-tracking branch 'origin/master' into repl, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0be91cc76e 204/253: Fix cask instalation on travis-ci, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d62231e902 167/253: Merge branch 'my-branch' of https://github.com/tbrowder/perl6-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e53f3d4f94 194/253: Update README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f3256bb3fd 159/253: add some more test names, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 282dd2c9e1 199/253: detect '.raku' and '.rakumod' extensions, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode afad310b14 198/253: Remove 'paragraph-separate variable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 3ae6b19b24 235/253: Make keybindings more understandable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 357a72be71 229/253: Fix syntax highlighting for code blocks in POD.,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 43fd562825 227/253: Merge pull request #36 from matiaslina/dont-highlight-operators-in-variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 5f885f4961 177/253: There's no need to install this, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f6dcbaf9a4 190/253: Add raku exec path to customization group, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 3d43b91d82 209/253: Add syntax highlighting to REPL., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e0639c89a3 230/253: Merge pull request #35 from tmtvl/24-highlight-pod-the-same-as-comments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4ed7c06294 200/253: also detect '.rakutest' extension, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode b6a5535e27 219/253: Merge pull request #29 from tmtvl/auto-insert-skeletons, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8a6e17f174 234/253: Merge pull request #41 from anquegi/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6fa383e25f 003/253: More robust magic matching of Perl 6 code, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ce3ef00b82 026/253: Syntax propertize <quoted words>, ELPA Syncer, 2022/01/29