patch 9.0.1820: Rexx files may not be recognised

Problem:  Rexx files may not be recognised
Solution: Add shebang detection and improve disambiguation of *.cls
	  files

closes: #12951

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
Doug Kearns
2023-08-29 22:21:35 +02:00
committed by Christian Brabandt
parent 3e1e63de18
commit e06afb7860
4 changed files with 34 additions and 5 deletions

View File

@ -213,6 +213,10 @@ export def Exe2filetype(name: string, line1: string): string
elseif name =~ '^crystal\>'
return 'crystal'
# Rexx
elseif name =~ '^\%(rexx\|regina\)\>'
return 'rexx'
endif
return ''