Add heuristic for .inc files: the #declare keyword is unique to POV-Ray.

Also added #local, #macro, and #while.
This commit is contained in:
Lars Brinkhoff
2016-09-14 15:48:46 +02:00
parent 0e5327a77a
commit a7a123a8db
2 changed files with 6 additions and 1 deletions

View File

@@ -122,9 +122,12 @@ class TestHeuristcs < Minitest::Test
})
end
# Candidate languages = ["Assembly", "C++", "HTML", "PAWN", "PHP",
# "POV-Ray SDL", "Pascal", "SQL", "SourcePawn"]
def test_inc_by_heuristics
assert_heuristics({
"PHP" => all_fixtures("PHP", "*.inc")
"PHP" => all_fixtures("PHP", "*.inc"),
"POV-Ray SDL" => all_fixtures("POV-Ray SDL", "*.inc")
})
end