mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Remove parrot bytecode as a separate language, as well as deprecated/redundant keys in languages.yml and put PIR+PASM in the Parrot group
This commit is contained in:
@@ -648,25 +648,19 @@ Parrot Internal Representation:
|
|||||||
search_term: pir
|
search_term: pir
|
||||||
aliases:
|
aliases:
|
||||||
- pir
|
- pir
|
||||||
primary_extension: .pir
|
group: Parrot
|
||||||
extensions:
|
extensions:
|
||||||
- .pir
|
- .pir
|
||||||
|
|
||||||
Parrot Assembly:
|
Parrot Assembly:
|
||||||
type: programming
|
type: programming
|
||||||
lexer: Text only
|
lexer: Text only
|
||||||
search_term: pasm
|
group: Parrot
|
||||||
primary_extension: .pasm
|
aliases:
|
||||||
|
- pasm
|
||||||
extensions:
|
extensions:
|
||||||
- .pasm
|
- .pasm
|
||||||
|
|
||||||
Parrot Bytecode:
|
|
||||||
type: data
|
|
||||||
search_term: pbc
|
|
||||||
primary_extension: .pbc
|
|
||||||
extensions:
|
|
||||||
- .pbc
|
|
||||||
|
|
||||||
Perl:
|
Perl:
|
||||||
type: programming
|
type: programming
|
||||||
overrides:
|
overrides:
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
assert blob("linguist.gem").binary?
|
assert blob("linguist.gem").binary?
|
||||||
assert blob("octocat.ai").binary?
|
assert blob("octocat.ai").binary?
|
||||||
assert blob("octocat.png").binary?
|
assert blob("octocat.png").binary?
|
||||||
assert blob("hello.pbc").binary?
|
|
||||||
assert !blob("README").binary?
|
assert !blob("README").binary?
|
||||||
assert !blob("file.txt").binary?
|
assert !blob("file.txt").binary?
|
||||||
assert !blob("foo.rb").binary?
|
assert !blob("foo.rb").binary?
|
||||||
@@ -322,7 +321,6 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
# https://github.com/parrot/parrot
|
# https://github.com/parrot/parrot
|
||||||
assert_equal Language['Parrot Internal Representation'], blob("hello.pir").language
|
assert_equal Language['Parrot Internal Representation'], blob("hello.pir").language
|
||||||
assert_equal Language['Parrot Assembly'], blob("hello.pasm").language
|
assert_equal Language['Parrot Assembly'], blob("hello.pasm").language
|
||||||
assert_equal Language['Parrot Bytecode'], blob("hello.pbc").language
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_lexer
|
def test_lexer
|
||||||
|
|||||||
Reference in New Issue
Block a user