Commit Graph
58 Commits
Author SHA1 Message Date
Tristan Hume e8b41c8856 Fix error 2013-08-30 16:06:48 -04:00
Tristan Hume 4c22bacbba Merge branch 'master' of https://github.com/Shopify/liquid 2013-08-30 15:56:13 -04:00
Tristan Hume 09a5b57ebe Fix variable closing error message 2013-08-30 15:55:43 -04:00
Tristan Hume af50f71224 Guard against state that shouldn't happen but does 2013-08-30 15:26:26 -04:00
Tristan Hume 7b52dfcb95 Clean up lexer logic 2013-08-27 16:36:22 -04:00
Tristan Hume 1fa029ab67 Simplify lexer logic. 2013-08-27 11:35:03 -04:00
Tristan Hume e305edc3b8 Remove extra comment 2013-08-27 09:53:06 -04:00
Tristan Hume c94b5e87c9 Use attr_reader for warnings. 2013-08-22 16:16:28 -04:00
Tristan Hume dd3196b22e Consistency in warnings. 2013-08-22 16:15:12 -04:00
Tristan Hume 86ba2f4174 Fix error message 1.8 compatibility 2013-08-22 13:23:44 -04:00
Tristan Hume 5bdfb62bf2 Remove old warning method 2013-08-22 12:57:16 -04:00
Tristan Hume 77db92de54 Better testing of warn mode. 2013-08-22 12:55:54 -04:00
Tristan Hume b0cba5298a Fix warnings and make tags a proper syntax tree. 2013-08-22 12:44:23 -04:00
Tristan Hume 93fcd5687c Broken warnings implementation. 2013-08-22 12:12:35 -04:00
Tristan Hume 14a17520de Merge branch 'master' into recursive-parsing 2013-08-22 10:39:08 -04:00
Tristan Hume 0beb4a4793 Add handy context to strict parser error messages. 2013-08-19 15:45:05 -04:00
Tristan Hume 324d26d405 Consistent lack of periods in syntax errors. 2013-08-19 15:20:39 -04:00
Tristan Hume 047900d0dd Proper warning support 2013-08-19 15:14:26 -04:00
Tristan Hume eb68a751ac Hopefully fix CI by improving multi-suite runner. 2013-08-16 15:15:15 -04:00
Tristan Hume 6cde98319f More little fixes and changed default benchmark 2013-08-02 15:21:15 -04:00
Tristan Hume 15b53b77d6 Make stuff nicer 2013-08-02 15:17:17 -04:00
Tristan Hume 48f50eea3b Remove unused lex_specials method 2013-08-02 15:12:11 -04:00
Tristan Hume ace12e29da Hopefully fix CI on Rubinius 2013-08-02 13:37:56 -04:00
Tristan Hume 824231284c Run test suite with both parsers 2013-08-01 12:49:36 -04:00
Tristan Hume f6eacbf875 Add prayer for forgiveness. 2013-07-31 09:49:31 -04:00
Tristan Hume c5afdc529a Shuffle logic around. 2013-07-30 16:17:03 -04:00
Tristan Hume 84f0c1bef8 Initial options passing 2013-07-30 14:44:41 -04:00
Tristan Hume 1458396733 Fix benchmark 2013-07-30 14:20:16 -04:00
Tristan Hume 346e92aaa6 Describe error modes in Readme 2013-07-29 16:40:22 -04:00
Tristan Hume 3b3961be39 Use lax mode by default so nothing breaks 2013-07-29 16:28:20 -04:00
Tristan Hume 8ca00982b6 Fixed ranges and added for loop parser 2013-07-29 14:11:47 -04:00
Tristan Hume 525e1ff195 Add range support 2013-07-29 13:25:48 -04:00
Tristan Hume 8f4b398c7a Abstract parser switching into tag 2013-07-29 13:00:35 -04:00
Tristan Hume d5d41a8202 Make previous commit work 2013-07-29 12:43:05 -04:00
Tristan Hume c8bd0b91b3 Catch easy cases 2013-07-29 12:07:18 -04:00
Tristan Hume bc76c0daaf Collapse float and int into 'number' 2013-07-29 11:04:46 -04:00
Tristan Hume be4a04ed85 Merged array_tokens into recursive-parsing 2013-07-29 10:38:52 -04:00
Tristan Hume 8dcf44e99d Faster token creation, hopefully. 2013-07-29 10:23:04 -04:00
Tristan Hume a892e69a88 Hopefully fix CI build 2013-07-26 15:55:10 -04:00
Tristan Hume 1b43bf5686 Add parser tests 2013-07-26 13:09:36 -04:00
Tristan Hume 83e71ace99 Add lexer tests and fixes 2013-07-26 12:50:27 -04:00
Tristan Hume 4dc9cc0ea1 Add back tests for lax parsing 2013-07-26 11:55:50 -04:00
Tristan Hume 87b8ee7341 Add error mode switching 2013-07-26 11:45:13 -04:00
Tristan Hume 8b1dff9d98 Allow ! in identifiers like Ruby 2013-07-26 10:33:30 -04:00
Tristan Hume 8896b55fa5 Parsing for if statements 2013-07-26 10:31:26 -04:00
Tristan Hume c0b9d53548 Revert "Test a different lexer architechture"
This reverts commit 24ddaf1a9c.
2013-07-26 09:52:04 -04:00
Tristan Hume 24ddaf1a9c Test a different lexer architechture 2013-07-26 09:51:58 -04:00
Tristan Hume 673826630c Unfinished if statement parser. 2013-07-26 09:32:08 -04:00
Tristan Hume 17d818b453 Fix profiler 2013-07-25 15:04:04 -04:00
Tristan Hume 0453d7e299 Fix benchmarks to use only valid liquid. 2013-07-25 11:51:51 -04:00
Tristan Hume 4da7b36139 New variable parser! 2013-07-25 11:38:57 -04:00
Tristan Hume f43e973e67 Basic expression parsing 2013-07-24 16:36:14 -04:00
Tristan Hume 84be895db2 Fancy StringScanner based lexer 2013-07-24 15:39:48 -04:00
Tristan Hume b20a594f25 Better lexer 2013-07-24 15:19:14 -04:00
Tristan Hume 76272a1afa Bring back the lexer 2013-07-24 14:40:29 -04:00
Tristan Hume 61a6deb43b Descriptive comment for lexer 2013-07-24 12:00:51 -04:00
Tristan Hume ee14775f83 Replace hand-coded lexer with faster hacky lexer. 2013-07-24 11:41:47 -04:00
Tristan Hume 2332d86156 Slow lexer and parser scaffold. 2013-07-24 11:35:00 -04:00