Skip to content

Commit

Permalink
Fix ctxRegEx to allow semicolons in values.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Jan 31, 2018
1 parent 7693b1c commit 566e28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var addCodeToContext = function (context, ctxCode, match) {
* SCSS Context Parser
*/
var scssContextParser = (function () {
var ctxRegEx = /^(@|%|\$)([\w-_]+)*(?:\s+([\w-_]+)|[\s\S]*?:([\s\S]*?)(?:\s!(\w+))?;)?/
var ctxRegEx = /^(@|%|\$)([\w-_]+)*(?:\s+([\w-_]+)|[\s\S]*?:([\s\S]*?)(?:\s!(\w+))?;[ \t]*?(?=\/\/|\n|$))?/
var parser = function (ctxCode, lineNumberFor) {
var match = ctxRegEx.exec(ctxCode.trim())
var startIndex, endIndex
Expand Down

0 comments on commit 566e28e

Please sign in to comment.