close
Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

grammar: Do not randomly sprinkle recursive includes#15

Merged
kevinsawicki merged 1 commit into
atom:masterfrom
vmg:vmg/recursion
Feb 23, 2015
Merged

grammar: Do not randomly sprinkle recursive includes#15
kevinsawicki merged 1 commit into
atom:masterfrom
vmg:vmg/recursion

Conversation

@vmg
Copy link
Copy Markdown

@vmg vmg commented Feb 20, 2015

It appears that #13 introduce some changes to the grammar that caused unbounded (and unnecessary) meta recursion on most rules, greatly increasing the verbosity of the output HTML. Since all include subrules in the patterns dictionary already had $self included, this just added a rather silly loop to the grammar.

This fixes the noisy HTML output that was reported in https://twitter.com/swannodette/status/568516306648977409

cc @aroben

@vmg
Copy link
Copy Markdown
Author

vmg commented Feb 20, 2015

If somebody who actually writes Clojure could verify that the highlighted output still makes sense, that'd be nice and dandy.

Here's the grammar in Lightshow: example

@kevinsawicki
Copy link
Copy Markdown
Contributor

I'm more than happy to merge this in and publish, but I'm not somebody who actually writes Clojure.

kevinsawicki added a commit that referenced this pull request Feb 23, 2015
grammar: Do not randomly sprinkle recursive includes
@kevinsawicki kevinsawicki merged commit 3a4f47e into atom:master Feb 23, 2015
@vmg
Copy link
Copy Markdown
Author

vmg commented Feb 23, 2015

I guess the fastest way is going to be to deploy this in production and see if Clojure users complain of any issues. ;)

Slowki pushed a commit to Slowki/hy.tmLanguage that referenced this pull request Sep 14, 2018
grammar: Do not randomly sprinkle recursive includes
Slowki pushed a commit to Slowki/hy.tmLanguage that referenced this pull request Sep 14, 2018
grammar: Do not randomly sprinkle recursive includes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants