mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Merge branch 'stable'
This commit is contained in:
commit
b597927bed
3 changed files with 2 additions and 1 deletions
|
@ -113,6 +113,7 @@ text nested beneath them.")
|
||||||
(define-key map "\C-C\C-k" 'haml-kill-line-and-indent)
|
(define-key map "\C-C\C-k" 'haml-kill-line-and-indent)
|
||||||
map))
|
map))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(define-derived-mode haml-mode fundamental-mode "Haml"
|
(define-derived-mode haml-mode fundamental-mode "Haml"
|
||||||
"Major mode for editing Haml files.
|
"Major mode for editing Haml files.
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,7 @@ text nested beneath them.")
|
||||||
|
|
||||||
;; Mode setup
|
;; Mode setup
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(define-derived-mode sass-mode haml-mode "Sass"
|
(define-derived-mode sass-mode haml-mode "Sass"
|
||||||
"Major mode for editing Sass files."
|
"Major mode for editing Sass files."
|
||||||
(set (make-local-variable 'haml-indent-function) 'sass-indent-p)
|
(set (make-local-variable 'haml-indent-function) 'sass-indent-p)
|
||||||
|
|
|
@ -148,7 +148,6 @@ module Haml
|
||||||
output += haml_attributes if attributes.length > 0
|
output += haml_attributes if attributes.length > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
output += "/" if children.length == 0
|
|
||||||
output += "\n"
|
output += "\n"
|
||||||
|
|
||||||
self.children.each do |child|
|
self.children.each do |child|
|
||||||
|
|
Loading…
Add table
Reference in a new issue