From e4c6c1d245c308cc5209eceeeb480a0a85eefb35 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Tue, 21 Jun 2016 14:45:05 +0200 Subject: [PATCH] Remove pragma keyword from PLSQL heuristic rule (#3066) The pragma keyword is not specific to PLSQL and can be found in other SQL languages --- lib/linguist/heuristics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index 45a7d9dc..191afa1d 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -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)