]> code.delx.au - gnu-emacs-elpa/blobdiff - company-css.el
Enable CSS and nxml back-ends for derived modes.
[gnu-emacs-elpa] / company-css.el
index 720a459ff3e1a2cc661fcb3e24e5a41582760d51..b2d4c6aea3432e73ac6835f8b289e87624bb5278 100644 (file)
@@ -2,7 +2,7 @@
 ;;
 ;; Copyright (C) 2009 Nikolaj Schumacher
 ;;
-;; This file is part of company 0.4.
+;; This file is part of company 0.4.3.
 ;;
 ;; This program is free software; you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License
@@ -276,7 +276,7 @@ Returns \"\" if no property found, but feasible at this position."
   (interactive (list 'interactive))
   (case command
     ('interactive (company-begin-backend 'company-css))
-    ('prefix (and (eq major-mode 'css-mode)
+    ('prefix (and (derived-mode-p 'css-mode)
                   (or (company-grab company-css-tag-regexp 1)
                       (company-grab company-css-pseudo-regexp 1)
                       (company-grab company-css-property-value-regexp 2)