emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/textile-mode a6e0245434 2/3: Account for beginning/end of


From: ELPA Syncer
Subject: [nongnu] elpa/textile-mode a6e0245434 2/3: Account for beginning/end of line in "inline markup"
Date: Mon, 12 Feb 2024 13:01:35 -0500 (EST)

branch: elpa/textile-mode
commit a6e0245434b100eef3f4a4befca1906e115957ae
Author: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Commit: Konstantin Kharlamov <Hi-Angel@yandex.ru>

    Account for  beginning/end of line in "inline markup"
    
    Before this commit a _foo_ at the end or beginning of the buffer
    wouldn't be highlighted. Now it is.
    
    "inline markup" regexp influences "italic" and other markups.
---
 textile-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/textile-mode.el b/textile-mode.el
index ce968f8849..7ec2140492 100644
--- a/textile-mode.el
+++ b/textile-mode.el
@@ -103,11 +103,13 @@ non-matching parentheses"
 (defun textile-inline-markup-matcher (markup)
   "Return the matcher regexp for an inline markup"
   (concat
-   "\\W\\("
+   textile-re-nonword-start
+   "\\("
    markup
    "\\(?:\\w\\|\\w.*?\\w\\|[[{(].*?\\w\\)"
    markup
-   "\\)\\W"))
+   "\\)"
+   textile-re-nonword-end))
 
 (defun textile-inline-code-matcher (markup)
   "Return the matcher regexp for an inline code"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]