summaryrefslogtreecommitdiff
path: root/test/indent/js.js
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-12-23 11:17:55 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2014-12-23 11:17:55 -0500
commit29c5e2cea22f909af7d33b290ca0eb23c5ad6c00 (patch)
treea2e38d5bc89e31cd19beef7ac39750f7d962e4d8 /test/indent/js.js
parent46d40398fc0bebd8584636eddadb138a62bf32af (diff)
downloademacs-29c5e2cea22f909af7d33b290ca0eb23c5ad6c00.tar.gz
emacs-29c5e2cea22f909af7d33b290ca0eb23c5ad6c00.tar.bz2
emacs-29c5e2cea22f909af7d33b290ca0eb23c5ad6c00.zip
(js-syntax-propertize-regexp): Recognize "slash in a character class"
Fixes: debbugs:19397 * lisp/progmodes/js.el (js--syntax-propertize-regexp-syntax-table): New var. (js-syntax-propertize-regexp): Use it to recognize "slash in a character class".
Diffstat (limited to 'test/indent/js.js')
-rw-r--r--test/indent/js.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/indent/js.js b/test/indent/js.js
index 1924094e9d8..2d458e1b769 100644
--- a/test/indent/js.js
+++ b/test/indent/js.js
@@ -7,6 +7,11 @@ let c = 1,
var e = 100500,
+ 1;
+function test ()
+{
+ return /[/]/.test ('/') // (bug#19397)
+}
+
var f = bar('/protocols/')
baz();