Browse Source

Fix lexer

master
Dylan Baker 6 years ago
parent
commit
d746573773
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/lexer.js

+ 1
- 1
src/lexer.js View File

@@ -27,7 +27,7 @@ module.exports = class Lexer {
27 27
         })
28 28
         pos++
29 29
       } else if (source[pos].match(/:/)) {
30
-        let value = /:([^()'"\s]+)/.exec(source)[1].trim()
30
+        let value = /:([^()'"\s]+)/.exec(source.slice(pos))[1].trim()
31 31
         tokens.push({
32 32
           type: tokenTypes.ATTRIBUTE,
33 33
           line: line,

Loading…
Cancel
Save