Function: web-mode--indentless-attribute-p
web-mode--indentless-attribute-p is a natively compiled function
defined in web-mode.el.
Signature
(web-mode--indentless-attribute-p ATTR)
Documentation
Return t if ATTR is in web-mode-indentless-attributes.
Handles wildcards where '*' matches any suffix.
Source Code
;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
;; FLAGS: tag
;; (1)attrs (2)custom (4)slash-beg (8)slash-end (16)bracket-end (32)namespaced
;; FLAGS: attr
;; (1)custom-attr (2)engine-attr (4)spread-attr[jsx] (8)code-value
;; https://www.w3.org/TR/2012/WD-html-markup-20120329/syntax.html#attr-value-unquoted
;; STATES: attr
;; (0)nil (1)space (2)name (3)space-before (4)equal (5)space-after
;; (6)value-uq (7)value-sq (8)value-dq (9)value-bq : jsx attr={}
;; (10)value-block
(defun web-mode--indentless-attribute-p (attr)
"Return t if ATTR is in `web-mode-indentless-attributes'.
Handles wildcards where '*' matches any suffix."
(let ((found nil))
(dolist (pattern web-mode-indentless-attributes found)
(if (string-suffix-p "*" pattern)
(when (string-prefix-p (substring pattern 0 -1) attr)
(setq found t))
(when (string= pattern attr)
(setq found t))))))