Skip to content

Commit 0f3c15d

Browse files
committed
Tag and attribute names can have hyphens in them
1 parent 1c47278 commit 0f3c15d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pollen.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ For other licenses and consulting, please contact the author.")
2121
;; Syntax highlighting for Pollen Markup Mode
2222
(defvar pollen-font-lock-defaults nil "Font lock defaults for Pollen mode.")
2323

24-
(setq pollen-tag-name-regexp "\\(◊[[:alnum:]]+\\)")
25-
(setq pollen-attr-key-regexp "\\(['\|`][[:alnum:]]+\\):")
24+
(setq pollen-tag-name-regexp "\\(◊[[:alnum:]]+\\(\-[[:alnum:]]+\\)*\\)")
25+
(setq pollen-attr-key-regexp "\\(['\|`][[:alnum:]]+\\(\-[[:alnum:]]+\\)*\\):")
2626
(setq pollen-attr-string-regexp "\\[\.*\\(\".+\"\\)\\]")
2727
(setq pollen-lang-regexp "^#\.+$")
2828

0 commit comments

Comments
 (0)