Improve grammar scripts (#3350)

* Remove trailing spaces

* Setup Bundler in some scripts

* Update grammar index

* Make prune-grammars script to be callable in a script directory

* Prune unused xquery grammar repo

source.xq by language-jsoniq is actual tm_scope for XQuery.

* Remove xquery submodule

git submodule deinit vendor/grammars/xquery/
git rm vendor/grammars/xquery/

* Fix invocation of script/list-grammars

This fixes #3339.

* Make add-grammars script to be callable in a script directory

* Generate samples.json before running list-grammars

list-grammars requires linguist.
This commit is contained in:
meganemura
2016-11-30 03:13:33 +09:00
committed by Brandon Black
parent 581723748b
commit 12f9295dd7
9 changed files with 25 additions and 18 deletions

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
require 'bundler/setup'
require 'yaml'
require 'pry'