Skip to content

Invalid tokenization inside interpolent #26

@Ali-Dalal

Description

@Ali-Dalal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions