Skip to content

Commit

Permalink
Fix link to babel-parser and fix typo (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
janczer authored and ai committed Sep 4, 2018
1 parent e1da8e9 commit acda7a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ That being said, there are few ways to write parser
- *Split it into lexical analysis/parsing steps (source string → tokens → AST)*

This is the way of how we do it in PostCSS and also the most popular one.
A lot of parsers like [`Babylon` (parser behind Babel)](https://github.com/babel/babel/tree/master/packages/babylon), [`CSSTree`](https://github.com/csstree/csstree) were written in such way.
A lot of parsers like [`@babel/parser` (parser behind Babel)](https://github.com/babel/babel/tree/master/packages/babel-parser), [`CSSTree`](https://github.com/csstree/csstree) were written in such way.
The main reasons to separate tokenization from parsing steps are performance and abstracting complexity.

Let think about why second way is better for our needs.
Expand Down
2 changes: 1 addition & 1 deletion lib/postcss.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ declare namespace postcss {
/**
* Applies a SourceMap for a source file to the SourceMap. Each mapping to
* the supplied source file is rewritten using the supplied SourceMap.
* Note: The resolution for the resulting mappings is the minimium of this
* Note: The resolution for the resulting mappings is the minimum of this
* map and the supplied map.
* @param sourceMapConsumer The SourceMap to be applied.
* @param sourceFile The filename of the source file. If omitted, sourceMapConsumer
Expand Down

0 comments on commit acda7a5

Please sign in to comment.