Commit Graph
981 Commits
Author SHA1 Message Date
Michael Go fe2ba1d8da don't create string scanner for liquid tag 2024-11-01 17:31:05 -03:00
Michael Go fa51b8be40 mini opt 2024-11-01 17:30:18 -03:00
Michael Go f77075895a appease rubocop 2024-11-01 17:24:09 -03:00
Michael Go 579b899e24 mini opt 2024-11-01 17:19:50 -03:00
Michael Go 7ac53a3639 use String#split for liquid tag tokenization 2024-11-01 17:11:10 -03:00
Michael Go f49ceed826 mini opt 2024-11-01 17:06:28 -03:00
Michael Go d2b68b81a7 undo mini opt 2024-11-01 17:02:09 -03:00
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-SeymerandGitHub 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-SeymerandMichael Go be8e329cef more opt 2024-10-30 13:54:01 -03:00
Ian Ker-SeymerandMichael Go d76663f570 more opt 2024-10-30 13:54:01 -03:00
Ian Ker-SeymerandMichael Go f42c6b0608 more opt 2024-10-30 13:54:01 -03:00
Ian Ker-SeymerandMichael 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 GoandGitHub 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 GoandGitHub 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-SeymerandGitHub 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-SeymerandGitHub 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-SeymerandGitHub fb6634f454 Add concept of Liquid::Environment (#1815)
* Add concept of `Liquid::World`

* Rename `World` to `Environment`
2024-08-07 15:00:44 -04:00