                                   nil)))
 
 (defun haml-highlight-textile-filter-block (limit)
-  "Highlight Textile inside ':textile' filter block.
-
-Note that the results are not perfect, since textile-mode expects
-certain constructs such as 'h1.' to be at the beginning of a line,
-and indented haml filter blocks always have leading whitespace.
-
-For this to work, 'textile-mode.el' must be available."
+  "If a :textile filter is found within LIMIT, highlight it.
+
+This requires that `textile-mode' be available.
+
+Note that the results are not perfect, since `textile-mode' expects
+certain constructs such as \"h1.\" to be at the beginning of a line,
+and indented Haml filters always have leading whitespace."
   (if (boundp 'textile-font-lock-keywords)
       (haml-fontify-filter-region "textile" limit textile-font-lock-keywords nil nil)))
 
 (defun haml-highlight-markdown-filter-block (limit)
-  "Highlight Markdown inside ':markdown' filter block.
-
-For this to work, 'markdown-mode.el' must be available."
+  "If a :markdown filter is found within LIMIT, highlight it.
+
+This requires that `markdown-mode' be available."
   (if (boundp 'markdown-mode-font-lock-keywords)
       (haml-fontify-filter-region "markdown" limit
                                   markdown-mode-font-lock-keywords

(defconst haml-comment-re "^ *\\(?:-\\#\\|/\\)")

(defun haml-fontify-region (beg end keywords syntax-table syntactic-keywords)
  (save-excursion
    (save-match-data
      (let ((font-lock-keywords keywords)

                                       fontify-region-args)))))

(defun haml-highlight-ruby-filter-block (limit)
  "If a :ruby filter is found within LIMIT, highlight it."
  (haml-handle-filter "ruby" limit 'haml-fontify-region-as-ruby))

(defun haml-highlight-css-filter-block (limit)
  "If a :css filter is found within LIMIT, highlight it.

This requires that `css-mode' is available.
`css-mode' is included with Emacs 23."
  (if (boundp 'css-font-lock-keywords)
      (haml-fontify-filter-region "css" limit css-font-lock-keywords nil nil)))

(defun haml-highlight-js-filter-block (limit)
  "If a :javascript filter is found within LIMIT, highlight it.

This requires that Karl Landström's \"javascript.el\" be available."
  (if (boundp 'js-font-lock-keywords-3)
      (haml-fontify-filter-region "javascript"
                                  limit
