mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	temporary add grammer to whitelist until license gets added
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user