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 DSS.alias(newName, oldName) to alias a parser. #59

Merged
merged 1 commit into from May 5, 2015
Merged

Conversation

ahx
Copy link
Contributor

@ahx ahx commented Mar 18, 2015

This is useful for example if you want to add a new multiline parser that should just behave like the existing “markup” parser:

  dss.alias(“code”, “markup”)

Probably related to #56 ?

This is useful for example if you want to add a new multiline parser that should just behave like the existing “markup” parser:
dss.alias(“code”, “markup”)

To make this example work, a parser function has to know the name of the current parser, so we need to pass it as an additional parameter.
@ahx
Copy link
Contributor Author

ahx commented Mar 18, 2015

Update: Noticed that the markup parser needs to know that it handles "@markup" lines, so the name of the parser now get's passed to the parser function.

@darcyclarke
Copy link
Member

@ahx very nice! 👍

darcyclarke added a commit that referenced this pull request May 5, 2015
Add DSS.alias(newName, oldName) to alias a parser.
@darcyclarke darcyclarke merged commit 403af13 into Documented-Style-Sheets:master May 5, 2015
@ahx ahx deleted the alias-parser branch May 5, 2015 05:47
@ahx
Copy link
Contributor Author

ahx commented May 5, 2015

Thank you. =)
We are using DSS with Sass and Broccoli @ work. It's works beautifully.

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