diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 77d862f1a17..ccbe04db1e8 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el @@ -6198,7 +6198,7 @@ vhdl-corresponding-begin (vhdl-first-word pos) "else\\|then\\|use" nil)) ;; "end component": - ((looking-at "component\\b[^_]") + ((looking-at "\\(component\\)\\b[^_]") (vector (buffer-substring (match-beginning 1) (match-end 1)) (vhdl-first-word pos)