sugar-high 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/index.mjs +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Super lightweight JSX syntax highlighter, around 1KB after minified and gzipped
|
|
5
5
|
|
|
6
|
-

|
|
7
7
|
|
|
8
8
|
### Usage
|
|
9
9
|
|
package/lib/index.mjs
CHANGED
|
@@ -319,7 +319,8 @@ export function tokenize(code) {
|
|
|
319
319
|
}
|
|
320
320
|
if (__jsxTag) {
|
|
321
321
|
// >: open tag close sign or closing tag closing sign
|
|
322
|
-
|
|
322
|
+
// and it's not `=>` or `/>`
|
|
323
|
+
if (curr === '>' && !'/='.includes(prev)) {
|
|
323
324
|
append()
|
|
324
325
|
if (__jsxTag === 1) {
|
|
325
326
|
__jsxTag = 0
|