Add ReScript support (#5072)

This adds support for both rescript format and rescript-language-server.

Closes https://github.com/dense-analysis/ale/issues/3335
This commit is contained in:
John Jackson
2025-12-21 04:25:42 -05:00
committed by GitHub
parent dd6e6f1b15
commit 0360a73644
13 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
Before:
call ale#assert#SetUpLinterTest('rescript', 'rescript_language_server')
Save &filetype
let &filetype = 'rescript'
After:
call ale#assert#TearDownLinterTest()
Execute(The language string should be correct):
AssertLSPLanguage 'rescript'
Execute(The project root should be detected correctly):
AssertLSPProject ''
call ale#test#SetFilename('../test-files/rescript/testfile.res')
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rescript')
Execute(The command should be correct):
call ale#test#SetFilename('../test-files/rescript/testfile.res')
AssertLinter
\ 'rescript-language-server',
\ ale#Escape('rescript-language-server') . ' --stdio'