Arfon Smith
8aa4dce6f4
Merge pull request #1723 from techhat/pythonmultiline
...
Python also supports triple single-quotes for comments
2015-01-24 10:54:30 -06:00
Paul Chaignon
bf5651e127
Merge branch 'master' into newlisp
2015-01-24 00:15:52 +01:00
Arfon Smith
36120a9122
Revert "Use path for Generated?"
2015-01-20 08:58:11 -06:00
Arfon Smith
43b297636d
Merge pull request #2003 from pchaigno/cs-heuristics
...
Heuristics for .cs files: C# and Smalltalk
2015-01-17 09:10:58 -06:00
Adam Roben
9ec801d495
Merge pull request #1976 from github/path-for-fileblob
...
Use path for Generated?
2015-01-15 21:20:00 -05:00
Adam Roben
96c7bc30d8
Simplify blob tests
...
Now that FileBlobs with relative paths can still access their files on
disk, we can use relative paths for all FileBlobs in the test. This more
closely matches the behavior in github.com's codebase, where all blobs
use relative paths.
2015-01-14 08:57:53 -05:00
Brandon Keepers
1bc6a6dfe5
Merge pull request #1955 from pchaigno/zephir-generated-samples
...
Reclassify three samples files generated from Zephir code
2015-01-10 10:43:00 -08:00
Arfon Smith
f4c1cc576b
Modifying BlobHelper and FileBlob to use path
2015-01-09 15:15:34 -06:00
Arfon Smith
24eb1d3fe2
Updating file regex to support unlicense.txt
2015-01-09 11:43:34 -06:00
Adam Roben
e95314f072
Recognize WTFPL-licensed grammars
2015-01-08 10:49:54 -05:00
Florian M. Schäfer
3ace4c57f7
Allow British-English LICENCE-files
2015-01-06 22:51:08 +01:00
Adam Roben
71f0cafc78
Update all submodules
...
This was done via `git submodule update --remote`.
Since Scalate.tmbundle now has a license we can remove it from the
whitelist.
* vendor/grammars/NimLime 9cef4b6...a7067c6 (1):
> Added 'nim' to tmpl sublimetext highlighting
* vendor/grammars/Scalate.tmbundle 4f85314...0307535 (1):
> Merge pull request #3 from aroben/patch-1
* vendor/grammars/fsharpbinding d097476...99d2e9a (2):
> Merge pull request #917 from 7sharp9/CleanMacProjects
> Merge pull request #916 from 7sharp9/ToolTipsLessBlocky
* vendor/grammars/language-clojure d649d9f...bae6eee (2):
> Prepare 0.10.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-coffee-script c6e8d33...d86c896 (2):
> Prepare 0.39.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-gfm 7b62290...6af44a0 (2):
> Remove unneeded newline
> Merge pull request #65 from braver/line-break
* vendor/grammars/language-javascript 6690feb...5157519 (2):
> Prepare 0.53.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-python f518e49...46072e3 (2):
> Prepare 0.29.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-shellscript cbec163...9839719 (2):
> Prepare 0.12.0 release
> Rename scoped-properties/ to settings/
* vendor/grammars/language-yaml eddd079...ce8b441 (2):
> Prepare 0.22.0 release
> Rename scoped-properties/ to settings/
2015-01-06 13:46:04 -05:00
Adam Roben
4614287a55
Test that all grammar submodules have an appropriate license
...
We require all grammars to have a license that permits redistribution. A
few existing grammars have been grandfathered in without a license (and
we're working to remedy that), but no new grammars should be added
without a license.
2015-01-06 13:44:11 -05:00
Adam Roben
f477f811df
Extract TestGrammars#submodule_paths method
2015-01-06 13:43:50 -05:00
Adam Roben
a4286ba950
Show stderr output when running convert-grammars
...
This will let us see why it's failing.
2015-01-06 13:28:26 -05:00
Adam Roben
5fa85f268f
Ruby 1.9 compatibility
2015-01-06 13:28:26 -05:00
Adam Roben
ada6f6882a
Test that grammars.yml lists the right scopes for each submodule
...
convert-grammars now supports a few flags that we can use to make it
dump out the YAML just for the local grammar submodules. We can then
compare this to the YAML that's actually in grammars.yml to check that
they're the same. If they aren't, grammars.yml needs to be updated.
This will help catch mistakes like using the wrong scope name.
2015-01-06 13:28:25 -05:00
Paul Chaignon
96e6b3f53e
Reclassify samples generated from Zephir code
2015-01-06 17:00:16 +01:00
Paul Chaignon
3c6218f20e
Heuristics for .cs files: Smalltalk and C#
2015-01-04 22:07:29 +01:00
Adam Roben
1f1ffcbfa6
Merge pull request #1930 from github/minitest
...
Switch to Minitest::Test instead of Test::Unit::TestCase
2015-01-02 16:27:43 -05:00
Adam Roben
065dd713c1
Assert that generated files are detected correctly
2015-01-02 16:15:55 -05:00
Brandon Keepers
2be3220824
Merge pull request #1940 from github/fix-multiple-extensions
...
Fix for extensions with multiple segments
2015-01-02 10:59:30 -05:00
Lars Brinkhoff
6ae39e50ae
Fix #1731 to allow samples with multiple file extension segments.
2015-01-02 10:41:22 -05:00
Adam Roben
65296e86a3
Switch to Minitest::Test instead of Test::Unit::TestCase
...
This gives us a consistent test framework across all Ruby versions which
should help avoid errors that are only found when CI runs the tests on
different Rubies. (And this fixes an immediate bug where there's no
`skip` method in the version of test-unit we're currently using only on
Ruby 2.2.)
2014-12-31 15:26:26 -05:00
Adam Roben
c9b7bb73b9
Use test/helper.rb in test_file_blob.rb
2014-12-31 15:19:56 -05:00
Adam Roben
795f42cbaa
Merge pull request #1832 from pchaigno/optimize-generated
...
Optimization of generated?
2014-12-31 15:19:43 -05:00
Paul Chaignon
42beadcf34
Use an exception for tests on Generated.generated?
2014-12-28 17:00:13 +01:00
Brandon Keepers
8369d253f8
Move grammar sources to vendor/grammars
2014-12-22 16:28:58 -05:00
Adam Roben
516d3e226c
Suggest adding/removing submodules from the repo
2014-12-22 15:50:33 -05:00
Adam Roben
e3eb1b90c5
Test that grammars.yml agrees with the list of submodules
...
If any submodules are missing from grammars.yml, or are listed in
grammars.yml but missing from the repo, the test will fail.
Eventually it would be good to test that the scopes for each submodule
are accurate, but that will take some more work.
2014-12-19 16:05:17 -05:00
Adam Roben
410fe2843d
Add some tests for grammars.yml
...
It must be sorted, because it will get re-sorted when
script/download-grammars is next run and that would clutter up diffs.
And it must not contain any duplicate scopes.
2014-12-17 16:39:02 -05:00
Paul Chaignon
2418356eff
Merge branch 'master' into newlisp
2014-12-16 10:52:17 -05:00
Arfon Smith
0ddf0d5d0d
Merge branch 'master' into no-language
...
Conflicts:
lib/linguist/heuristics.rb
2014-12-11 21:17:38 -06:00
Arfon Smith
79243b77fd
Merge pull request #1129 from pchaigno/bitbake
...
Support of the BitBake language
2014-12-11 20:58:06 -06:00
Paul Chaignon
db70630eaa
Renamed text in Text
2014-12-11 12:51:09 -05:00
Adam Roben
cb5f2685cd
Test that all popular languages exist
...
popular.yml listed "Bash" but should have been listing "Shell" instead.
There is no "Bash" language. Now CI will fail if this happens again.
2014-12-11 11:47:52 -05:00
Brandon Keepers
baa298873a
Merge pull request #1854 from github/more-shebang-fixes
...
More shebang fixes
2014-12-11 10:40:11 -05:00
Paul Chaignon
f93272f0bd
Move text files from fixtures to samples when possible
2014-12-10 20:09:14 -05:00
Paul Chaignon
e783e953d9
Merge branch 'master' into data-fixture-folder
2014-12-10 19:15:41 -05:00
Brandon Keepers
6efee51101
Add missing test cases
2014-12-10 11:00:46 -05:00
Brandon Keepers
bf0e488c06
Test case for case causing error
2014-12-10 10:58:14 -05:00
Garen Torikian
2a04d854cc
Merge branch 'master' into return-nil-on-no-ace-mode
2014-12-07 14:45:27 +02:00
Paul Chaignon
8b7d5546f7
Merge branch 'master' into newlisp
2014-12-06 20:04:18 -05:00
Paul Chaignon
b63423ce37
Merge branch 'master' into newlisp
2014-12-06 19:56:29 -05:00
Paul Chaignon
0b02b68538
Heuristic for .lsp and .lisp (Common Lisp, NewLisp)
2014-12-06 19:51:45 -05:00
Paul Chaignon
583392d179
Heuristic for .ts (TypeScript, XML)
2014-12-06 16:31:14 -05:00
Paul Chaignon
7458a2f9ff
Heuristic for .bb (BitBake, BlitzBasic)
2014-12-06 15:26:30 -05:00
Garen Torikian
348dab4b9f
Update test to account for using text
2014-12-06 11:59:31 +02:00
Paul Chaignon
a51d637e58
Error messages for tests on Generated
2014-12-05 17:53:19 -05:00
Paul Chaignon
67ccb24b41
Require test helper in generated test
2014-12-05 10:29:19 -05:00