summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGastón Ramos <ramos.gaston@gmail.com>2017-01-07 12:55:19 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-01-07 12:55:19 -0700
commitd3fe97e1f6cae0c93380d23e9c8c5b44401ebf97 (patch)
tree7b4fbae2ab00e10fea1e430019bdb9c4190aface
parent4021489348ca05e3b70c30e9e23651bbbe37e6a3 (diff)
fix-references-to-free-variables
Gbp-Pq: Name fix-references-to-free-variables
-rw-r--r--haml-mode.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/haml-mode.el b/haml-mode.el
index 19643e6..f593cce 100644
--- a/haml-mode.el
+++ b/haml-mode.el
@@ -159,6 +159,7 @@ respectively."
This requires that `css-mode' is available.
`css-mode' is included with Emacs 23."
+ (defvar css-mode-syntax-table)
(when (boundp 'css-font-lock-keywords)
(haml-fontify-region beg end
css-font-lock-keywords
@@ -172,6 +173,11 @@ This requires that `css-mode' is available.
This requires that Karl Landström's javascript mode be available, either as the
\"js.el\" bundled with Emacs >= 23, or as \"javascript.el\" found in ELPA and
elsewhere."
+ (defvar js--font-lock-keywords-3)
+ (defvar js-font-lock-keywords-3)
+ (defvar js-mode-syntax-table)
+ (defvar javascript-mode-syntax-table)
+ (defvar js--quick-match-re-func)
(let ((keywords (or (and (featurep 'js) js--font-lock-keywords-3)
(and (featurep 'javascript-mode) js-font-lock-keywords-3)))
(syntax-table (or (and (featurep 'js) js-mode-syntax-table)
@@ -381,6 +387,8 @@ With ARG, do it that many times."
With point at the beginning of the font lock region, EXTENDER is called.
If it returns a (START . END) pair, those positions are used to possibly
extend the font lock region."
+ (defvar font-lock-beg)
+ (defvar font-lock-end)
(let ((old-beg font-lock-beg)
(old-end font-lock-end))
(save-excursion