Identify php files by first line

Fixes #32
This commit is contained in:
Rok Žlender
2011-07-05 09:43:48 -05:00
committed by Joshua Peek
parent 5ecc4421d7
commit 111ebe3c80
3 changed files with 160 additions and 0 deletions

View File

@@ -278,6 +278,9 @@ class TestBlob < Test::Unit::TestCase
# http://docs.racket-lang.org/scribble/
assert_equal Language['Racket'], blob("scribble.scrbl").language
# https://github.com/drupal/drupal/blob/7.x/modules/php/php.module
assert_equal Language['PHP'], blob("drupal.module").language
end
def test_lexer