mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-14 13:25:50 +00:00
Merge branch 'detect_parrot' of https://github.com/leto/linguist into leto-detect_parrot
This commit is contained in:
@@ -643,16 +643,24 @@ PHP:
|
||||
- .phpt
|
||||
|
||||
Parrot Internal Representation:
|
||||
type: programming
|
||||
lexer: Text only
|
||||
search_term: pir
|
||||
aliases:
|
||||
- pir
|
||||
primary_extension: .pir
|
||||
group: Parrot
|
||||
extensions:
|
||||
- .pasm
|
||||
- .pbc
|
||||
- .pir
|
||||
|
||||
Parrot Assembly:
|
||||
type: programming
|
||||
lexer: Text only
|
||||
group: Parrot
|
||||
aliases:
|
||||
- pasm
|
||||
extensions:
|
||||
- .pasm
|
||||
|
||||
Perl:
|
||||
type: programming
|
||||
overrides:
|
||||
|
||||
5
test/fixtures/hello.pasm
vendored
Normal file
5
test/fixtures/hello.pasm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env parrot
|
||||
|
||||
.pcc_sub :main main:
|
||||
say "Hello!"
|
||||
end
|
||||
BIN
test/fixtures/hello.pbc
vendored
Normal file
BIN
test/fixtures/hello.pbc
vendored
Normal file
Binary file not shown.
5
test/fixtures/hello.pir
vendored
Normal file
5
test/fixtures/hello.pir
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env parrot
|
||||
|
||||
.sub 'main' :main
|
||||
say "Hello!"
|
||||
.end
|
||||
@@ -317,6 +317,10 @@ class TestBlob < Test::Unit::TestCase
|
||||
|
||||
# https://github.com/olabini/ioke
|
||||
assert_equal Language['Ioke'], blob("hello.ik").language
|
||||
|
||||
# https://github.com/parrot/parrot
|
||||
assert_equal Language['Parrot Internal Representation'], blob("hello.pir").language
|
||||
assert_equal Language['Parrot Assembly'], blob("hello.pasm").language
|
||||
end
|
||||
|
||||
def test_lexer
|
||||
|
||||
Reference in New Issue
Block a user