mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-07 20:08:48 +00:00
Recognise that PEG.js-generated parsers are in fact generated
This commit is contained in:
2963
test/fixtures/javascript/parser.js
vendored
Normal file
2963
test/fixtures/javascript/parser.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -183,9 +183,13 @@ class TestBlob < Test::Unit::TestCase
|
||||
assert blob("javascript/jquery-1.6.1.min.js").generated?
|
||||
assert blob("javascript/jquery-1.4.2.min.js").generated?
|
||||
|
||||
# CoffeScript JS
|
||||
# CoffeeScript-generated JS
|
||||
# TODO
|
||||
|
||||
# These examples are to basic to tell
|
||||
# PEG.js-generated parsers
|
||||
assert blob("javascript/parser.js").generated?
|
||||
|
||||
# These examples are too basic to tell
|
||||
assert !blob("javascript/empty.js").generated?
|
||||
assert !blob("javascript/hello.js").generated?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user