mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Get rid of the sample-font-lock stuff in haml- and sass-mode.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@431 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
6d15492e6c
commit
8d63b02d36
2 changed files with 1 additions and 11 deletions
|
@ -114,16 +114,11 @@
|
|||
(define-key haml-mode-map "\C-?" 'haml-electric-backspace)
|
||||
(define-key haml-mode-map "\C-j" 'newline-and-indent))
|
||||
|
||||
(defvar sample-font-lock-keywords
|
||||
'(("function \\(\\sw+\\)" (1 font-lock-function-name-face)))
|
||||
"Keyword highlighting specification for `sample-mode'.")
|
||||
|
||||
(define-derived-mode haml-mode fundamental-mode "Haml"
|
||||
"Simple mode to edit Haml.
|
||||
|
||||
\\{haml-mode-map}"
|
||||
(set (make-local-variable 'indent-line-function) 'haml-indent-line)
|
||||
(set (make-local-variable 'font-lock-defaults) '(sample-font-lock-keywords))
|
||||
(make-local-variable 'font-lock-defaults)
|
||||
(setq font-lock-defaults
|
||||
'((haml-font-lock-keywords-1)
|
||||
|
|
|
@ -81,16 +81,11 @@
|
|||
(define-key sass-mode-map "\C-?" 'sass-electric-backspace)
|
||||
(define-key sass-mode-map "\C-j" 'newline-and-indent))
|
||||
|
||||
(defvar sample-font-lock-keywords
|
||||
'(("function \\(\\sw+\\)" (1 font-lock-function-name-face)))
|
||||
"Keyword highlighting specification for `sample-mode'.")
|
||||
|
||||
(define-derived-mode sass-mode fundamental-mode "Sass"
|
||||
"Simple mode to edit Sass.
|
||||
|
||||
\\{sass-mode-map}"
|
||||
(set (make-local-variable 'indent-line-function) 'sass-indent-line)
|
||||
(set (make-local-variable 'font-lock-defaults) '(sample-font-lock-keywords)))
|
||||
(set (make-local-variable 'indent-line-function) 'sass-indent-line))
|
||||
|
||||
;; Indentation and electric keys
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue