David Jennes
0bbb8005bb
Fix bunch of warnings
2022-07-27 02:56:21 +02:00
David Jennes
19646bcddf
Update SwiftLint to 0.39.2 ( #295 )
...
* Update SwiftLint to 0.39.2
* Enable a bunch of extra rules
* Fix all warnings
* Ignore this Xcode generated folder
Co-authored-by: Olivier Halligon <olivier@halligon.net >
2020-08-12 22:52:00 +02:00
David Jennes
3f4622f54f
Fix issues in Sources
...
Sources
sources
2018-11-11 17:34:47 +01:00
Ilya Puchka
08fc21d177
Merge branch 'master' into dynamic-filter
2018-10-01 22:45:21 +01:00
Ilya Puchka
da6a0ccaca
added some doc comments
2018-10-01 22:12:21 +01:00
Ilya Puchka
dbb5e14e9f
solve merge conflict issues
2018-10-01 21:59:03 +01:00
Ilya Puchka
0269052d6a
Merge branch 'master' into dynamic-filter
...
# Conflicts:
# CHANGELOG.md
# Sources/ForTag.swift
# Sources/IfTag.swift
# Sources/Parser.swift
# Sources/Variable.swift
# Tests/StencilTests/ExpressionSpec.swift
# Tests/StencilTests/FilterSpec.swift
# Tests/StencilTests/ForNodeSpec.swift
# Tests/StencilTests/VariableSpec.swift
2018-10-01 21:21:56 +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
Ilya Puchka
df2e193891
Allow conditions in variable node ( #243 )
...
* use condition in variable node
* added support for else expression
* addressing code review comments
2018-09-22 14:09:25 +03:00
David Jennes
0d4dee29b2
Use multiline strings
...
multi
t
t
2018-09-20 04:17:42 +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
b9702afbd4
fixed indetnations
2018-08-13 20:00:27 +01:00
Ilya Puchka
4f1a5b3e3d
store reference to token when parsing range variable
2018-08-12 22:25:25 +01:00
Ilya Puchka
3a4cd8aa27
Merge branch 'master' into errors-logs-improvements
2018-08-12 22:08:13 +01:00
Ilya Puchka
564ccb7af7
added filter to apply dynamic filter
2018-05-13 12:46:51 +01:00
Ilya Puchka
fe01beb4bb
feat(for loop): Support range literals ( #192 )
2018-04-04 17:56:58 -07:00
Ilya Puchka
359d086c02
feat(filters): Show similar filter names when missing filter( #186 )
2018-01-22 18:27:42 +00:00
Ilya Puchka
d6766b43da
minor code refactoring
2018-01-01 16:22:06 +01: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
cb124319ec
removed unneeded changes
2018-01-01 16:22:05 +01:00
Ilya Puchka
8d68edd725
replaced Lexeme protocol with Token
2018-01-01 16:22:05 +01:00
Ilya Puchka
53c1550c5b
reporting node rendering errors using reference to node’s token
2018-01-01 16:21:50 +01:00
Ilya Puchka
e59609f140
handling unknown filter errors
2018-01-01 16:21:50 +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
Kyle Fuller
d7b152089e
feat: New extensions API ( #78 )
2016-12-07 21:27:31 +00:00
Kyle Fuller
f0591408be
refactor(filter): Filters should be private, we only expose resolvable
2016-11-28 19:24:27 +00:00
Kyle Fuller
b7e200a8a0
feat(for): Support filters
...
Closes #70
2016-11-28 19:24:27 +00:00
Kyle Fuller
a13401b046
chore: Lock down APIs
2016-11-27 02:20:46 +00:00
Kyle Fuller
60b378d482
feat(filters): Allow filters with arguments
2016-11-27 01:59:57 +00:00
Kyle Fuller
feff3b18b1
Add support for Swift 3.0
2016-09-13 19:12:47 +01:00
Kyle Fuller
03928721c4
Move away from deprecated curry syntax
2015-12-14 09:04:18 -05:00
Boris Bügling
372b2e7576
Add Package.swift and move files around
2015-12-08 11:45:03 +01:00