temporary add grammer to whitelist until license gets added

This commit is contained in:
David Pyke Le Brun
2015-02-09 14:27:14 +00:00
parent e969172543
commit 5e9bb67d10
2 changed files with 2 additions and 1 deletions

View File

@@ -226,7 +226,7 @@ module Linguist
disambiguate "PLSQL", "SQLPL", "PLpgSQL", "SQL" do |data|
#only return value if a definite positive
if /^\\i\b|AS \$\$|LANGUAGE '+plpgsql'+/i.match(data) || /SECURITY (DEFINER|INVOKER)/i.match(data) || /BEGIN (WORK|TRANSACTION)+;/i.match(data)
if /^\\i\b|AS \$\$|LANGUAGE '+plpgsql'+/i.match(data) || /SECURITY (DEFINER|INVOKER)/i.match(data) || /BEGIN( WORK| TRANSACTION)?;/i.match(data)
#postgres
Language["PLpgSQL"]
elsif /(alter module)|(language sql)|(begin( NOT)+ atomic)/i.match(data) || /signal SQLSTATE '[0-9]+'/i.match(data)

View File

@@ -9,6 +9,7 @@ class TestGrammars < Minitest::Test
vendor/grammars/Sublime-Lasso
vendor/grammars/Sublime-REBOL
vendor/grammars/x86-assembly-textmate-bundle
vendor/grammars/oracle.tmbundle
].freeze
def setup