diff options
| author | Stefan Monnier | 2014-12-23 11:17:55 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-12-23 11:17:55 -0500 |
| commit | 29c5e2cea22f909af7d33b290ca0eb23c5ad6c00 (patch) | |
| tree | a2e38d5bc89e31cd19beef7ac39750f7d962e4d8 /test | |
| parent | 46d40398fc0bebd8584636eddadb138a62bf32af (diff) | |
| download | emacs-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.js | 5 |
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, | |||
| 7 | var e = 100500, | 7 | var e = 100500, |
| 8 | + 1; | 8 | + 1; |
| 9 | 9 | ||
| 10 | function test () | ||
| 11 | { | ||
| 12 | return /[/]/.test ('/') // (bug#19397) | ||
| 13 | } | ||
| 14 | |||
| 10 | var f = bar('/protocols/') | 15 | var f = bar('/protocols/') |
| 11 | baz(); | 16 | baz(); |
| 12 | 17 | ||