fetaro / js2-mode

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

"export" is missing from js2-keywords list #106

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
js2-keywords constant contains "import", but is missing "export" although 
there are variables defined for both of these:

(defvar js2-EXPORT 109)        ; export keyword
(defvar js2-IMPORT 110)        ; import keyword

The most important problem that this IMHO causes is that when you have js2-
allow-keywords-as-property-names set to nil and you expect js2-mode to 
warn you when you use keywords as property names, then it will not warn 
you about using "export".

The fix is trivial - just add "import" to js2-keywords.

Original issue reported on code.google.com by rsaarsoo@gmail.com on 28 Jul 2009 at 7:12

GoogleCodeExporter commented 8 years ago
Oh, sorry... I didn't notice a new release is out... It's fixed now.

Original comment by rsaarsoo@gmail.com on 28 Jul 2009 at 7:18