     ;; Attribute selectors (e.g. p[foo=bar])
     ("\\[\\([^]=]+\\)" (1 font-lock-variable-name-face)
      ("[~|$^*]?=\\([^]=]+\\)" nil nil (1 font-lock-string-face)))))
+
+(defconst sass-syntax-table
+  (let ((st (make-syntax-table)))
+    (modify-syntax-entry ?- "w" st)
+    st))
 
 (defconst sass-font-lock-keywords
   '((sass-highlight-line 1 nil nil t)))


;; Font lock

(defconst sass-selector-syntax-table
  (let ((st (make-syntax-table)))
    (modify-syntax-entry ?- "w" st)
    st))

(defconst sass-selector-font-lock-keywords
  '(("&"       0 font-lock-constant-face)
    ("\\.\\w+" 0 font-lock-type-face)

;;;###autoload
(define-derived-mode sass-mode haml-mode "Sass"
  "Major mode for editing Sass files."
  (set-syntax-table sass-syntax-table)
  (setq font-lock-extend-region-functions
        '(font-lock-extend-region-wholelines font-lock-extend-region-multiline))
  (setq font-lock-multiline nil)
