Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "a #{foo} a"
- (define-derived-mode temp-mode fundamental-mode "Temp"
- "Temporary major mode."
- (set (make-local-variable 'font-lock-defaults)
- '((temp-mode-font-lock-keywords) nil nil nil nil)))
- (defconst temp-mode-font-lock-keywords
- (list (list "$[A-Za-z0-9]+" 0 font-lock-variable-name-face t)))
- (setq ruby-font-lock-syntactic-keywords
- '(
- ;; #{ }, #$hoge, #@foo are not comments
- ("\(#\)[{$@]" 1 (1 . nil))
Add Comment
Please, Sign In to add comment