Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tokenize.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = function tokenize(input) {
content = css.slice(pos, next + 1)

if (next === -1 || RE_BAD_BRACKET.test(content)) {
tokens.push(['(', '(', offset])
tokens.push(['(', '(', offset, offset + 1])
offset++
} else {
tokens.push(['brackets', content, offset, next + 1])
Expand All @@ -144,7 +144,7 @@ module.exports = function tokenize(input) {
break

case CLOSE_PARENTHESES:
tokens.push([')', ')', offset])
tokens.push([')', ')', offset, offset + 1])
offset++
break

Expand Down