Explorar el Código

Fix lexer

master
Dylan Baker hace 7 años
padre
commit
d746573773
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/lexer.js

+ 1
- 1
src/lexer.js Ver fichero

@@ -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…
Cancelar
Guardar