diff options
author | Blaise | 2022-10-29 14:34:21 -0500 |
---|---|---|
committer | Blaise | 2022-10-29 14:34:21 -0500 |
commit | ac06482b1ccf932432522583059b98390a3f176c (patch) | |
tree | 4e3f66e406add6d7cdc0b8bbd4aed8decc1030c8 | |
parent | 621affaa063550f086ea827811607bcf864f89e3 (diff) |
Make parenthesis and braces mulitchar
-rw-r--r-- | proselight.js | 4 |
1 files 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 @@ | |||
70 | // 0: unformatted | 70 | // 0: unformatted |
71 | /[":;,\\.?!\])\/{}[(|]/[test](chr), | 71 | /[":;,\\.?!\])\/{}[(|]/[test](chr), |
72 | // 1: parentesis or braces | 72 | // 1: parentesis or braces |
73 | 1, // consist of a single character | 73 | /[\]){}[(]/[test](prev1) && multichar, |
74 | // 2: terminators | 74 | // 2: terminators |
75 | 1, // consist of a single character | 75 | 1, // consist of a single character |
76 | // 3: separators | 76 | // 3: separators |
@@ -98,7 +98,7 @@ | |||
98 | tokenType = 5; | 98 | tokenType = 5; |
99 | while (![ | 99 | while (![ |
100 | 1, // 0: unformatted | 100 | 1, // 0: unformatted |
101 | /[\])\/{}[(|]/[test](chr), // 1: parenthesis or braces | 101 | /[\]){}[(]/[test](chr), // 1: parenthesis or braces |
102 | /[\\.?!]/[test](chr), // 2: terminators | 102 | /[\\.?!]/[test](chr), // 2: terminators |
103 | /[:;,]/[test](chr), // 3: separators | 103 | /[:;,]/[test](chr), // 3: separators |
104 | chr == '"', // 4: quotes | 104 | chr == '"', // 4: quotes |