Ver código fonte

Fix lexer

master
Dylan Baker 7 anos atrás
pai
commit
d746573773
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/lexer.js

+ 1
- 1
src/lexer.js Ver arquivo

27
         })
27
         })
28
         pos++
28
         pos++
29
       } else if (source[pos].match(/:/)) {
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
         tokens.push({
31
         tokens.push({
32
           type: tokenTypes.ATTRIBUTE,
32
           type: tokenTypes.ATTRIBUTE,
33
           line: line,
33
           line: line,

Carregando…
Cancelar
Salvar