Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Liquid's pattern for matching include tag's filename argument #1351

Merged
merged 1 commit into from Nov 29, 2019

Conversation

EricFromCanada
Copy link
Contributor

In the Liquid lexer, this line in the :include state is specific to Jekyll's implementation of the include tag, which allows specifying an unquoted file path as the initial argument, much like its own include_relative tag. This changes the rule to only allow a specific set of characters (including slash, because the tag searches subdirectories) which fixes a code sample in this section, and marks the argument as plain Text to match how include_relative is handled.

lib/rouge/lexers/liquid.rb Show resolved Hide resolved
@pyrmont pyrmont added the author-action The PR has been reviewed but action by the author is needed label Oct 16, 2019
@pyrmont pyrmont self-assigned this Oct 16, 2019
@pyrmont pyrmont merged commit 4bc1b33 into rouge-ruby:master Nov 29, 2019
@pyrmont pyrmont removed the author-action The PR has been reviewed but action by the author is needed label Nov 29, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Nov 29, 2019

Thanks again for this, @EricFromCanada! We've moved to a monthly release schedule now. This will be part of the version that'll be pushed out on 12 December :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants