|
|
|
@ -171,7 +171,7 @@ module.exports = function start(filename, source) {
|
|
|
|
|
} catch (e) {
|
|
|
|
|
// Wrong regexp.
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
m = pattern.match(/^\/(.*)$/)
|
|
|
|
|
if (m) {
|
|
|
|
|
try {
|
|
|
|
@ -180,6 +180,7 @@ module.exports = function start(filename, source) {
|
|
|
|
|
// Wrong regexp.
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
highlight = regex
|
|
|
|
|
|
|
|
|
|
if (highlight) {
|
|
|
|
|