diff options
Diffstat (limited to 'proselight.js')
-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 |