aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2014-12-23 11:17:55 -0500
committerStefan Monnier2014-12-23 11:17:55 -0500
commit29c5e2cea22f909af7d33b290ca0eb23c5ad6c00 (patch)
treea2e38d5bc89e31cd19beef7ac39750f7d962e4d8 /test
parent46d40398fc0bebd8584636eddadb138a62bf32af (diff)
downloademacs-29c5e2cea22f909af7d33b290ca0eb23c5ad6c00.tar.gz
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')
-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,
7var e = 100500, 7var e = 100500,
8 + 1; 8 + 1;
9 9
10function test ()
11{
12 return /[/]/.test ('/') // (bug#19397)
13}
14
10var f = bar('/protocols/') 15var f = bar('/protocols/')
11baz(); 16baz();
12 17