Remove pragma keyword from PLSQL heuristic rule (#3066)

The pragma keyword is not specific to PLSQL and can be found in other SQL languages
This commit is contained in:
Paul Chaignon
2016-06-21 14:45:05 +02:00
committed by Arfon Smith
parent a9f366aed2
commit e4c6c1d245

View File

@@ -382,7 +382,7 @@ module Linguist
elsif /(alter module)|(language sql)|(begin( NOT)+ atomic)/i.match(data) || /signal SQLSTATE '[0-9]+'/i.match(data)
#IBM db2
Language["SQLPL"]
elsif /pragma|\$\$PLSQL_|XMLTYPE|sysdate|systimestamp|\.nextval|connect by|AUTHID (DEFINER|CURRENT_USER)/i.match(data) || /constructor\W+function/i.match(data)
elsif /\$\$PLSQL_|XMLTYPE|sysdate|systimestamp|\.nextval|connect by|AUTHID (DEFINER|CURRENT_USER)/i.match(data) || /constructor\W+function/i.match(data)
#Oracle
Language["PLSQL"]
elsif ! /begin|boolean|package|exception/i.match(data)