Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Emacs 26.x version #23

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename beg-tag
jcs090218 committed Mar 29, 2021
commit 15dd4fdb135d28048bf769010dc05325c65cbc3d
18 changes: 17 additions & 1 deletion origami-parsers.el
Original file line number Diff line number Diff line change
@@ -789,7 +789,23 @@ expressions."
(not (string-match-p ignored-tags-regex (car pos))))))
(build-nodes (content)
(rx-let
((beg-tag "<")
((beg-tag-2
(seq "<"
;; elements start with letter or _, don't match preamble
(any word "_")
(zero-or-more
(or
;; anything but closing tag or attribute
(not (any ">"
;; ignore self-closing tags
"/"
;; attribute values require their own matching
"\""))
;; attribute value
(seq "\""
(zero-or-more (not "\""))
"\"")))
">"))
(end-tag
(seq "</" (any word "_") (zero-or-more (not ">")) ">")))
;; no need to care for comments/CDATA, these pos are filtered by face