Michael Go
7d9ffdce03
mini opt
2024-11-01 16:36:25 -03:00
Michael Go
2e4d02f4d1
mini opt
2024-11-01 16:22:01 -03:00
Ian Ker-Seymer and GitHub
a0c64e4cbd
Update strscan comment
2024-10-31 16:57:52 -04:00
Michael Go
b4907f6323
pre-calculate tokens
2024-10-31 15:46:48 -03:00
Michael Go
78ef372878
backward compatible tokenizer
2024-10-30 14:31:55 -03:00
Michael Go
936f73dc30
refactor tokenizer to simulate original regex properly
2024-10-30 13:54:01 -03:00
Michael Go
fecbc62533
remove unnecessary comparison jump table entries
2024-10-30 13:54:01 -03:00
Michael Go
b7b6400985
fix typo
2024-10-30 13:54:01 -03:00
Ian Ker-Seymer and Michael Go
be8e329cef
more opt
2024-10-30 13:54:01 -03:00
Ian Ker-Seymer and Michael Go
d76663f570
more opt
2024-10-30 13:54:01 -03:00
Ian Ker-Seymer and Michael Go
f42c6b0608
more opt
2024-10-30 13:54:01 -03:00
Ian Ker-Seymer and Michael Go
aa45356133
Avoid method dispatch
2024-10-30 13:54:01 -03:00
Michael Go
a406603e9f
more micro optimization
2024-10-30 13:54:01 -03:00
Michael Go
54975ddac1
more micro optimization
2024-10-30 13:54:01 -03:00
Michael Go
91e1563e1c
more micro optimization
2024-10-30 13:54:01 -03:00
Michael Go
0346337c05
more micro optimization
2024-10-30 13:54:01 -03:00
Michael Go
649b64ffd4
more micro optimization
2024-10-30 13:54:01 -03:00
Michael Go
48d6a03de6
more micro optimization
2024-10-30 13:54:01 -03:00
Michael Go
9e0c5f4747
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
e06ac1bc9c
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
c2baa4c270
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
b81d1c8c5d
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
e3c2fd47b2
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
1b3927ee1d
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
6ad7508ce2
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
ddb969af8b
more micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
128935dcef
micro optimization
2024-10-30 13:54:00 -03:00
Michael Go
b545e3ae6a
lazy tokenizer
2024-10-30 13:54:00 -03:00
Michael Go
ffce6de8bb
avoid using StringScanner eos
2024-10-30 13:45:10 -03:00
Michael Go
f6a3e25e2e
fix parsing quirky incomplete expressions
2024-10-30 13:44:35 -03:00
Michael Go
1375a9e4dc
fix lexer parsing ID 'contains' as comparison
2024-10-30 13:39:55 -03:00
Michael Go
8a9f33a060
raise syntax error from lexer parser with utf8 character
2024-10-29 22:04:37 -03:00
Michael Go and GitHub
1943441361
Merge pull request #1835 from Shopify/fix-multibyte-variable-parsing
...
fix parsing Variable blockbody with multibyte character
2024-10-28 19:31:21 -03:00
Michael Go
d94293a464
fix lexer parsing comparison without whitespaces
2024-10-28 19:30:12 -03:00
Michael Go
6c13805a60
fix parsing Variable blockbody with multibyte character
2024-10-28 17:33:55 -03:00
Michael Go and GitHub
b4196489c2
Merge pull request #1833 from Shopify/fast-variable-parse
...
Faster Variable BlockBody Matching
2024-10-28 15:28:04 -03:00
Michael Go
fb6ac72520
use byteslice to create Variable BlockBody
2024-10-25 15:41:35 -03:00
Michael Go
cb16219552
faster BlockBody variable matching
2024-10-25 15:22:56 -03:00
Gray Gilmore
8d7ed706f4
Update liquid docs for named parameters
...
The YARD liquid gem now supports specifying named parameters. For the
core liquid tags and filters this is the only object I could find that
needed to be updated.
2024-10-24 09:56:50 -07:00
Ian Ker-Seymer and GitHub
b3553787c8
Speed up the lexer for Ruby 3.4+ ( #1832 )
...
* Speed up lexing
* Bump msrv to 3.0 (from 2.7)
* Normalize test for ruby-head compat
* Fix bug when parsing negative numbers
2024-10-23 14:15:33 -04:00
Ian Ker-Seymer and GitHub
b233b3d081
Bump to v5.6.0.alpha ( #1819 )
2024-08-15 16:12:16 -04:00
Alex Coco
9067e5167a
Handle interrupts in table row
2024-08-15 11:56:29 -04:00
Ian Ker-Seymer and GitHub
fb6634f454
Add concept of Liquid::Environment ( #1815 )
...
* Add concept of `Liquid::World`
* Rename `World` to `Environment`
2024-08-07 15:00:44 -04:00
Ian Ker-Seymer and Ian Ker-Seymer
a0411e0927
Bump to v5.5.1
2024-07-22 23:25:56 -04:00
Marco Concetto Rudilosso and Ian Ker-Seymer
d36937d17f
Add named? method to Cycle class for checking if the cycle is named
2024-07-16 15:52:25 -04:00
Jenny Shen
fc4f19471e
Update rubocop to 1.61.0
2024-04-05 10:23:37 -04:00
Ian Ker-Seymer
56a0b7c42b
Bump to v5.5.0
2024-03-21 15:48:54 -04:00
Ian Ker-Seymer and GitHub
dba733084e
Merge pull request #1760 from mtasaka/nil-nil-comparison-fix
...
change: make nil_safe_casecmp judge compatible for nil-nil comparison
2024-03-21 15:38:13 -04:00
Michael Go
a5e5fab82a
update variable's context before invoking its to_liquid
2024-02-12 16:48:20 -04:00
Ian Ker-Seymer
1b2b62964e
Allow for binary comparison of incompatible strings
2024-01-30 19:03:05 -05:00