mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
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:
committed by
Arfon Smith
parent
a9f366aed2
commit
e4c6c1d245
@@ -382,7 +382,7 @@ module Linguist
|
|||||||
elsif /(alter module)|(language sql)|(begin( NOT)+ atomic)/i.match(data) || /signal SQLSTATE '[0-9]+'/i.match(data)
|
elsif /(alter module)|(language sql)|(begin( NOT)+ atomic)/i.match(data) || /signal SQLSTATE '[0-9]+'/i.match(data)
|
||||||
#IBM db2
|
#IBM db2
|
||||||
Language["SQLPL"]
|
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
|
#Oracle
|
||||||
Language["PLSQL"]
|
Language["PLSQL"]
|
||||||
elsif ! /begin|boolean|package|exception/i.match(data)
|
elsif ! /begin|boolean|package|exception/i.match(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user