summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-03-23 11:14:27 +0100
committerGravatar Tom Willemsen2011-03-23 11:14:27 +0100
commit0d342f0aee3f2f800e486c0051dabe718a7b2841 (patch)
tree1f55afabb8f4876dbe564f7ed5d8e573ddc78df3 /emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el
parentd4510153b17625a3dd2f1852cc6392fc26efecf6 (diff)
downloaddotfiles-0d342f0aee3f2f800e486c0051dabe718a7b2841.tar.gz
dotfiles-0d342f0aee3f2f800e486c0051dabe718a7b2841.zip
I don't like nxhtml
Diffstat (limited to 'emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el')
-rw-r--r--emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el36
1 files changed, 0 insertions, 36 deletions
diff --git a/emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el b/emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el
deleted file mode 100644
index 4e565ef..0000000
--- a/emacs.d/nxhtml/tests/in/emacswiki-erb-bug.el
+++ /dev/null
@@ -1,36 +0,0 @@
-;;; This file is from a link on EmacsWiki to http://paste.lisp.org/display/59495
-;;
-;; As far as I can see this is a ruby-mode bug, not a mumamo bug.
-
-;;; The problem is that when a ruby ERB template is loaded with an
-;;; after-hook that modifies the font-lock keywords, nxhtml causes
-;;; font-lock not to occur on strings and comments. What's more is
-;;; this affects regular ruby-mode as well, not just within mumamo.
-
-(require 'ruby-mode)
-
-;; Extra keyword fontification for ruby
-(defun emacswiki-erb-bug-keywords ()
- (font-lock-add-keywords nil
- '(("\\<\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\):"
- 1 font-lock-warning-face t))))
-
-;; Adding the extra keywords at the beginning of ruby-mode-hook breaks
-;; ruby-mode fontification (use the test case at the bottom):
-(add-hook 'ruby-mode-hook 'emacswiki-erb-bug-keywords)
-;; removing this hook makes it not break anymore:
-(remove-hook 'ruby-mode-hook 'emacswiki-erb-bug-keywords)
-;; However adding the extra keywords at the end of the hook works fine:
-(add-hook 'ruby-mode-hook 'emacswiki-erb-bug-keywords t)
-
-
-;; run this to test:
-(progn
- (find-file "bar.rb")
- (insert "# Comments should be font-locked, but are not.
-class Bar
- def baz
- \"strings should also be font-locked but are not.\"
- end
-end"))
-