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

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

[nongnu] elpa/web-mode 82847071ce: off by one fix


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode 82847071ce: off by one fix
Date: Mon, 25 Dec 2023 10:00:39 -0500 (EST)

branch: elpa/web-mode
commit 82847071ce93293bdb7945db08d970f13fd883cf
Author: fxbois <fxbois@gmail.com>
Commit: fxbois <fxbois@gmail.com>

    off by one fix
    
    #1294
---
 issues/1294.html | 11 +++++++++++
 web-mode.el      | 12 ++++++------
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/issues/1294.html b/issues/1294.html
new file mode 100644
index 0000000000..2d363fe888
--- /dev/null
+++ b/issues/1294.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <title>Test</title>
+  </head>
+  <body>
+    <h1>Hello, World!</h1>
+    <p>Paragraph</p>
+  </body>
+</html>
diff --git a/web-mode.el b/web-mode.el
index 91e9ff866b..99cae4b363 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -2,7 +2,7 @@
 
 ;; Copyright 2011-2024 François-Xavier Bois
 
-;; Version: 17.3.16
+;; Version: 17.3.17
 ;; Author: François-Xavier Bois
 ;; Maintainer: François-Xavier Bois <fxbois@gmail.com>
 ;; Package-Requires: ((emacs "23.1"))
@@ -23,7 +23,7 @@
 
 ;;---- CONSTS 
------------------------------------------------------------------
 
-(defconst web-mode-version "17.3.16"
+(defconst web-mode-version "17.3.17"
   "Web Mode version.")
 
 ;;---- GROUPS 
------------------------------------------------------------------
@@ -938,13 +938,13 @@ Must be used in conjunction with 
web-mode-enable-block-face."
         'syntax-table)
   "Text properties used for code regions/tokens and html nodes.")
 
-(defvar web-mode-start-tag-regexp "<\\([[:alnum:].:_-]*\\|>\\)"
+(defvar web-mode-start-tag-regexp "<\\([[:alnum:].:_-]+\\|>\\)"
   "Regular expression for HTML/XML start tag.")
 
-(defvar web-mode-tag-regexp "</?\\([[:alnum:].:_-]*\\)"
+(defvar web-mode-tag-regexp "</?\\([[:alnum:].:_-]+\\)"
   "Regular expression for HTML/XML tag.")
 
-(defvar web-mode-dom-regexp 
"<\\(/?>\\|/?[[:alnum:].:_-]*\\|!--\\|!\\[CDATA\\[\\|!doctype\\|!DOCTYPE\\|\?xml\\)")
+(defvar web-mode-dom-regexp 
"<\\(/?>\\|/?[[:alnum:].:_-]+\\|!--\\|!\\[CDATA\\[\\|!doctype\\|!DOCTYPE\\|\?xml\\)")
 
 (defvar web-mode-whitespaces-regexp
   "^[ \t]\\{2,\\}$\\| \t\\|\t \\|[ \t]+$\\|^[ \n\t]+\\'\\|^[ \t]?[\n]\\{2,\\}"
@@ -5497,7 +5497,7 @@ Also return non-nil if it is the command 
`self-insert-command' is remapped to."
               (setq flags (logior flags 2)))
              ;;((string-match-p ":" tname)
              ;; (setq flags (logior flags 32)))
-             ((string-match-p "[.:]" tname)
+             ((string-match-p "[._:]" tname)
               (setq flags (logior flags 32)))
              )
            (cond



reply via email to

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