Ilya Puchka
01afae9b79
Fix parsing token components with parenthesis without spaces ( #254 )
...
* fix parsing token components with brackets without spaces
* handle more edge cases
* do not use force unwrap
* use first/last instead of hasPrefix/hasSuffix
* update CHANGELOG
2018-09-30 21:57:19 +01:00
Ilya Puchka
d9f6a82f97
Convert Token from enum to struct ( #256 )
...
* convert Token from enum to struct
* private setter for components
* updated CHANGELOG
2018-09-30 21:48:44 +01:00
David Jennes
1704cd2ddf
Use auto equatable
2018-09-20 02:20:21 +02:00
Yonas Kolb
420c0eacd7
update code to Swift 4.1
2018-09-10 20:59:02 +10:00
Ilya Puchka
acda1b0caf
process template lines when Lexer is created not when parsing each token. ( #230 )
2018-09-10 11:39:19 +01:00
Ilya Puchka
3a4cd8aa27
Merge branch 'master' into errors-logs-improvements
2018-08-12 22:08:13 +01:00
Ilya Puchka
39ed9aa753
Fixed using spaces in filter expressions and variables lists ( #178 )
...
* fixed using spaces in filter expression
* fixed breaking variables lists and filters by spaces
* simplified smartJoin
* avoid force unwrap
2018-05-13 01:06:38 +01:00
Ilya Puchka
7c499cc077
fix(tokeniser): Tokenising a quote inside quoted parameter ( #210 )
2018-04-17 11:28:28 -07:00
Ilya Puchka
662849e968
removed trailing witespaces
2018-01-01 16:22:06 +01:00
Ilya Puchka
ac2fd56e8e
storing full sourcemap in token, refactored error reporting
2018-01-01 16:22:06 +01:00
Ilya Puchka
8d68edd725
replaced Lexeme protocol with Token
2018-01-01 16:22:05 +01:00
Ilya Puchka
69cd8e4d3b
replaced Token with Lexeme protocol on TemplateSyntaxError
2018-01-01 16:21:50 +01:00
Ilya Puchka
6300dbc7bf
improved template syntax errors with file, line number and failed token highlighted in error message
2018-01-01 16:21:48 +01:00
Ilya Puchka
5541eae818
feat: fixed parsing several filter arguments with quotes ( #98 )
2017-04-18 22:58:42 +01:00
Kyle Fuller
a014fecd23
fix(filters): Smartly split arguments
...
Ensure that `"value"|filter:"arg , with comma"` works
2016-11-27 02:46:43 +00:00
Kyle Fuller
feff3b18b1
Add support for Swift 3.0
2016-09-13 19:12:47 +01:00
Boris Bügling
372b2e7576
Add Package.swift and move files around
2015-12-08 11:45:03 +01:00