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

add a global 'require' option for all modes #1215

Merged
merged 4 commits into from
Jun 26, 2019
Merged

Conversation

jneen
Copy link
Member

@jneen jneen commented Jun 24, 2019

This is needed because, for custom extensions (like lexers) to be loaded, rouge itself must be loaded first. So the usual method of ruby -r <plugin> <binary> won't work because Rouge::Lexer will not be available for subclassing.

@ashmaroli
Copy link
Contributor

@jneen Out of curiosity, did this need arise due to changes shipped in Rouge 3.4.0 or has it been
present always but only identified now..?

@jneen
Copy link
Member Author

jneen commented Jun 24, 2019

It has always been present, if one is using custom lexers. There is a way around it but it's difficult. Most users of rouge don't use the CLI, so they won't be affected by this one way or another. Is there a problem?

@ashmaroli
Copy link
Contributor

Is there a problem?

Nope. I just wanted to be sure that the issue at hand wasn't because of the load_relative method in lib/rouge.rb

@pyrmont pyrmont added the author-action The PR has been reviewed but action by the author is needed label Jun 25, 2019
@pyrmont pyrmont merged commit 3e9f1e1 into master Jun 26, 2019
@pyrmont pyrmont removed the author-action The PR has been reviewed but action by the author is needed label Jun 26, 2019
@tancnle tancnle deleted the feature.cli-require branch September 22, 2021 12:26
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

3 participants