-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
runtime(gleam): add syntax and compiler and update ftplugin #17172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely, thank you! Two questions inline from me
3f352b7
to
becf330
Compare
runtime/compiler/gleam.vim
Outdated
" Vim compiler file | ||
" Language: Gleam | ||
" Maintainer: Kirill Morozov <kirill@robotix.pro> | ||
" Based On: https://github.com/gleam-lang/gleam.vim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to be the upstream repo? If so, the comment title is usually URL:
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, it's going to be deprecated.
runtime/compiler/gleam.vim
Outdated
" Language: Gleam | ||
" Maintainer: Kirill Morozov <kirill@robotix.pro> | ||
" Based On: https://github.com/gleam-lang/gleam.vim | ||
" Last Change: 2025-04-20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" Last Change: 2025-04-20 | |
" Last Change: 2025 Apr 20 |
I know there's multiple formats but this is the gold standard.
runtime/compiler/gleam.vim
Outdated
CompilerSet errorformat=%Eerror:\ %m | ||
CompilerSet errorformat+=%Wwarning:\ %m | ||
CompilerSet errorformat+=%C\ %#┌─%#\ %f:%l:%c\ %#-%# | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The efm
lines need to be separated with ,
runtime/ftplugin/gleam.vim
Outdated
|
||
if !exists('current_compiler') | ||
compiler gleam | ||
let b:undo_ftplugin .= "| compiler make" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let b:undo_ftplugin .= "| compiler make" | |
let b:undo_ftplugin ..= "| compiler make" |
We should really be using ..
everywhere.
Signed-off-by: Kirill Morozov <kirill@robotix.pro>
Signed-off-by: Kirill Morozov <kirill@robotix.pro>
Signed-off-by: Kirill Morozov <kirill@robotix.pro>
Signed-off-by: Kirill Morozov <kirill@robotix.pro>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
alright, thanks all |
…w compiler and syntax script closes: vim/vim#17172 vim/vim@32f4973 Co-authored-by: Kirill Morozov <mail2kirill@gmail.com>
…w compiler and syntax script closes: vim/vim#17172 vim/vim@32f4973 Co-authored-by: Kirill Morozov <mail2kirill@gmail.com>
…w compiler and syntax script closes: vim/vim#17172 vim/vim@32f4973 Co-authored-by: Kirill Morozov <mail2kirill@gmail.com>
With @lpil's approval I decided to incorporate syntax, ftplugin and compiler from the official Gleam Vim plugin into the Vim repo.
I've made the following changes to the files in the process:
_
separator.comments
because they do not exist in Gleam and removetextwidth
option.Related-to: gleam-lang/gleam.vim#15
Signed-off-by: Kirill Morozov kirill@robotix.pro