stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.33k stars 221 forks source link

Fix parsing token components with parenthesis without spaces #254

Closed ilyapuchka closed 5 years ago

ilyapuchka commented 5 years ago

Resolves #253

djbe commented 5 years ago

Just being pedantic here, but we want to make sure we cover all cases:

Does this handle a (badly written) expression like:

(one and two )or three

AliSoftware commented 5 years ago

Good point. If you're asking the question @djbe that means we need a test to cover it :wink:

ilyapuchka commented 5 years ago

it won't handle two )or though it should, good catch