Skip to content

Commit

Permalink
Fix edraw-color-*-matched-color-info returning invalid value
Browse files Browse the repository at this point in the history
  • Loading branch information
misohena committed Feb 15, 2025
1 parent 6774965 commit ec46e32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions edraw-color.el
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ Signals an error if there is a syntax or other problem, never returns nil."
(edraw-color-from-emacs-color-name
(match-string-no-properties 2 string))
(error "Invalid color name"))
:syntax 'emacs-color-name)))))
:syntax 'emacs-color-name))
(t (error "Invalid match data")))))
(nconc
color-info
(list :begin beg :end end :syntax-system 'emacs))))
Expand Down Expand Up @@ -1125,7 +1126,8 @@ Signals an error if there is a syntax or other problem, never returns nil."
(match-string-no-properties 3 string)
(match-string-no-properties 4 string))
;; Just to be sure
(error "Failed to edraw-color-css-call-function"))))))
(error "Failed to edraw-color-css-call-function")))
(t (error "Invalid match data")))))
(nconc
color-info
(list :begin beg :end end :syntax-system 'css))))
Expand Down

0 comments on commit ec46e32

Please sign in to comment.