From ac06482b1ccf932432522583059b98390a3f176c Mon Sep 17 00:00:00 2001 From: Blaise Date: Sat, 29 Oct 2022 14:34:21 -0500 Subject: Make parenthesis and braces mulitchar --- proselight.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proselight.js b/proselight.js index a24ff32..16b2f1e 100644 --- a/proselight.js +++ b/proselight.js @@ -70,7 +70,7 @@ // 0: unformatted /[":;,\\.?!\])\/{}[(|]/[test](chr), // 1: parentesis or braces - 1, // consist of a single character + /[\]){}[(]/[test](prev1) && multichar, // 2: terminators 1, // consist of a single character // 3: separators @@ -98,7 +98,7 @@ tokenType = 5; while (![ 1, // 0: unformatted - /[\])\/{}[(|]/[test](chr), // 1: parenthesis or braces + /[\]){}[(]/[test](chr), // 1: parenthesis or braces /[\\.?!]/[test](chr), // 2: terminators /[:;,]/[test](chr), // 3: separators chr == '"', // 4: quotes -- cgit v1.2.3