Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kozily/nearley-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: LeetCode-OpenSource/nearley-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 19, 2019

  1. chore: update .gitignore

    runjuu committed Mar 19, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    5c10cf3 View commit details
  2. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    3e204ca View commit details
  3. release 2.1.0

    runjuu committed Mar 19, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    2bc2179 View commit details
Showing with 7 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +5 −5 package.json
  3. +1 −1 src/index.js
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -35,3 +35,4 @@ jspm_packages

# Optional REPL history
.node_repl_history
.idea
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "nearley-loader",
"version": "2.0.0",
"name": "@leetcode/nearley-loader",
"version": "2.1.0",
"description": "Nearley parser rules loader for webpack",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/kozily/nearley-loader.git"
"url": "git+https://github.com/LeetCode-OpenSource/nearley-loader.git"
},
"keywords": [
"loader",
@@ -14,9 +14,9 @@
"author": "Kozily",
"license": "MIT",
"bugs": {
"url": "https://github.com/kozily/nearley-loader/issues"
"url": "https://github.com/LeetCode-OpenSource/nearley-loader/issues"
},
"homepage": "https://github.com/kozily/nearley-loader#readme",
"homepage": "https://github.com/LeetCode-OpenSource/nearley-loader#readme",
"peerDependencies": {
"nearley": "^2.0.0"
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ var nearleyGrammar = nearley.Grammar.fromCompiled(rawGrammar);
module.exports = function(input) {
var parser = new nearley.Parser(nearleyGrammar);
parser.feed(input);
var compilation = compile(parser.results[0], {file: this.resourcePath});
var compilation = compile(parser.results[0], {args: [this.resourcePath]});
lint(compilation, {});
return generate(compilation, 'grammar');
}