From 9437973b3e1ca533aefb96435e3bd388bc8dffbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Wouts?= Date: Wed, 24 Feb 2021 07:52:24 +1100 Subject: [PATCH 1/3] Fix broken link to Ruby's Percent Strings The current link fails with a 404. --- docs/section-3-creating-parsers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index 3fc8f04a..c8b0bfca 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -724,7 +724,7 @@ if (valid_symbols[INDENT] || valid_symbol[DEDENT]) { [npm]: https://docs.npmjs.com [path-env]: https://en.wikipedia.org/wiki/PATH_(variable) [peg]: https://en.wikipedia.org/wiki/Parsing_expression_grammar -[percent-string]: https://docs.ruby-lang.org/en/2.5.0/syntax/literals_rdoc.html#label-Percent+Strings +[percent-string]: https://docs.ruby-lang.org/en/2.0.0/syntax/literals_rdoc.html#label-Percent+Strings [releases]: https://github.com/tree-sitter/tree-sitter/releases/latest [s-exp]: https://en.wikipedia.org/wiki/S-expression [syntax-highlighting]: ./syntax-highlighting From 86d4be4ea7ba2e26994057cc4975dcf9b3dcd021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Wouts?= Date: Wed, 24 Feb 2021 07:55:48 +1100 Subject: [PATCH 2/3] Link to Ruby 3 docs instead --- docs/section-3-creating-parsers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index c8b0bfca..5648f4ca 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -724,7 +724,7 @@ if (valid_symbols[INDENT] || valid_symbol[DEDENT]) { [npm]: https://docs.npmjs.com [path-env]: https://en.wikipedia.org/wiki/PATH_(variable) [peg]: https://en.wikipedia.org/wiki/Parsing_expression_grammar -[percent-string]: https://docs.ruby-lang.org/en/2.0.0/syntax/literals_rdoc.html#label-Percent+Strings +[percent-string]: https://docs.ruby-lang.org/en/3.0.0/doc/syntax/literals_rdoc.html#label-Percent+Strings [releases]: https://github.com/tree-sitter/tree-sitter/releases/latest [s-exp]: https://en.wikipedia.org/wiki/S-expression [syntax-highlighting]: ./syntax-highlighting From b7f99d45f0b75542c326c7c0afc1b5d7fa7a91ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Wouts?= Date: Wed, 24 Feb 2021 07:56:26 +1100 Subject: [PATCH 3/3] Revert back to 2.5.0 to minimise changes --- docs/section-3-creating-parsers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index 5648f4ca..b73f3131 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -724,7 +724,7 @@ if (valid_symbols[INDENT] || valid_symbol[DEDENT]) { [npm]: https://docs.npmjs.com [path-env]: https://en.wikipedia.org/wiki/PATH_(variable) [peg]: https://en.wikipedia.org/wiki/Parsing_expression_grammar -[percent-string]: https://docs.ruby-lang.org/en/3.0.0/doc/syntax/literals_rdoc.html#label-Percent+Strings +[percent-string]: https://docs.ruby-lang.org/en/2.5.0/doc/syntax/literals_rdoc.html#label-Percent+Strings [releases]: https://github.com/tree-sitter/tree-sitter/releases/latest [s-exp]: https://en.wikipedia.org/wiki/S-expression [syntax-highlighting]: ./syntax-highlighting