Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid tokenization inside interpolent #26

Open
Ali-Dalal opened this issue Feb 13, 2019 · 2 comments
Open

Invalid tokenization inside interpolent #26

Ali-Dalal opened this issue Feb 13, 2019 · 2 comments

Comments

@Ali-Dalal
Copy link

Hi

Tokenizing this example

$input-height-inner-quarter:#{$input-padding-y / 2} !default;

will return

[ [ '$', '$', 1, 1 ],
  [ 'ident', 'input-height-inner-quarter', 1, 2, 1, 27 ],
  [ ':', ':', 1, 28 ],
  [ 'startInterpolant', '#{', 1, 30 ],
  [ '$', '$', 1, 31 ],
  [ 'ident', 'input-padding-y', 1, 32, 1, 46 ],
  [ 'space', ' ' ],
  [ '/', '/', 1, 48 ],
  [ 'endInterpolant', '}', 1, 51 ],
  [ 'space', ' ' ],
  [ 'word', '!default', 1, 53, 1, 60 ],
  [ ';', ';', 1, 61 ] ]

The tokenizer didn't detect "2} "

any thoughts about this?

Thanks

@xzyfer
Copy link
Member

xzyfer commented Feb 15, 2019 via email

@Ali-Dalal
Copy link
Author

Hi @xzyfer

I am interpreting the SASS and process some of the tokens to produce a new SASS output which helps in editing some of the SASS and CSS variables through the UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants