pombreda / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

js2-additional-externs not respected? #117

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

(defun jhs--js2-mode-setup ()
;  (when (string-match "/mashlogic/src/js/" (buffer-file-name))
    (setq js2-additional-externs '("MashLogic"))
;    )
    )
(add-hook 'js2-mode-hook 'jhs--js2-mode-setup)

Run js2-mode in a buffer containing, say:

MashLogic.warnface = false;

What is the expected output? What do you see instead?

"MashLogic" is not supposed to get decorated in js2-warning-face, but is.

What version of the product are you using? On what operating system?

Current trunk (http://js2-mode.googlecode.com/svn/trunk@80) on GNU Emacs 22.2.1 
(i386-
apple-darwin8.11.1, Carbon Version 1.6.0).

Please provide any additional information below.

While debugging the above, I also encountered a broken reference to the 
nonexistent js2-
include-browser-externs in the docstring for js2-include-browser-externs.

Original issue reported on code.google.com by oyas...@gmail.com on 21 Apr 2010 at 3:04